Skip to content

Commit

Permalink
FriendlyELEC/NanoPC-T6: enable USB 2.0 on LTS board
Browse files Browse the repository at this point in the history
NanoPC-T6 LTS has different USB configuration. There is no minipcie
slot, two usb 2.0 ports are accessible from outside and another two on
internal header.

To have it working we need to enable USB20_HOST_PWREN line.

Closes: edk2-porting#153

Signed-off-by: Marcin Juszkiewicz <[email protected]>
  • Loading branch information
hrw committed Aug 20, 2024
1 parent 0d37e72 commit 0d13bfb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ UsbPortPowerEnable (
GpioPinWrite (1, GPIO_PIN_PD2, TRUE);
GpioPinSetDirection (1, GPIO_PIN_PD2, GPIO_PIN_OUTPUT);

/* Set GPIO1 PA4 (USB20_HOST_PWREN) output high to power USB 2.0 ports */
GpioPinWrite (1, GPIO_PIN_PA4, TRUE);
GpioPinSetDirection (1, GPIO_PIN_PA4, GPIO_PIN_OUTPUT);
// DEBUG((DEBUG_INFO, "Trying to enable on-board LED1\n"));
// GpioPinWrite (2, GPIO_PIN_PC0, TRUE);
// GpioPinSetDirection (2, GPIO_PIN_PC0, GPIO_PIN_OUTPUT);
Expand Down

0 comments on commit 0d13bfb

Please sign in to comment.