diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-05-16 17:19:32 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-05-17 06:48:23 +0000 |
commit | 006a3f58b09b44216fb449e2cb6e11bc85043104 (patch) | |
tree | 2132d02da3f1a13f47bb15e65e22a6dba4de2262 /board/firefly | |
parent | f025bb66cc182251671665290b99322839d1c71e (diff) | |
download | chrome-ec-006a3f58b09b44216fb449e2cb6e11bc85043104.tar.gz |
firefly: update VBUS voltage sensing
The voltage divider resistor values have changes to 10K/100K,
update the code to take this into account.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=none
Change-Id: I2a1469e3441c4bea2bfe3f3a3b7f8ac2225cca51
Reviewed-on: https://chromium-review.googlesource.com/200343
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/firefly')
-rw-r--r-- | board/firefly/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/firefly/board.c b/board/firefly/board.c index f13b01807b..3364abf14f 100644 --- a/board/firefly/board.c +++ b/board/firefly/board.c @@ -148,8 +148,8 @@ const struct adc_t adc_channels[] = { /* USB PD CC lines sensing. Converted to mV (3300mV/4096). */ [ADC_CH_CC1_PD] = {"CC1_PD", 3300, 4096, 0, STM32_AIN(0)}, [ADC_CH_CC2_PD] = {"CC2_PD", 3300, 4096, 0, STM32_AIN(2)}, - /* VBUS voltage sensing is behind a 14.3K/100K voltage divider */ - [ADC_CH_VBUS_SENSE] = {"VBUS", 26377, 4096, 0, STM32_AIN(5)}, + /* VBUS voltage sensing is behind a 10K/100K voltage divider */ + [ADC_CH_VBUS_SENSE] = {"VBUS", 36300, 4096, 0, STM32_AIN(5)}, }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); |