From b74cbd8a74d15bde904b99912df9663a58073bbb Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 10 May 2012 23:35:56 +0000 Subject: 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 BUG=chrome-os-partner:9614 TEST=make BOARD=link Change-Id: I534d427c9b50103273835a6f32a0ddb622c762b3 --- common/temp_sensor.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'common/temp_sensor.c') 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); - -- cgit v1.2.1