diff options
author | ChromeOS Developer <dparker@chromium.org> | 2014-02-07 11:52:47 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-02-13 22:06:29 +0000 |
commit | a6608c8c7a7365bd321ebf8a4c6ba47cbb440869 (patch) | |
tree | 5808aa971973ddfccfc515b472ea9214944bd717 /board | |
parent | 419e6d990434be66495ba3d46b9871571f519b01 (diff) | |
download | chrome-ec-a6608c8c7a7365bd321ebf8a4c6ba47cbb440869.tar.gz |
Add comment about matching temp sensor index and name with coreboot
BUG=None
BRANCH=None
TEST=None
Change-Id: If72cadaf127de9f850f99a2b628a6070723be68f
Original-Change-Id: I702173af23e6207129149bdb83ec7116fec8af66
Signed-off-by: Dave Parker <dparker@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/185394
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/186445
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/rambi/board.c | 6 | ||||
-rw-r--r-- | board/squawks/board.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/board/rambi/board.c b/board/rambi/board.c index d4497d9901..75ad5fd4e0 100644 --- a/board/rambi/board.c +++ b/board/rambi/board.c @@ -177,7 +177,11 @@ const struct i2c_port_t i2c_ports[] = { }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); -/* Temperature sensors data; must be in same order as enum temp_sensor_id. */ +/* + * Temperature sensors data; must be in same order as enum temp_sensor_id. + * Sensor index and name must match those present in coreboot: + * src/mainboard/google/${board}/acpi/dptf.asl + */ const struct temp_sensor_t temp_sensors[] = { {"ECInternal", TEMP_SENSOR_TYPE_BOARD, chip_temp_sensor_get_val, 0, 4}, {"TMP432_Internal", TEMP_SENSOR_TYPE_BOARD, tmp432_get_val, diff --git a/board/squawks/board.c b/board/squawks/board.c index 3b124c9c35..4172b23393 100644 --- a/board/squawks/board.c +++ b/board/squawks/board.c @@ -180,7 +180,11 @@ const struct i2c_port_t i2c_ports[] = { }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); -/* Temperature sensors data; must be in same order as enum temp_sensor_id. */ +/* + * Temperature sensors data; must be in same order as enum temp_sensor_id. + * Sensor index and name must match those present in coreboot: + * src/mainboard/google/${board}/acpi/dptf.asl + */ const struct temp_sensor_t temp_sensors[] = { {"ECInternal", TEMP_SENSOR_TYPE_BOARD, chip_temp_sensor_get_val, 0, 4}, {"TMP432_Internal", TEMP_SENSOR_TYPE_BOARD, tmp432_get_val, |