Skip to content

Commit

Permalink
Enable USB PHYs a bit earlier and re-enable OhciDxe
Browse files Browse the repository at this point in the history
There's no clear dependency set here. It may be better to register a protocol for this instead.
  • Loading branch information
mariobalanica committed Mar 24, 2023
1 parent 8249a40 commit f386fdb
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,12 @@ RK3588InitPeripherals (

// GmacIomuxInit();

/* Enable USB PHYs */
Usb2PhyResume ();
UsbDpPhyEnable ();

UsbPortPowerEnable ();

return EFI_SUCCESS;
}

Expand Down
2 changes: 1 addition & 1 deletion edk2-platforms/Platform/OrangePi/OrangePi5/OrangePi5.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
#
# USB Ohci Controller
#
#Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf
Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf

#
# USB Ehci Controller
Expand Down
2 changes: 1 addition & 1 deletion edk2-platforms/Platform/OrangePi/OrangePi5/OrangePi5.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ READ_LOCK_STATUS = TRUE
#
# USB Ohci Controller
#
#INF Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf
INF Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf

#
# USB Dwc3 Controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,12 @@ RK3588InitPeripherals (

ComboPhyInit();

/* Enable USB PHYs */
Usb2PhyResume ();
UsbDpPhyEnable ();

UsbPortPowerEnable ();

return EFI_SUCCESS;
}

Expand Down
2 changes: 1 addition & 1 deletion edk2-platforms/Platform/Radxa/ROCK5B/ROCK5B.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
#
# USB Ohci Controller
#
#Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf
Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf

#
# USB Ehci Controller
Expand Down
2 changes: 1 addition & 1 deletion edk2-platforms/Platform/Radxa/ROCK5B/ROCK5B.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ READ_LOCK_STATUS = TRUE
#
# USB Ohci Controller
#
#INF Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf
INF Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf

#
# USB Dwc3 Controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,6 @@ UsbEndOfDxeCallback (

NumUsb2Controller = PcdGet32 (PcdNumEhciController);

/* Enable USB PHYs */
Usb2PhyResume();

UsbDpPhyEnable();

UsbPortPowerEnable ();

/* Register USB3 controllers */
for (Index = 0; Index < XhciControllerAddrArraySize; Index += sizeof(UINT32)) {
XhciControllerAddr = XhciControllerAddrArrayPtr[Index] |
Expand Down

0 comments on commit f386fdb

Please sign in to comment.