summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cherry/chromeos.c
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2021-07-15 11:34:43 +0800
committerWerner Zeh <werner.zeh@siemens.com>2021-07-16 04:15:53 +0000
commit1ce645347caa13f568d67a203dbba6cfaffbd2a1 (patch)
treeef84113b2afd2aa39c28556caafc5ba5ea54d168 /src/mainboard/google/cherry/chromeos.c
parent9941e5a5e6d513a39966a129d77bd47925a0f407 (diff)
mb/google/cherry: Allow payloads to enable USB VBUS
Configure GPIO DGI_D4 (AP_XHCI_INIT_DONE) as output, so that payloads (for example depthcharge) can assert it to notify EC to enable USB VBUS. BUG=b:193499785 TEST=emerge-cherry coreboot BRANCH=none Change-Id: I21b7b811b8138cb3f71efecb0a0a886905c65a9c Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56326 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/mainboard/google/cherry/chromeos.c')
-rw-r--r--src/mainboard/google/cherry/chromeos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainboard/google/cherry/chromeos.c b/src/mainboard/google/cherry/chromeos.c
index 8f0e9aedf4..db7db782a8 100644
--- a/src/mainboard/google/cherry/chromeos.c
+++ b/src/mainboard/google/cherry/chromeos.c
@@ -17,6 +17,7 @@ void setup_chromeos_gpios(void)
gpio_input_pullup(GPIO_GSC_AP_INT);
gpio_output(GPIO_EN_SPK, 0);
gpio_output(GPIO_RESET, 0);
+ gpio_output(GPIO_XHCI_DONE, 0);
}
void fill_lb_gpios(struct lb_gpios *gpios)