-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
842 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ jobs: | |
- indiedroid-nova | ||
- roc-rk3588s-pc | ||
- itx-3588j | ||
- aio-3588q | ||
- station-m3 | ||
- r58x | ||
- r58-mini | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DSC_FILE=edk2-rockchip/Platform/Firefly/AIO-3588Q/AIO-3588Q.dsc | ||
PLATFORM_NAME=AIO-3588Q | ||
SOC=RK3588 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+178 KB
edk2-rockchip-non-osi/Platform/Rockchip/DeviceTree/rk3588-firefly-aio-3588q.dtb
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
edk2-rockchip/Platform/Firefly/AIO-3588Q/AIO-3588Q.Modules.fdf.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## @file | ||
# | ||
# Copyright (c) 2023, Mario Bălănică <mariobalanica02@gmail.com> | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
## | ||
|
||
# ACPI Support | ||
INF RuleOverride = ACPITABLE Platform/Firefly/AIO-3588Q/AcpiTables/AcpiTables.inf | ||
|
||
# Device Tree Support | ||
FILE FREEFORM = gDtPlatformDefaultDtbFileGuid { | ||
SECTION RAW = Platform/Rockchip/DeviceTree/rk3588-firefly-aio-3588q.dtb | ||
} | ||
|
||
# Splash screen logo | ||
INF $(VENDOR_DIRECTORY)/Drivers/LogoDxe/LogoDxe.inf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## @file | ||
# | ||
# Copyright (c) 2014-2018, Linaro Limited. All rights reserved. | ||
# Copyright (c) 2023, Mario Bălănică <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
## | ||
|
||
################################################################################ | ||
# | ||
# Defines Section - statements that will be processed to create a Makefile. | ||
# | ||
################################################################################ | ||
[Defines] | ||
PLATFORM_NAME = AIO-3588Q | ||
PLATFORM_VENDOR = Firefly | ||
PLATFORM_GUID = 400f8259-7664-47df-b375-8ba262e4867e | ||
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 | ||
|
||
# | ||
# Platform based on AIO-3588Q board | ||
# | ||
!include Platform/Firefly/AIO-3588Q/AIO-3588Q.dsc.inc |
134 changes: 134 additions & 0 deletions
134
edk2-rockchip/Platform/Firefly/AIO-3588Q/AIO-3588Q.dsc.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
## @file | ||
# | ||
# Copyright (c) 2014-2018, Linaro Limited. All rights reserved. | ||
# Copyright (c) 2023, 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] | ||
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf | ||
RK_PLATFORM_FVMAIN_MODULES = Platform/Firefly/AIO-3588Q/AIO-3588Q.Modules.fdf.inc | ||
|
||
# | ||
# HYM8563 RTC support | ||
# I2C location configured by PCDs below. | ||
# | ||
DEFINE RK_RTC8563_ENABLE = TRUE | ||
|
||
# | ||
# PCA9555 GPIO extender support | ||
# I2C location configured by PCDs below. | ||
# | ||
DEFINE RK_PCA9555_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/Firefly/AIO-3588Q/Library/RockchipPlatformLib/RockchipPlatformLib.inf | ||
|
||
################################################################################ | ||
# | ||
# Pcd Section - list of all EDK II PCD Entries defined by this Platform. | ||
# | ||
################################################################################ | ||
|
||
[PcdsFixedAtBuild.common] | ||
# SMBIOS platform config | ||
gRockchipTokenSpaceGuid.PcdPlatformName|"AIO-3588Q" | ||
gRockchipTokenSpaceGuid.PcdPlatformVendorName|"Firefly" | ||
gRockchipTokenSpaceGuid.PcdFamilyName|"AIO" | ||
gRockchipTokenSpaceGuid.PcdProductUrl|"https://en.t-firefly.com/product/core/icore3588q" | ||
gRockchipTokenSpaceGuid.PcdDeviceTreeName|"aio-3588q" | ||
|
||
# I2C | ||
# i2c0: pc9202@3c, rk8602@42, rk8603@43 | ||
# i2c1: rk8602@42 (npu) | ||
# i2c3: es8388@11, XC7160b@1b, gc2053b@37, gc2093b@7e | ||
# i2c6: pca9555@20, pca9555@21, fusb302@22, hym8563@51 | ||
gRockchipTokenSpaceGuid.PcdI2cSlaveAddresses|{ 0x42, 0x43, 0x42, 0x11, 0x51, 0x20, 0x21, 0x22 } | ||
gRockchipTokenSpaceGuid.PcdI2cSlaveBuses|{ 0x0, 0x0, 0x1, 0x3, 0x6, 0x6, 0x6, 0x6 } | ||
gRockchipTokenSpaceGuid.PcdI2cSlaveBusesRuntimeSupport|{ FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE } | ||
gRockchipTokenSpaceGuid.PcdRk860xRegulatorAddresses|{ 0x42, 0x43 } | ||
gRockchipTokenSpaceGuid.PcdRk860xRegulatorBuses|{ 0x0, 0x0 } | ||
gRockchipTokenSpaceGuid.PcdRk860xRegulatorTags|{ $(SCMI_CLK_CPUB01), $(SCMI_CLK_CPUB23) } | ||
gPcf8563RealTimeClockLibTokenSpaceGuid.PcdI2cSlaveAddress|0x51 | ||
gRockchipTokenSpaceGuid.PcdRtc8563Bus|0x6 | ||
gRockchipTokenSpaceGuid.PcdPca9555Address|0x21 | ||
gRockchipTokenSpaceGuid.PcdPca9555Bus|0x6 | ||
|
||
# | ||
# CPU Performance default values | ||
# | ||
gRK3588TokenSpaceGuid.PcdCPULClusterClockPresetDefault|$(CPU_PERF_CLUSTER_CLOCK_PRESET_BOOTDEFAULT) | ||
gRK3588TokenSpaceGuid.PcdCPUB01ClusterClockPresetDefault|$(CPU_PERF_CLUSTER_CLOCK_PRESET_BOOTDEFAULT) | ||
gRK3588TokenSpaceGuid.PcdCPUB23ClusterClockPresetDefault|$(CPU_PERF_CLUSTER_CLOCK_PRESET_BOOTDEFAULT) | ||
|
||
# | ||
# PCIe/SATA/USB Combo PIPE PHY support flags and default values | ||
# | ||
gRK3588TokenSpaceGuid.PcdComboPhy0Switchable|TRUE | ||
gRK3588TokenSpaceGuid.PcdComboPhy1Switchable|TRUE | ||
gRK3588TokenSpaceGuid.PcdComboPhy2Switchable|TRUE | ||
gRK3588TokenSpaceGuid.PcdComboPhy0ModeDefault|$(COMBO_PHY_MODE_PCIE) | ||
gRK3588TokenSpaceGuid.PcdComboPhy1ModeDefault|$(COMBO_PHY_MODE_PCIE) | ||
gRK3588TokenSpaceGuid.PcdComboPhy2ModeDefault|$(COMBO_PHY_MODE_USB3) | ||
|
||
# | ||
# USB/DP Combo PHY support flags and default values | ||
# | ||
gRK3588TokenSpaceGuid.PcdUsbDpPhy0Supported|TRUE | ||
gRK3588TokenSpaceGuid.PcdDp0LaneMux|{ 0x2, 0x3 } | ||
gRK3588TokenSpaceGuid.PcdUsbDpPhy1Supported|TRUE | ||
gRK3588TokenSpaceGuid.PcdDp1LaneMux|{ 0x2, 0x3 } | ||
|
||
# | ||
# GMAC | ||
# | ||
gRK3588TokenSpaceGuid.PcdGmac0Supported|TRUE | ||
gRK3588TokenSpaceGuid.PcdGmac0TxDelay|0x47 | ||
gRK3588TokenSpaceGuid.PcdGmac1Supported|TRUE | ||
gRK3588TokenSpaceGuid.PcdGmac1TxDelay|0x4f | ||
|
||
# | ||
# I2S | ||
# | ||
gRK3588TokenSpaceGuid.PcdI2S0Supported|TRUE | ||
|
||
# | ||
# On-Board fan output | ||
# | ||
gRK3588TokenSpaceGuid.PcdHasOnBoardFanOutput|TRUE | ||
|
||
################################################################################ | ||
# | ||
# Components Section - list of all EDK II Modules needed by this Platform. | ||
# | ||
################################################################################ | ||
[Components.common] | ||
# ACPI Support | ||
Platform/Firefly/AIO-3588Q/AcpiTables/AcpiTables.inf | ||
|
||
# Splash screen logo | ||
$(VENDOR_DIRECTORY)/Drivers/LogoDxe/LogoDxe.inf | ||
|
||
# Hack to enable use of PCA9555 during PCIe initialization. | ||
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf { | ||
<LibraryClasses> | ||
RockchipPlatformLib|Platform/Firefly/AIO-3588Q/Library/RockchipPlatformLib/RockchipPlatformLibPcaDepex.inf | ||
} |
55 changes: 55 additions & 0 deletions
55
edk2-rockchip/Platform/Firefly/AIO-3588Q/AcpiTables/AcpiTables.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#/** @file | ||
# | ||
# ACPI table data and ASL sources required to boot the platform. | ||
# | ||
# Copyright (c) 2019-2021, ARM Limited. All rights reserved. | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
#**/ | ||
|
||
[Defines] | ||
INF_VERSION = 0x0001001A | ||
BASE_NAME = AcpiTables | ||
FILE_GUID = 7E374E25-8E01-4FEE-87F2-390C23C606CD | ||
MODULE_TYPE = USER_DEFINED | ||
VERSION_STRING = 1.0 | ||
RK_COMMON_ACPI_DIR = Silicon/Rockchip/RK3588/AcpiTables | ||
|
||
# | ||
# The following information is for reference only and not required by the build tools. | ||
# | ||
# VALID_ARCHITECTURES = AARCH64 | ||
# | ||
|
||
[Sources] | ||
Dsdt.asl | ||
$(RK_COMMON_ACPI_DIR)/Madt.aslc | ||
$(RK_COMMON_ACPI_DIR)/Fadt.aslc | ||
$(RK_COMMON_ACPI_DIR)/Gtdt.aslc | ||
$(RK_COMMON_ACPI_DIR)/Spcr.aslc | ||
$(RK_COMMON_ACPI_DIR)/Mcfg.aslc | ||
$(RK_COMMON_ACPI_DIR)/Dbg2.aslc | ||
$(RK_COMMON_ACPI_DIR)/Pptt.aslc | ||
|
||
[Packages] | ||
ArmPkg/ArmPkg.dec | ||
ArmPlatformPkg/ArmPlatformPkg.dec | ||
EmbeddedPkg/EmbeddedPkg.dec | ||
MdeModulePkg/MdeModulePkg.dec | ||
MdePkg/MdePkg.dec | ||
Silicon/Rockchip/RockchipPkg.dec | ||
Silicon/Rockchip/RK3588/RK3588.dec | ||
|
||
[FixedPcd] | ||
gArmTokenSpaceGuid.PcdArmArchTimerIntrNum | ||
gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum | ||
gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum | ||
gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum | ||
gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase | ||
gArmTokenSpaceGuid.PcdGicDistributorBase | ||
gArmTokenSpaceGuid.PcdGicRedistributorsBase | ||
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase | ||
gRK3588TokenSpaceGuid.PcdI2S0Supported | ||
gRK3588TokenSpaceGuid.PcdI2S1Supported |
53 changes: 53 additions & 0 deletions
53
edk2-rockchip/Platform/Firefly/AIO-3588Q/AcpiTables/Dsdt.asl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/** @file | ||
* | ||
* Differentiated System Definition Table (DSDT) | ||
* | ||
* Copyright (c) 2020, Pete Batard <[email protected]> | ||
* Copyright (c) 2018-2020, Andrey Warkentin <[email protected]> | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Copyright (c) 2021, ARM Limited. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-2-Clause-Patent | ||
* | ||
**/ | ||
|
||
#include "AcpiTables.h" | ||
|
||
#define BOARD_I2S0_TPLG "i2s-jack" | ||
|
||
#define BOARD_AUDIO_CODEC_HID "ESSX8388" | ||
#define BOARD_CODEC_I2C "\\_SB.I2C3" | ||
#define BOARD_CODEC_I2C_ADDR 0x11 | ||
#define BOARD_CODEC_GPIO "\\_SB.GPI1" | ||
#define BOARD_CODEC_GPIO_PIN GPIO_PIN_PC4 | ||
|
||
DefinitionBlock ("Dsdt.aml", "DSDT", 2, "RKCP ", "RK3588 ", 2) | ||
{ | ||
Scope (\_SB_) | ||
{ | ||
include ("Cpu.asl") | ||
|
||
include ("Pcie.asl") | ||
include ("Sata.asl") | ||
include ("Emmc.asl") | ||
include ("Sdhc.asl") | ||
include ("Dma.asl") | ||
include ("Gmac0.asl") | ||
include ("Gmac1.asl") | ||
include ("Gpio.asl") | ||
include ("I2c.asl") | ||
include ("Uart.asl") | ||
// include ("Spi.asl") | ||
|
||
include ("I2s.asl") | ||
|
||
include ("Usb2Host.asl") | ||
include ("Usb3Host0.asl") | ||
include ("Usb3Host1.asl") | ||
include ("Usb3Host2.asl") | ||
|
||
Scope (I2C3) { | ||
include ("Es8388.asl") | ||
} | ||
} | ||
} |
Oops, something went wrong.