diff --git a/edk2-rockchip/Platform/Hinlink/H88K/Library/RockchipPlatformLib/RockchipPlatformLib.c b/edk2-rockchip/Platform/Hinlink/H88K/Library/RockchipPlatformLib/RockchipPlatformLib.c index 051450a60..f9b732280 100644 --- a/edk2-rockchip/Platform/Hinlink/H88K/Library/RockchipPlatformLib/RockchipPlatformLib.c +++ b/edk2-rockchip/Platform/Hinlink/H88K/Library/RockchipPlatformLib/RockchipPlatformLib.c @@ -12,6 +12,7 @@ #include #include #include +#include static struct regulator_init_data rk806_init_data[] = { /* Master PMIC */ @@ -201,6 +202,11 @@ UsbPortPowerEnable ( /* Set GPIO4 PB0 (USB_HOST_PWREN) output high to power USB ports */ GpioPinSetDirection (4, GPIO_PIN_PB0, GPIO_PIN_OUTPUT); GpioPinWrite (4, GPIO_PIN_PB0, TRUE); + /* Set GPIO4 PB0 (USB_HUB_PWREN) output high to power USB ports */ + GpioPinSetDirection (4, GPIO_PIN_PA6, GPIO_PIN_OUTPUT); + GpioPinWrite (4, GPIO_PIN_PA6, FALSE); + MicroSecondDelay (100); + GpioPinWrite (4, GPIO_PIN_PA6, TRUE); } VOID diff --git a/edk2-rockchip/Platform/Hinlink/H88K/Library/RockchipPlatformLib/RockchipPlatformLib.inf b/edk2-rockchip/Platform/Hinlink/H88K/Library/RockchipPlatformLib/RockchipPlatformLib.inf index bc1c43747..74abdf262 100644 --- a/edk2-rockchip/Platform/Hinlink/H88K/Library/RockchipPlatformLib/RockchipPlatformLib.inf +++ b/edk2-rockchip/Platform/Hinlink/H88K/Library/RockchipPlatformLib/RockchipPlatformLib.inf @@ -28,6 +28,7 @@ SerialPortLib CruLib GpioLib + TimerLib [Sources.common] RockchipPlatformLib.c