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>
This commit is contained in:
Yu-Ping Wu 2021-05-21 14:55:01 +08:00 committed by Felix Held
parent b46a9e5ddb
commit 0ed04569d7
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ void setup_chromeos_gpios(void)
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)

View File

@ -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);