From 347b5062a429922cabfa49de8f11fe8cebf8f9f1 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 11 Jul 2012 14:10:05 -0700 Subject: Initialize memory mapped data and add data versions BUG=chrome-os-partner:11275 TEST=manual localhost ~ # io_read8 0x920 0x45 // 'E' localhost ~ # io_read8 0x921 0x43 // 'C' localhost ~ # io_read8 0x922 0x01 // version 1 localhost ~ # io_read8 0x9fe 0x00 // unused data initialized to 0 Change-Id: If8de85ddc0e5f99b7c4213214d4b2d30b1439da8 Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/27196 --- common/temp_sensor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/temp_sensor.c') diff --git a/common/temp_sensor.c b/common/temp_sensor.c index 257b1a372b..5579683aa8 100644 --- a/common/temp_sensor.c +++ b/common/temp_sensor.c @@ -97,6 +97,10 @@ static void update_mapped_memory(void) void temp_sensor_task(void) { int i; + + /* Switch data is now present */ + *host_get_memmap(EC_MEMMAP_THERMAL_VERSION) = 1; + while (1) { for (i = 0; i < 4; ++i) { usleep(250000); -- cgit v1.2.1