mirror of
https://github.com/edk2-porting/edk2-rk3588.git
synced 2025-06-03 06:30:23 +00:00
Platform/ROCK5A: Enable vcc_5v0
USB 2.0 ports were not working. Fixes #35
This commit is contained in:
parent
784d85ffd5
commit
6eeff5000d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user