mirror of
https://github.com/edk2-porting/edk2-rk3588.git
synced 2025-12-18 11:39:51 +08:00
FriendlyELEC/NanoPC-T6: enable USB 2.0 on LTS board (#156)
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: #153 Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
This commit is contained in:
committed by
GitHub
parent
78226d8bae
commit
c2d3801cfa
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user