mirror of
https://github.com/edk2-porting/edk2-rk3588.git
synced 2026-01-08 19:44:58 +08:00
Particularly for HDMI and eDP as the other drivers could already bind to multiple outputs. The eDP driver is still disabled by default because it requires EdpEnableBacklight() to be implemented in RockchipPlatformLib, but it does appear to load fine and has been tested to work some time ago. Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
129 lines
4.6 KiB
Plaintext
129 lines
4.6 KiB
Plaintext
## @file
|
|
#
|
|
# Copyright (c) 2014-2018, Linaro Limited. All rights reserved.
|
|
# Copyright (c) 2023-2024, Mario Bălănică <mariobalanica02@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
################################################################################
|
|
#
|
|
# Defines Section - statements that will be processed to create a Makefile.
|
|
#
|
|
################################################################################
|
|
[Defines]
|
|
PLATFORM_NAME = OrangePi5Plus
|
|
PLATFORM_VENDOR = OrangePi
|
|
PLATFORM_GUID = 6bb03dd4-c246-474a-851c-70ea24a89e43
|
|
PLATFORM_VERSION = 0.2
|
|
DSC_SPECIFICATION = 0x00010019
|
|
OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
|
|
VENDOR_DIRECTORY = Platform/$(PLATFORM_VENDOR)
|
|
PLATFORM_DIRECTORY = $(VENDOR_DIRECTORY)/$(PLATFORM_NAME)
|
|
SUPPORTED_ARCHITECTURES = AARCH64
|
|
BUILD_TARGETS = DEBUG|RELEASE
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
|
|
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc
|
|
|
|
# GMAC is not exposed
|
|
DEFINE RK3588_GMAC_ENABLE = FALSE
|
|
|
|
#
|
|
# HYM8563 RTC support
|
|
# I2C location configured by PCDs below.
|
|
#
|
|
DEFINE RK_RTC8563_ENABLE = TRUE
|
|
|
|
#
|
|
# RK3588-based platform
|
|
#
|
|
!include Silicon/Rockchip/RK3588/RK3588Platform.dsc.inc
|
|
|
|
################################################################################
|
|
#
|
|
# Library Class section - list of all Library Classes needed by this Platform.
|
|
#
|
|
################################################################################
|
|
|
|
[LibraryClasses.common]
|
|
RockchipPlatformLib|$(PLATFORM_DIRECTORY)/Library/RockchipPlatformLib/RockchipPlatformLib.inf
|
|
|
|
################################################################################
|
|
#
|
|
# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
|
|
#
|
|
################################################################################
|
|
|
|
[PcdsFixedAtBuild.common]
|
|
# SMBIOS platform config
|
|
gRockchipTokenSpaceGuid.PcdPlatformName|"Orange Pi 5 Plus"
|
|
gRockchipTokenSpaceGuid.PcdPlatformVendorName|"Orange Pi"
|
|
gRockchipTokenSpaceGuid.PcdFamilyName|"Orange Pi 5"
|
|
gRockchipTokenSpaceGuid.PcdProductUrl|"http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html"
|
|
gRockchipTokenSpaceGuid.PcdDeviceTreeName|"rk3588-orangepi-5-plus"
|
|
|
|
# I2C
|
|
gRockchipTokenSpaceGuid.PcdI2cSlaveAddresses|{ 0x42, 0x43, 0x51 }
|
|
gRockchipTokenSpaceGuid.PcdI2cSlaveBuses|{ 0x0, 0x0, 0x6, 0x7 }
|
|
gRockchipTokenSpaceGuid.PcdI2cSlaveBusesRuntimeSupport|{ FALSE, FALSE, TRUE, FALSE }
|
|
gRockchipTokenSpaceGuid.PcdRk860xRegulatorAddresses|{ 0x42, 0x43, 0x11 }
|
|
gRockchipTokenSpaceGuid.PcdRk860xRegulatorBuses|{ 0x0, 0x0 }
|
|
gRockchipTokenSpaceGuid.PcdRk860xRegulatorTags|{ $(SCMI_CLK_CPUB01), $(SCMI_CLK_CPUB23) }
|
|
gPcf8563RealTimeClockLibTokenSpaceGuid.PcdI2cSlaveAddress|0x51
|
|
gRockchipTokenSpaceGuid.PcdRtc8563Bus|0x6
|
|
|
|
#
|
|
# PCIe/SATA/USB Combo PIPE PHY support flags and default values
|
|
#
|
|
gRK3588TokenSpaceGuid.PcdComboPhy0Switchable|FALSE
|
|
gRK3588TokenSpaceGuid.PcdComboPhy1Switchable|TRUE
|
|
gRK3588TokenSpaceGuid.PcdComboPhy2Switchable|FALSE
|
|
gRK3588TokenSpaceGuid.PcdComboPhy0ModeDefault|$(COMBO_PHY_MODE_PCIE)
|
|
gRK3588TokenSpaceGuid.PcdComboPhy1ModeDefault|$(COMBO_PHY_MODE_PCIE)
|
|
gRK3588TokenSpaceGuid.PcdComboPhy2ModeDefault|$(COMBO_PHY_MODE_PCIE)
|
|
|
|
#
|
|
# USB/DP Combo PHY support flags and default values
|
|
#
|
|
gRK3588TokenSpaceGuid.PcdUsbDpPhy0Supported|TRUE
|
|
gRK3588TokenSpaceGuid.PcdUsbDpPhy1Supported|TRUE
|
|
gRK3588TokenSpaceGuid.PcdDp0LaneMux|{ 0x2, 0x3 }
|
|
gRK3588TokenSpaceGuid.PcdDp1LaneMux|{ 0x0 }
|
|
|
|
#
|
|
# I2S
|
|
#
|
|
gRK3588TokenSpaceGuid.PcdI2S0Supported|TRUE
|
|
|
|
#
|
|
# On-Board fan output
|
|
#
|
|
gRK3588TokenSpaceGuid.PcdHasOnBoardFanOutput|TRUE
|
|
|
|
#
|
|
# Display support flags and default values
|
|
#
|
|
gRK3588TokenSpaceGuid.PcdDisplayConnectors|{CODE({
|
|
VOP_OUTPUT_IF_HDMI0,
|
|
VOP_OUTPUT_IF_HDMI1,
|
|
VOP_OUTPUT_IF_DP0
|
|
})}
|
|
|
|
################################################################################
|
|
#
|
|
# Components Section - list of all EDK II Modules needed by this Platform.
|
|
#
|
|
################################################################################
|
|
[Components.common]
|
|
# ACPI Support
|
|
$(PLATFORM_DIRECTORY)/AcpiTables/AcpiTables.inf
|
|
|
|
# Device Tree Support
|
|
$(PLATFORM_DIRECTORY)/DeviceTree/Vendor.inf
|
|
$(PLATFORM_DIRECTORY)/DeviceTree/Mainline.inf
|
|
|
|
# Splash screen logo
|
|
$(VENDOR_DIRECTORY)/Drivers/LogoDxe/LogoDxe.inf
|