diff options
author | Mary Ruthven <mruthven@chromium.org> | 2016-03-07 17:15:06 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-03-08 12:17:03 -0800 |
commit | 9f39ce1903b7b7ab28c3cba582bf12d93f525394 (patch) | |
tree | 347a64abf30a5c31b18737a2720d966d1a6631da | |
parent | 88e0161583a9fe6481ed0167cbaf28ea27e99b80 (diff) | |
download | chrome-ec-9f39ce1903b7b7ab28c3cba582bf12d93f525394.tar.gz |
lucid: fix adc vbus sensing
This change changes the full ADC range for VBUS to the correct value.
BUG=none
BRANCH=none
TEST=Verify VBUS voltage reported by `adc` matches measured voltage
on scope.
Change-Id: I3497ea790c4cbce66845d4cc661e1a0437c1cdfd
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/331283
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/lucid/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/lucid/board.c b/board/lucid/board.c index a536153b42..a396f0b547 100644 --- a/board/lucid/board.c +++ b/board/lucid/board.c @@ -127,8 +127,8 @@ const struct adc_t adc_channels[] = { [ADC_C0_CC1_PD] = {"C0_CC1_PD", 3300, 4096, 0, STM32_AIN(1)}, [ADC_C0_CC2_PD] = {"C0_CC2_PD", 3300, 4096, 0, STM32_AIN(3)}, - /* Vbus sensing. Converted to mV, full ADC is equivalent to 30.25V. */ - [ADC_VBUS] = {"VBUS", 30250, 4096, 0, STM32_AIN(7)}, + /* Vbus sensing. Converted to mV, full ADC is equivalent to 33.5V. */ + [ADC_VBUS] = {"VBUS", 33550, 4096, 0, STM32_AIN(7)}, }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); |