diff options
author | Devin Lu <devin.lu@quantatw.com> | 2020-06-04 08:58:12 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-15 00:11:18 +0000 |
commit | e2a86fa31cda43b76ddfec4df6a1a9cf91f90e6c (patch) | |
tree | c5fc13476bb08ca81e53d34c74db012de24c7d46 /board/dalboz | |
parent | 6bf64c105990fb33b6ffdbb603ca0dff8f4085a6 (diff) | |
download | chrome-ec-e2a86fa31cda43b76ddfec4df6a1a9cf91f90e6c.tar.gz |
zork/baseboard: move temperature sensors definition to board variant
There are some differences with temperature sensors for each zork variant.
This patch move temperature sensors definition to board variant.
BUG=b:157711232
BRANCH=none
TEST=Verified console "temps" can read temperature.
Build all zork board variant.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ib109ea5adc98e6b6825f8c91db19911dc682a52e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2227787
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Tested-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board/dalboz')
-rw-r--r-- | board/dalboz/board.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/dalboz/board.h b/board/dalboz/board.h index 99f92da64e..08c7a5aa42 100644 --- a/board/dalboz/board.h +++ b/board/dalboz/board.h @@ -83,6 +83,12 @@ /* This I2C moved. Temporarily detect and support the V0 HW. */ extern int I2C_PORT_BATTERY; +enum adc_channel { + ADC_TEMP_SENSOR_CHARGER, + ADC_TEMP_SENSOR_SOC, + ADC_CH_COUNT +}; + enum battery_type { BATTERY_SMP, BATTERY_LGC, @@ -106,6 +112,13 @@ enum ioex_port { ? GPIO_USB3_C0_DP2_HPD \ : GPIO_DP1_HPD) +enum temp_sensor_id { + TEMP_SENSOR_CHARGER = 0, + TEMP_SENSOR_SOC, + TEMP_SENSOR_CPU, + TEMP_SENSOR_COUNT +}; + /***************************************************************************** * CBI EC FW Configuration |