diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2017-12-11 12:02:16 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-12-12 01:05:29 -0800 |
commit | a7c08b257fff5420a584d0d8ac5529efcc111403 (patch) | |
tree | 546556c2eab3e64550df7adbb4e24e6cde0c6eb6 /board/reef_it8320 | |
parent | 552ca1ec4982db07a42e6d974a9f12a50a4dbc1c (diff) | |
download | chrome-ec-a7c08b257fff5420a584d0d8ac5529efcc111403.tar.gz |
it83xx: adc: add support ADC13-16
IT8320 can support extra four ADC channels (ADC13-16).
BRANCH=none
BUG=none
TEST=Run console command 'adc' and check the results.
Change-Id: Ia9a259f54fa28d43dc0050c6e20885c0b3914f9c
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/808125
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/reef_it8320')
-rw-r--r-- | board/reef_it8320/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/reef_it8320/board.c b/board/reef_it8320/board.c index 3cb1d49afc..ba6ad995e3 100644 --- a/board/reef_it8320/board.c +++ b/board/reef_it8320/board.c @@ -80,9 +80,9 @@ BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); /* ADC channels */ const struct adc_t adc_channels[] = { /* Convert to mV (3000mV/1024). */ - {"CHARGER", 3000, 1024, 0, 1}, /* GPI1 */ - {"AMBIENT", 3000, 1024, 0, 2}, /* GPI2 */ - {"BRD_ID", 3000, 1024, 0, 3}, /* GPI3 */ + {"CHARGER", 3000, 1024, 0, CHIP_ADC_CH1}, /* GPI1 */ + {"AMBIENT", 3000, 1024, 0, CHIP_ADC_CH2}, /* GPI2 */ + {"BRD_ID", 3000, 1024, 0, CHIP_ADC_CH3}, /* GPI3 */ }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); |