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>
This commit is contained in:
Yu-Ping Wu 2021-07-15 11:34:43 +08:00 committed by Werner Zeh
parent 9941e5a5e6
commit 1ce645347c
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ void setup_chromeos_gpios(void)
gpio_input_pullup(GPIO_GSC_AP_INT); gpio_input_pullup(GPIO_GSC_AP_INT);
gpio_output(GPIO_EN_SPK, 0); gpio_output(GPIO_EN_SPK, 0);
gpio_output(GPIO_RESET, 0); gpio_output(GPIO_RESET, 0);
gpio_output(GPIO_XHCI_DONE, 0);
} }
void fill_lb_gpios(struct lb_gpios *gpios) void fill_lb_gpios(struct lb_gpios *gpios)

View File

@ -9,6 +9,7 @@
#define GPIO_WP GPIO(GPIO_05) #define GPIO_WP GPIO(GPIO_05)
#define GPIO_SD_CD GPIO(I2SO1_D1) #define GPIO_SD_CD GPIO(I2SO1_D1)
#define GPIO_BEEP_ON GPIO(DMIC1_DAT) #define GPIO_BEEP_ON GPIO(DMIC1_DAT)
#define GPIO_XHCI_DONE GPIO(DGI_D4)
#define GPIO_EC_IN_RW GPIO(DGI_D10) #define GPIO_EC_IN_RW GPIO(DGI_D10)
#define GPIO_GSC_AP_INT GPIO(DGI_D11) #define GPIO_GSC_AP_INT GPIO(DGI_D11)
#define GPIO_EN_SPK GPIO(UART1_RTS) #define GPIO_EN_SPK GPIO(UART1_RTS)