mb/google/asurada: Allow payloads to enable USB VBUS
Configure GPIO CAM_PDN5 (AP_XHCI_INIT_DONE) as output, so that
payloads (for example depthcharge) can assert it to notify EC to enable
USB VBUS.
BUG=b:187149602
TEST=emerge-asurada coreboot
BRANCH=asurada
Change-Id: I3bf63f91b8057e35be2780024a8b398c3044729b
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54902
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/mainboard/google/asurada/chromeos.c b/src/mainboard/google/asurada/chromeos.c
index 56a1084..6f8f242 100644
--- a/src/mainboard/google/asurada/chromeos.c
+++ b/src/mainboard/google/asurada/chromeos.c
@@ -16,6 +16,7 @@
gpio_input_pullup(GPIO_SD_CD);
gpio_output(GPIO_RESET, 0);
gpio_output(GPIO_EN_SPK_AMP, 0);
+ gpio_output(GPIO_XHCI_DONE, 0);
}
void fill_lb_gpios(struct lb_gpios *gpios)
diff --git a/src/mainboard/google/asurada/gpio.h b/src/mainboard/google/asurada/gpio.h
index ae34d33..8c33d9c 100644
--- a/src/mainboard/google/asurada/gpio.h
+++ b/src/mainboard/google/asurada/gpio.h
@@ -16,6 +16,8 @@
#define GPIO_RESET GPIO(CAM_PDN2)
/* EN_SPK */
#define GPIO_EN_SPK_AMP GPIO(CAM_PDN1)
+/* AP_XHCI_INIT_DONE */
+#define GPIO_XHCI_DONE GPIO(CAM_PDN5)
void setup_chromeos_gpios(void);