diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2021-03-31 15:13:25 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-08 08:08:33 +0000 |
commit | c2e9a8b208387e50c480a3f9edc9c67f3088cf22 (patch) | |
tree | 7cae3c496450933177f82bbdfbfed72deaa77be3 /board/asurada | |
parent | 74b190af723b38f3766b0bab63cf9e26f8fa7be3 (diff) | |
download | chrome-ec-c2e9a8b208387e50c480a3f9edc9c67f3088cf22.tar.gz |
asurada : measure VBUS by ADC.
Dual VBUS ADC are supported since board revision >= 4.
This is to address the inaccurate VBUS present detection on SYV682x.
SYV682X assumes can only recognize VBUS equals Vsafe5V or Vsafe0V.
If the VBUS is not falling at the both range, it assume the VBUS >
vSafe5V and thus VBUS is presented. But if the votlage is fallint
between Vsafe5V and Vsafe0V, it still thinks VBUS presented, and this
is a false positive.
BUG=b:181203590
TEST=ensure VBUS ADC reports reasonable value
BRANCH=asurada
Change-Id: I1b57395216f1d6788bcd09306b503bdd3b49ddc8
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2793853
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/asurada')
-rw-r--r-- | board/asurada/gpio.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/asurada/gpio.inc b/board/asurada/gpio.inc index 6856efe956..209de9c901 100644 --- a/board/asurada/gpio.inc +++ b/board/asurada/gpio.inc @@ -128,7 +128,7 @@ ALTERNATE(PIN_MASK(B, 0x03), 1, MODULE_UART, 0) /* EC to Servo */ ALTERNATE(PIN_MASK(A, 0x07), 1, MODULE_PWM, 0) /* PWM 0~2 */ /* ADC */ -ALTERNATE(PIN_MASK(I, 0x4F), 0, MODULE_ADC, 0) /* ADC 0,1,2,3,6 */ +ALTERNATE(PIN_MASK(I, 0x6F), 0, MODULE_ADC, 0) /* ADC 0,1,2,3,5,6 */ /* SPI */ ALTERNATE(PIN_MASK(M, 0x33), 0, MODULE_SPI, 0) /* SPI */ @@ -149,7 +149,6 @@ GPIO(CCD_MODE_ODL, PIN(C, 4), GPIO_INPUT) * ADC pins don't have internal pull-down capability, * so we set them as output low. */ -GPIO(NC_GPI5, PIN(I, 5), GPIO_OUT_LOW) GPIO(NC_GPI7, PIN(I, 7), GPIO_OUT_LOW) /* NC pins, enable internal pull-up/down to avoid floating state. */ #ifdef BOARD_ASURADA_REV0 |