Skip to content

Commit 118c9c3

Browse files
committed
Khadas/Edge2: Enable VCC_5V0_PWREN_H early
Required for HDMI DDC. Signed-off-by: Mario Bălănică <[email protected]>
1 parent 1a8b095 commit 118c9c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

edk2-rockchip/Platform/Khadas/Edge2/Library/RockchipPlatformLib/RockchipPlatformLib.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@ UsbPortPowerEnable (
217217
{
218218
DEBUG ((DEBUG_INFO, "UsbPortPowerEnable called\n"));
219219

220-
/* Set VCC_5V0_PWREN_H */
221-
GpioPinWrite (4, GPIO_PIN_PA2, TRUE);
222-
GpioPinSetDirection (4, GPIO_PIN_PA2, GPIO_PIN_OUTPUT);
223-
224220
/* Set USB_HOST_PWREN_H */
225221
GpioPinWrite (1, GPIO_PIN_PB1, TRUE);
226222
GpioPinSetDirection (1, GPIO_PIN_PB1, GPIO_PIN_OUTPUT);
@@ -438,6 +434,11 @@ PlatformEarlyInit (
438434
)
439435
{
440436
// Configure various things specific to this platform
437+
438+
/* Set VCC_5V0_PWREN_H */
439+
GpioPinWrite (4, GPIO_PIN_PA2, TRUE);
440+
GpioPinSetDirection (4, GPIO_PIN_PA2, GPIO_PIN_OUTPUT);
441+
441442
GpioPinSetFunction (1, GPIO_PIN_PD3, 0); // jdet
442443
GpioPinSetFunction (1, GPIO_PIN_PD0, 0); // spk_con
443444
}

0 commit comments

Comments
 (0)