From 1ce645347caa13f568d67a203dbba6cfaffbd2a1 Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Thu, 15 Jul 2021 11:34:43 +0800 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56326 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin --- src/mainboard/google/cherry/chromeos.c | 1 + src/mainboard/google/cherry/gpio.h | 1 + 2 files changed, 2 insertions(+) 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) diff --git a/src/mainboard/google/cherry/gpio.h b/src/mainboard/google/cherry/gpio.h index f07fa38dc9..e5465ac147 100644 --- a/src/mainboard/google/cherry/gpio.h +++ b/src/mainboard/google/cherry/gpio.h @@ -9,6 +9,7 @@ #define GPIO_WP GPIO(GPIO_05) #define GPIO_SD_CD GPIO(I2SO1_D1) #define GPIO_BEEP_ON GPIO(DMIC1_DAT) +#define GPIO_XHCI_DONE GPIO(DGI_D4) #define GPIO_EC_IN_RW GPIO(DGI_D10) #define GPIO_GSC_AP_INT GPIO(DGI_D11) #define GPIO_EN_SPK GPIO(UART1_RTS)