Platform/ROCK5A: Enable vcc_5v0

USB 2.0 ports were not working.

Fixes #35
This commit is contained in:
Mario Bălănică 2023-07-23 23:36:30 +03:00
parent 784d85ffd5
commit 6eeff5000d

View File

@ -192,12 +192,14 @@ UsbPortPowerEnable (
) )
{ {
DEBUG((EFI_D_WARN, "UsbPortPowerEnable called\n")); DEBUG((EFI_D_WARN, "UsbPortPowerEnable called\n"));
/* vcc5v0_host */
GpioPinSetDirection (4, GPIO_PIN_PB5, GPIO_PIN_OUTPUT); GpioPinSetDirection (4, GPIO_PIN_PB5, GPIO_PIN_OUTPUT);
GpioPinWrite (4, GPIO_PIN_PB5, TRUE); GpioPinWrite (4, GPIO_PIN_PB5, TRUE);
GpioPinSetDirection (0, GPIO_PIN_PD4, GPIO_PIN_OUTPUT); /* vcc_5v0 */
GpioPinWrite (0, GPIO_PIN_PD4, TRUE); GpioPinSetDirection (4, GPIO_PIN_PA3, GPIO_PIN_OUTPUT);
GpioPinWrite (4, GPIO_PIN_PA3, TRUE);
} }
VOID VOID