Skip to content

Commit

Permalink
add usb hub reset gpio for h88k
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate committed Jul 26, 2023
1 parent 98aec4c commit 593b67e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <Library/RK806.h>
#include <Library/Rk3588Pcie.h>
#include <Soc.h>
#include <Library/TimerLib.h>

static struct regulator_init_data rk806_init_data[] = {
/* Master PMIC */
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
SerialPortLib
CruLib
GpioLib
TimerLib

[Sources.common]
RockchipPlatformLib.c
Expand Down

0 comments on commit 593b67e

Please sign in to comment.