Skip to content

Commit b94e209

Browse files
committed
opi5max: specify all supported display connectors
1 parent ce7cdf3 commit b94e209

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

edk2-rockchip/Platform/OrangePi/OrangePi5Max/Library/RockchipPlatformLib/RockchipPlatformLib.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,36 @@ PciePeReset (
302302
}
303303
}
304304

305+
VOID
306+
EFIAPI
307+
HdmiTxIomux (
308+
IN UINT32 Id
309+
)
310+
{
311+
switch (Id) {
312+
case 0:
313+
GpioPinSetFunction (4, GPIO_PIN_PC1, 5); // hdmim0_tx0_cec
314+
GpioPinSetPull (4, GPIO_PIN_PC1, GPIO_PIN_PULL_NONE);
315+
GpioPinSetFunction (1, GPIO_PIN_PA5, 5); // hdmim0_tx0_hpd
316+
GpioPinSetPull (1, GPIO_PIN_PA5, GPIO_PIN_PULL_NONE);
317+
GpioPinSetFunction (4, GPIO_PIN_PB7, 5); // hdmim0_tx0_scl
318+
GpioPinSetPull (4, GPIO_PIN_PB7, GPIO_PIN_PULL_NONE);
319+
GpioPinSetFunction (4, GPIO_PIN_PC0, 5); // hdmim0_tx0_sda
320+
GpioPinSetPull (4, GPIO_PIN_PC0, GPIO_PIN_PULL_NONE);
321+
break;
322+
case 1:
323+
GpioPinSetFunction (2, GPIO_PIN_PC4, 4); // hdmim0_tx1_cec
324+
GpioPinSetPull (2, GPIO_PIN_PC4, GPIO_PIN_PULL_NONE);
325+
GpioPinSetFunction (1, GPIO_PIN_PA6, 5); // hdmim0_tx1_hpd
326+
GpioPinSetPull (1, GPIO_PIN_PA6, GPIO_PIN_PULL_NONE);
327+
GpioPinSetFunction (3, GPIO_PIN_PC6, 5); // hdmim1_tx1_scl
328+
GpioPinSetPull (3, GPIO_PIN_PC6, GPIO_PIN_PULL_NONE);
329+
GpioPinSetFunction (3, GPIO_PIN_PC5, 5); // hdmim1_tx1_sda
330+
GpioPinSetPull (3, GPIO_PIN_PC5, GPIO_PIN_PULL_NONE);
331+
break;
332+
}
333+
}
334+
305335
PWM_DATA pwm_data = {
306336
.ControllerID = PWM_CONTROLLER0,
307337
.ChannelID = PWM_CHANNEL3,

edk2-rockchip/Platform/OrangePi/OrangePi5Max/OrangePi5Max.dsc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@
102102
#
103103
gRK3588TokenSpaceGuid.PcdHasOnBoardFanOutput|TRUE
104104

105+
#
106+
# Display support flags and default values
107+
#
108+
gRK3588TokenSpaceGuid.PcdDisplayConnectors|{CODE({
109+
VOP_OUTPUT_IF_HDMI0,
110+
VOP_OUTPUT_IF_HDMI1
111+
})}
112+
105113
################################################################################
106114
#
107115
# Components Section - list of all EDK II Modules needed by this Platform.

0 commit comments

Comments
 (0)