diff options
author | Philip Chen <philipchen@google.com> | 2018-01-22 13:35:33 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-22 22:07:19 -0800 |
commit | 632043a544130d3114715ab6454df18d320bccbe (patch) | |
tree | aeaa1d3689c5a8611cc53f67a17fb761b8abd1a3 /board/scarlet/board.c | |
parent | f793f81b8b9bd82f14a18adf3f179df78a813261 (diff) | |
download | chrome-ec-632043a544130d3114715ab6454df18d320bccbe.tar.gz |
scarlet: Fix ADC unit conversion
To detect the board version correctly, ADC must output mV.
BUG=b:72233188
BRANCH=none
TEST='version' command shows correct board version.
Change-Id: I68889092719240394f03cb9b21cb0844feb315e5
Signed-off-by: Philip Chen <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/879491
Commit-Ready: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/scarlet/board.c')
-rw-r--r-- | board/scarlet/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c index 277c91ca74..a1d384765a 100644 --- a/board/scarlet/board.c +++ b/board/scarlet/board.c @@ -70,7 +70,7 @@ static void warm_reset_request_interrupt(enum gpio_signal signal) /******************************************************************************/ /* ADC channels. Must be in the exactly same order as in enum adc_channel. */ const struct adc_t adc_channels[] = { - [ADC_BOARD_ID] = {"BOARD_ID", 16, 4096, 0, STM32_AIN(10)}, + [ADC_BOARD_ID] = {"BOARD_ID", 3300, 4096, 0, STM32_AIN(10)}, }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); |