diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-05-10 23:35:56 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-05-15 18:34:50 -0700 |
commit | b74cbd8a74d15bde904b99912df9663a58073bbb (patch) | |
tree | f442a46b161c4aea3881424cdd6b184f52000910 /common/temp_sensor.c | |
parent | dd839d851aa6369a81423da9d59762950f21c592 (diff) | |
download | chrome-ec-b74cbd8a74d15bde904b99912df9663a58073bbb.tar.gz |
de-LPCify the EC host interface
Preparatory work to use common host command code between ARM and x86.
Just rename constants, do not change the binary API.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:9614
TEST=make BOARD=link
Change-Id: I534d427c9b50103273835a6f32a0ddb622c762b3
Diffstat (limited to 'common/temp_sensor.c')
-rw-r--r-- | common/temp_sensor.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c index 013b4f0d87..9f615ae6d3 100644 --- a/common/temp_sensor.c +++ b/common/temp_sensor.c @@ -12,7 +12,7 @@ #include "gpio.h" #include "i2c.h" #include "lpc.h" -#include "lpc_commands.h" +#include "ec_commands.h" #include "peci.h" #include "task.h" #include "temp_sensor.h" @@ -71,7 +71,7 @@ void poll_all_sensors(void) static void update_lpc_mapped_memory(void) { int i, t; - uint8_t *mapped = lpc_get_memmap_range() + EC_LPC_MEMMAP_TEMP_SENSOR; + uint8_t *mapped = lpc_get_memmap_range() + EC_MEMMAP_TEMP_SENSOR; memset(mapped, 0xff, 16); @@ -82,7 +82,7 @@ static void update_lpc_mapped_memory(void) } t = temp_sensor_read(i); if (t != -1) - mapped[i] = t - EC_LPC_TEMP_SENSOR_OFFSET; + mapped[i] = t - EC_TEMP_SENSOR_OFFSET; else mapped[i] = 0xfe; } @@ -126,4 +126,3 @@ static int command_temps(int argc, char **argv) return EC_SUCCESS; } DECLARE_CONSOLE_COMMAND(temps, command_temps); - |