diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2017-05-15 16:37:41 +0200 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2017-05-17 16:37:39 +0000 |
commit | 711f4545f857152594b28dce4756cb59489397b6 (patch) | |
tree | d34d0d866750b99ef5cba36f1754953c5033f83c | |
parent | 82047ffeebbdce1a00b3ed5be7daa30ebfb276cc (diff) | |
download | chrome-ec-711f4545f857152594b28dce4756cb59489397b6.tar.gz |
caroline: enable VBUS discharge
Enable the voltage discharge circuit on VBUS in order to be sure to
reach in time the required voltage level during a power swap.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=glados
BUG=none
TEST=manual, connect to Lenovo Thinkpad USB-C and see we are repeatedly
becoming a Sink rather than something staying stuck in the power swap.
Change-Id: I9e6a7a6c9e6dc63eae285a90c541fa0138f7b130
Reviewed-on: https://chromium-review.googlesource.com/506149
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | board/caroline/board.h | 1 | ||||
-rw-r--r-- | board/caroline/gpio.inc | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/board/caroline/board.h b/board/caroline/board.h index 844a832676..aa4e91e37e 100644 --- a/board/caroline/board.h +++ b/board/caroline/board.h @@ -87,6 +87,7 @@ #define CONFIG_USB_PD_ALT_MODE_DFP #define CONFIG_USB_PD_COMM_LOCKED #define CONFIG_USB_PD_CUSTOM_VDM +#define CONFIG_USB_PD_DISCHARGE_GPIO #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_LOGGING #define CONFIG_USB_PD_LOG_SIZE 128 diff --git a/board/caroline/gpio.inc b/board/caroline/gpio.inc index 5cd518b463..f1f9efdfb2 100644 --- a/board/caroline/gpio.inc +++ b/board/caroline/gpio.inc @@ -78,6 +78,8 @@ GPIO(USB_C0_5V_EN, PIN(154), GPIO_OUT_LOW) GPIO(USB_C1_5V_EN, PIN(204), GPIO_OUT_LOW) GPIO(USB_C0_CHARGE_EN_L, PIN(64), GPIO_OUT_LOW) GPIO(USB_C1_CHARGE_EN_L, PIN(210), GPIO_OUT_LOW) +GPIO(USB_C0_DISCHARGE, PIN(136), GPIO_OUT_LOW) +GPIO(USB_C1_DISCHARGE, PIN(105), GPIO_OUT_LOW) GPIO(PP1800_DX_SENSOR_EN, PIN(11), GPIO_OUT_LOW) GPIO(ENABLE_BACKLIGHT, PIN(202), GPIO_OUT_LOW) GPIO(PP3300_WLAN_EN, PIN(203), GPIO_OUT_LOW) |