mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
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>
This commit is contained in:
committed by
chrome-internal-fetch
parent
f025bb66cc
commit
006a3f58b0
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user