From d1da0f3d97807f2241a361ded447dd6e7592a021 Mon Sep 17 00:00:00 2001 From: Statzar Date: Tue, 26 Dec 2023 18:04:41 +0300 Subject: [PATCH] Fog: some fixes --- Platform/Qualcomm/sm6225/Apriori.fdf.inc | 91 +- Platform/Qualcomm/sm6225/Apriori.fog.fdf.inc | 108 -- Platform/Qualcomm/sm6225/dxe.fdf.inc | 65 +- Platform/Qualcomm/sm6225/dxe.fog.fdf.inc | 113 -- Platform/Qualcomm/sm6225/sm6225.dsc | 19 +- Platform/Qualcomm/sm6225/sm6225.fdf | 16 +- Platform/Qualcomm/sm6225/sm6225.fog.dsc | 71 - Platform/Qualcomm/sm6225/sm6225.fog.fdf | 269 --- .../Xiaomi/sm6225/AcpiTables/fog/DSDT.aml | Bin 0 -> 8012 bytes .../Xiaomi/sm6225/AcpiTables/fog/DSDT.dsl | 99 + Platform/Xiaomi/sm6225/AcpiTables/fog/abd.dsl | 20 + .../Xiaomi/sm6225/AcpiTables/fog/btns.dsl | 74 + .../Xiaomi/sm6225/AcpiTables/fog/gpio.dsl | 90 + .../Xiaomi/sm6225/AcpiTables/fog/pep_lpi.dsl | 1680 +++++++++++++++++ .../sm6225/AcpiTables/fog/pmic_core.dsl | 200 ++ .../Xiaomi/sm6225/AcpiTables/fog/qcgpio.dsl | 41 + Platform/Xiaomi/sm6225/AcpiTables/fog/scm.dsl | 6 + .../Xiaomi/sm6225/AcpiTables/fog/spmi.dsl | 31 + Platform/Xiaomi/sm6225/AcpiTables/fog/usb.dsl | 416 ++++ Platform/Xiaomi/sm6225/fog.dsc | 6 +- Platform/Xiaomi/sm6225/fog.fdf.inc | 11 +- Silicon/Qualcomm/sm6225/AcpiTables/FADT.aml | Bin 0 -> 276 bytes Silicon/Qualcomm/sm6225/AcpiTables/FADT.dsl | 164 ++ Silicon/Qualcomm/sm6225/AcpiTables/GTDT.aml | Bin 0 -> 156 bytes Silicon/Qualcomm/sm6225/AcpiTables/GTDT.dsl | 63 + Silicon/Qualcomm/sm6225/AcpiTables/MADT.aml | Bin 0 -> 740 bytes Silicon/Qualcomm/sm6225/AcpiTables/MADT.dsl | 212 +++ .../Configuration/DeviceConfigurationMap.h | 62 +- .../PlatformMemoryMapLib.c | 154 +- 29 files changed, 3312 insertions(+), 769 deletions(-) delete mode 100644 Platform/Qualcomm/sm6225/Apriori.fog.fdf.inc delete mode 100644 Platform/Qualcomm/sm6225/dxe.fog.fdf.inc delete mode 100644 Platform/Qualcomm/sm6225/sm6225.fog.dsc delete mode 100644 Platform/Qualcomm/sm6225/sm6225.fog.fdf create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/DSDT.aml create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/DSDT.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/abd.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/btns.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/gpio.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/pep_lpi.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/pmic_core.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/qcgpio.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/scm.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/spmi.dsl create mode 100644 Platform/Xiaomi/sm6225/AcpiTables/fog/usb.dsl create mode 100644 Silicon/Qualcomm/sm6225/AcpiTables/FADT.aml create mode 100644 Silicon/Qualcomm/sm6225/AcpiTables/FADT.dsl create mode 100644 Silicon/Qualcomm/sm6225/AcpiTables/GTDT.aml create mode 100644 Silicon/Qualcomm/sm6225/AcpiTables/GTDT.dsl create mode 100644 Silicon/Qualcomm/sm6225/AcpiTables/MADT.aml create mode 100644 Silicon/Qualcomm/sm6225/AcpiTables/MADT.dsl diff --git a/Platform/Qualcomm/sm6225/Apriori.fdf.inc b/Platform/Qualcomm/sm6225/Apriori.fdf.inc index fbdc7a68fc..d0f3f163f1 100644 --- a/Platform/Qualcomm/sm6225/Apriori.fdf.inc +++ b/Platform/Qualcomm/sm6225/Apriori.fdf.inc @@ -3,16 +3,16 @@ APRIORI DXE { # # PI DXE Drivers producing Architectural Protocols (EFI Services) # - INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf - INF MdeModulePkg/Core/Dxe/DxeMain.inf - # INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf - # INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf - INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf - INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf - INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf - INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf - INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf - INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf + INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf + INF MdeModulePkg/Core/Dxe/DxeMain.inf + INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf + INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf + INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf + INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf + INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf + INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf + INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf + INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/SmemDxe/SmemDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/DALSYSDxe/DALSYSDxe.inf @@ -26,76 +26,59 @@ APRIORI DXE { INF Platform/EFI_Binaries/Drivers/sm6225/VcsDxe/VcsDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/ClockDxe/ClockDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/ShmBridgeDxe/ShmBridgeDxeLA.inf - # INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/ScmDxeLA.inf + INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/ScmDxeLA.inf - FILE DRIVER = 4b4973ee-401b-4f36-a6a9-533dfccdfc33 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/sm6225/TzDxe/ScmDxeLA.efi - SECTION UI = "ScmDxeLA" - } + INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf + INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/SdccDxe/SdccDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/UFSDxe/UFSDxe.inf - INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf - INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf - INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf - INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/SdccDxe/SdccDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UFSDxe/UFSDxe.inf - - INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf - INF FatPkg/EnhancedFatDxe/Fat.inf - - # INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.inf - - FILE DRIVER = cf6dfc66-14ab-4e13-84db-9c02912d1404 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.efi - SECTION UI = "TzDxeLA" - } + INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + INF FatPkg/EnhancedFatDxe/Fat.inf + INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.inf INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/QcomWDogDxe/QcomWDogDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/TLMMDxe/TLMMDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/SPMIDxe/SPMIDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/ResetRuntimeDxe/ResetRuntimeDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/PmicDxe/PmicDxeLa.inf INF Platform/EFI_Binaries/Drivers/sm6225/PILDxe/PILDxe.inf - !if $(SECURE_BOOT_ENABLE) == TRUE - INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf - INF SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf + INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf + INF SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf !endif - INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf - INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf - INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf - INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf - INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf - INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf - INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf - INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf + INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf + INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf + INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf + INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf + INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf + INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf + INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf + INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/FontDxe/FontDxe.inf - INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf + INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/I2CDxe/I2CDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/AdcDxe/AdcDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/UsbPwrCtrlDxe/UsbPwrCtrlDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/QcomChargerDxe/QcomChargerDxeLA.inf INF Platform/EFI_Binaries/Drivers/sm6225/ChargerExDxe/ChargerExDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/UsbfnDwc3Dxe/UsbfnDwc3Dxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/UsbConfigDxe/UsbConfigDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ButtonsDxe/ButtonsDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/TsensDxe/TsensDxe.inf - INF Silicon/Qualcomm/QcomPkg/Drivers/SimpleFbDxe/SimpleFbDxe.inf + INF Silicon/Qualcomm/QcomPkg/Drivers/SimpleFbDxe/SimpleFbDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/GpiDxe/GpiDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/DDRInfoDxe/DDRInfoDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/DDRInfoDxe/DDRInfoDxe.inf - INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf - INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf - INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf - INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf -} + INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf + INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf + INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf + INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf +} \ No newline at end of file diff --git a/Platform/Qualcomm/sm6225/Apriori.fog.fdf.inc b/Platform/Qualcomm/sm6225/Apriori.fog.fdf.inc deleted file mode 100644 index 65be2ba980..0000000000 --- a/Platform/Qualcomm/sm6225/Apriori.fog.fdf.inc +++ /dev/null @@ -1,108 +0,0 @@ -APRIORI DXE { - - # - # PI DXE Drivers producing Architectural Protocols (EFI Services) - # - INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf - INF MdeModulePkg/Core/Dxe/DxeMain.inf - INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf - INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf - INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf - INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf - INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf - INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf - INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf - INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/SmemDxe/SmemDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/DALSYSDxe/DALSYSDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/HWIODxe/HWIODxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ChipInfoDxe/ChipInfoDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PlatformInfoDxe/PlatformInfoDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/HALIOMMUDxe/HALIOMMUDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/GLinkDxe/GLinkDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ULogDxe/ULogDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/NpaDxe/NpaDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/VcsDxe/VcsDxe.inf - INF Platform/EFI_Binaries/Drivers/Devices/fog/ClockDxe/ClockDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ShmBridgeDxe/ShmBridgeDxeLA.inf - # INF Platform/EFI_Binaries/Drivers/sm6225/ScmDxe/ScmDxe.inf - - FILE DRIVER = 4b4973ee-401b-4f36-a6a9-533dfccdfc33 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/sm6225/ScmDxe/ScmDxe.efi - SECTION UI = "ScmDxe" - } - - FILE DRIVER = 6B38F7B4-AD98-40E9-9093-ACA2B5A253C4 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/fog/DiskIoDxe/DiskIoDxe.efi - SECTION UI = "DiskIoDxe" - } - - FILE DRIVER = 1FA1F39E-FEFF-4AAE-BD7B-38A070A3B609 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/fog/PartitionDxe/PartitionDxe.efi - SECTION UI = "PartitionDxe" - } - - INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf - INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/SdccDxe/SdccDxe.inf - INF Platform/EFI_Binaries/Drivers/Devices/fog/UFSDxe/UFSDxe.inf - - INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf - INF FatPkg/EnhancedFatDxe/Fat.inf - - # INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxe.inf - - FILE DRIVER = cf6dfc66-14ab-4e13-84db-9c02912d1404 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.efi - SECTION UI = "TzDxe" - } - - INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/QcomWDogDxe/QcomWDogDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/TLMMDxe/TLMMDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/SPMIDxe/SPMIDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ResetRuntimeDxe/ResetRuntimeDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PmicDxe/PmicDxeLa.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PILDxe/PILDxe.inf - - -!if $(SECURE_BOOT_ENABLE) == TRUE - INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf - INF SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf -!endif - - INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf - INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf - INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf - INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf - INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf - INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf - INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf - INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/FontDxe/FontDxe.inf - - INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/AdcDxe/AdcDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbPwrCtrlDxe/UsbPwrCtrlDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/QcomChargerDxe/QcomChargerDxeLA.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ChargerExDxe/ChargerExDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbfnDwc3Dxe/UsbfnDwc3Dxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbConfigDxe/UsbConfigDxe.inf - INF Platform/EFI_Binaries/Drivers/Devices/fog/ButtonsDxe/ButtonsDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/TsensDxe/TsensDxe.inf - - INF Silicon/Qualcomm/QcomPkg/Drivers/SimpleFbDxe/SimpleFbDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/GpiDxe/GpiDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/DDRInfoDxe/DDRInfoDxe.inf - - INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf - INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf - INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf - INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf -} diff --git a/Platform/Qualcomm/sm6225/dxe.fdf.inc b/Platform/Qualcomm/sm6225/dxe.fdf.inc index 62530fe093..9219c25cbf 100644 --- a/Platform/Qualcomm/sm6225/dxe.fdf.inc +++ b/Platform/Qualcomm/sm6225/dxe.fdf.inc @@ -1,53 +1,42 @@ - INF Platform/EFI_Binaries/Drivers/sm6225/SmemDxe/SmemDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/DALSYSDxe/DALSYSDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/HWIODxe/HWIODxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/ScmDxeLA.inf + INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.inf + + INF Platform/EFI_Binaries/Drivers/sm6225/FontDxe/FontDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/QcomWDogDxe/QcomWDogDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/ChipInfoDxe/ChipInfoDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PlatformInfoDxe/PlatformInfoDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/HALIOMMUDxe/HALIOMMUDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/GLinkDxe/GLinkDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/SmemDxe/SmemDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/ULogDxe/ULogDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/NpaDxe/NpaDxe.inf + + INF Platform/EFI_Binaries/Drivers/sm6225/DALSYSDxe/DALSYSDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/VcsDxe/VcsDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/ClockDxe/ClockDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ShmBridgeDxe/ShmBridgeDxeLA.inf - # INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/ScmDxeLA.inf - - FILE DRIVER = 4b4973ee-401b-4f36-a6a9-533dfccdfc33 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/sm6225/TzDxe/ScmDxeLA.efi - SECTION UI = "ScmDxeLA" - } - - INF Platform/EFI_Binaries/Drivers/sm6225/SdccDxe/SdccDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UFSDxe/UFSDxe.inf - - # INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.inf - FILE DRIVER = cf6dfc66-14ab-4e13-84db-9c02912d1404 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.efi - SECTION UI = "TzDxeLA" - } - - INF Platform/EFI_Binaries/Drivers/sm6225/QcomWDogDxe/QcomWDogDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/TLMMDxe/TLMMDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/HALIOMMUDxe/HALIOMMUDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/HWIODxe/HWIODxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/GpiDxe/GpiDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/I2CDxe/I2CDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/SPMIDxe/SPMIDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ResetRuntimeDxe/ResetRuntimeDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PmicDxe/PmicDxeLa.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PILDxe/PILDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/FontDxe/FontDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/SdccDxe/SdccDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/UFSDxe/UFSDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/TLMMDxe/TLMMDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/AdcDxe/AdcDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbPwrCtrlDxe/UsbPwrCtrlDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/QcomChargerDxe/QcomChargerDxeLA.inf + INF Platform/EFI_Binaries/Drivers/sm6225/PlatformInfoDxe/PlatformInfoDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/PmicDxe/PmicDxeLa.inf INF Platform/EFI_Binaries/Drivers/sm6225/ChargerExDxe/ChargerExDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/QcomChargerDxe/QcomChargerDxeLA.inf + INF Platform/EFI_Binaries/Drivers/sm6225/UsbPwrCtrlDxe/UsbPwrCtrlDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/AdcDxe/AdcDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/TsensDxe/TsensDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/DDRInfoDxe/DDRInfoDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/UsbfnDwc3Dxe/UsbfnDwc3Dxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/UsbMsdDxe/UsbMsdDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/UsbDeviceDxe/UsbDeviceDxe.inf INF Platform/EFI_Binaries/Drivers/sm6225/UsbConfigDxe/UsbConfigDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ButtonsDxe/ButtonsDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/TsensDxe/TsensDxe.inf - - INF Silicon/Qualcomm/QcomPkg/Drivers/SimpleFbDxe/SimpleFbDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/GpiDxe/GpiDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/DDRInfoDxe/DDRInfoDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/PILDxe/PILDxe.inf + INF Platform/EFI_Binaries/Drivers/sm6225/ShmBridgeDxe/ShmBridgeDxeLA.inf + INF Platform/EFI_Binaries/Drivers/sm6225/ResetRuntimeDxe/ResetRuntimeDxe.inf \ No newline at end of file diff --git a/Platform/Qualcomm/sm6225/dxe.fog.fdf.inc b/Platform/Qualcomm/sm6225/dxe.fog.fdf.inc deleted file mode 100644 index 6d05cb6e90..0000000000 --- a/Platform/Qualcomm/sm6225/dxe.fog.fdf.inc +++ /dev/null @@ -1,113 +0,0 @@ - INF Platform/EFI_Binaries/Drivers/sm6225/SmemDxe/SmemDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/DALSYSDxe/DALSYSDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/HWIODxe/HWIODxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ChipInfoDxe/ChipInfoDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PlatformInfoDxe/PlatformInfoDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/HALIOMMUDxe/HALIOMMUDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/GLinkDxe/GLinkDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ULogDxe/ULogDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/NpaDxe/NpaDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/VcsDxe/VcsDxe.inf - INF Platform/EFI_Binaries/Drivers/Devices/fog/ClockDxe/ClockDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ShmBridgeDxe/ShmBridgeDxeLA.inf - # INF Platform/EFI_Binaries/Drivers/sm6225/ScmDxe/ScmDxe.inf - - FILE DRIVER = 4b4973ee-401b-4f36-a6a9-533dfccdfc33 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/sm6225/ScmDxe/ScmDxe.efi - SECTION UI = "ScmDxe" - } - - INF Platform/EFI_Binaries/Drivers/sm6225/SdccDxe/SdccDxe.inf - INF Platform/EFI_Binaries/Drivers/Devices/fog/UFSDxe/UFSDxe.inf - - # INF Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.inf - - FILE DRIVER = cf6dfc66-14ab-4e13-84db-9c02912d1404 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/sm6225/TzDxe/TzDxeLA.efi - SECTION UI = "TzDxe" - } - - FILE FREEFORM = A91D838E-A5FA-4138-825D-455E2303079E { - SECTION UI = "BDS_Menu.cfg" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/BDS_Menu.cfg - } - - FILE FREEFORM = 02E0AF91-5D44-424F-828F-211ADC520B0C { - SECTION UI = "Panel_truly_td4330_fhd_cmd.xml" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/Panel_truly_td4330_fhd_cmd.xml - } - - FILE FREEFORM = 9BAE75D9-A217-4B31-9DCD-00D2609BC6AE { - SECTION UI = "Panel_truly_td4330_fhd_vid.xml" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/Panel_truly_td4330_fhd_vid.xml - } - - FILE FREEFORM = C0DECCE0-BD15-480F-BD18-5FF4C530176C { - SECTION UI = "Panel_c3q_35_02_0a_fhdp_video.xml" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/Panel_c3q_35_02_0a_fhdp_video.xml - } - - FILE FREEFORM = 8CB43165-DA92-41B6-85EB-5E15802F9A07 { - SECTION UI = "Panel_c3q_43_03_0b_fhdp_video.xml" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/Panel_c3q_43_03_0b_fhdp_video.xml - } - - FILE FREEFORM = A1E235DE-E825-4591-9623-C43175811826 { - SECTION UI = "SecParti.cfg" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/SecParti.cfg - } - - FILE FREEFORM = 21E9BDD9-6C3F-4F10-84A5-BBEC322741F1 { - SECTION UI = "uefipil.cfg" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/uefipil.cfg - } - - FILE FREEFORM = 45FE4B7C-150C-45DA-A021-4BEB2048EC6F { - SECTION UI = "QcomChargerCfg.cfg" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/QcomChargerCfg.cfg - } - - FILE FREEFORM = F780C779-DD7C-47CD-BD1A-5EB414C51704 { - SECTION UI = "BATTERY.PROVISION" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/BATTERY.PROVISION - } - - FILE FREEFORM = F52EC379-FD2E-4229-BF74-319444BAF482 { - SECTION UI = "Panel_c3q_45_02_0c_fhdp_video.xml" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/Panel_c3q_45_02_0c_fhdp_video.xml - } - - FILE FREEFORM = 9BAE75D9-A217-4B31-9DCD-00D2609B6784 { - SECTION UI = "Panel_truly_nt36525_hd_plus_vid.xml" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/Panel_truly_nt36525_hd_plus_vid.xml - } - - FILE FREEFORM = 9BAE75D9-A217-4B31-9DCD-00D2609B6785 { - SECTION UI = "Panel_nt36525_hd_plus_90hz_vid.xml" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/Panel_nt36525_hd_plus_90hz_vid.xml - } - - INF Platform/EFI_Binaries/Drivers/sm6225/QcomWDogDxe/QcomWDogDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/TLMMDxe/TLMMDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/SPMIDxe/SPMIDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ResetRuntimeDxe/ResetRuntimeDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PmicDxe/PmicDxeLa.inf - INF Platform/EFI_Binaries/Drivers/sm6225/PILDxe/PILDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/FontDxe/FontDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/AdcDxe/AdcDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbPwrCtrlDxe/UsbPwrCtrlDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/QcomChargerDxe/QcomChargerDxeLA.inf - INF Platform/EFI_Binaries/Drivers/sm6225/ChargerExDxe/ChargerExDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbfnDwc3Dxe/UsbfnDwc3Dxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbMsdDxe/UsbMsdDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbDeviceDxe/UsbDeviceDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/UsbConfigDxe/UsbConfigDxe.inf - INF Platform/EFI_Binaries/Drivers/Devices/fog/ButtonsDxe/ButtonsDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/TsensDxe/TsensDxe.inf - - INF Silicon/Qualcomm/QcomPkg/Drivers/SimpleFbDxe/SimpleFbDxe.inf - INF Platform/EFI_Binaries/Drivers/sm6225/GpiDxe/GpiDxe.inf - - INF Platform/EFI_Binaries/Drivers/sm6225/DDRInfoDxe/DDRInfoDxe.inf diff --git a/Platform/Qualcomm/sm6225/sm6225.dsc b/Platform/Qualcomm/sm6225/sm6225.dsc index cd7e4c0035..e62fe128a4 100644 --- a/Platform/Qualcomm/sm6225/sm6225.dsc +++ b/Platform/Qualcomm/sm6225/sm6225.dsc @@ -28,10 +28,13 @@ gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x5FF8C000 # CPU Vectors gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|19200000 - gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|17 - gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|18 - gArmTokenSpaceGuid.PcdGicDistributorBase|0x0F200000 - gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0F300000 + gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|18 + gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|20 + gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|30 + gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|26 + gArmTokenSpaceGuid.PcdGicDistributorBase|0xf200000 + gArmTokenSpaceGuid.PcdGicRedistributorsBase|0xf300000 + gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xf200000 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemRevision|0x00006225 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x5FF90000 # UEFI Stack @@ -42,8 +45,6 @@ gQcomTokenSpaceGuid.PcdUefiMemPoolSize|0x0E000000 # UefiMemorySize, DXE heap size gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0x5C000000 - gQcomTokenSpaceGuid.PcdDebugUartPortBase|0xa90000 - gArmPlatformTokenSpaceGuid.PcdCoreCount|8 gArmPlatformTokenSpaceGuid.PcdClusterCount|2 @@ -53,9 +54,7 @@ gSimpleInitTokenSpaceGuid.PcdDeviceTreeStore|0x53F00000 gSimpleInitTokenSpaceGuid.PcdLoggerdUseConsole|FALSE - [LibraryClasses.common] - # Ported from SurfaceDuoPkg AslUpdateLib|Silicon/Qualcomm/QcomPkg/Library/DxeAslUpdateLib/DxeAslUpdateLib.inf @@ -63,4 +62,6 @@ PlatformPeiLib|Silicon/Qualcomm/sm6225/Library/PlatformPeiLib/PlatformPeiLib.inf PlatformPrePiLib|Silicon/Qualcomm/sm6225/Library/PlatformPrePiLib/PlatformPrePiLib.inf MsPlatformDevicesLib|Silicon/Qualcomm/sm6225/Library/MsPlatformDevicesLib/MsPlatformDevicesLib.inf - SOCSmbiosInfoLib|Silicon/Qualcomm/sm6225/Library/SOCSmbiosInfoLib/SOCSmbiosInfoLib.inf \ No newline at end of file + SOCSmbiosInfoLib|Silicon/Qualcomm/sm6225/Library/SOCSmbiosInfoLib/SOCSmbiosInfoLib.inf + +[Components.common] diff --git a/Platform/Qualcomm/sm6225/sm6225.fdf b/Platform/Qualcomm/sm6225/sm6225.fdf index 2b50067cb4..7a34131442 100644 --- a/Platform/Qualcomm/sm6225/sm6225.fdf +++ b/Platform/Qualcomm/sm6225/sm6225.fdf @@ -131,6 +131,9 @@ READ_LOCK_STATUS = TRUE # BSP drivers !include Platform/Qualcomm/sm6225/dxe.fdf.inc + # INF Silicon/Qualcomm/sdm845/Drivers/sdm845Dxe/sdm845Dxe.inf // not sdm845 + INF Silicon/Qualcomm/QcomPkg/Drivers/SimpleFbDxe/SimpleFbDxe.inf + # # Helper drivers # @@ -139,14 +142,14 @@ READ_LOCK_STATUS = TRUE # # USB Host Support # - # INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf + INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf INF MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf - # INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf + INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf # # FAT filesystem + GPT/MBR partitioning # - # INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf + INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf INF FatPkg/EnhancedFatDxe/Fat.inf INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf @@ -219,8 +222,8 @@ READ_LOCK_STATUS = TRUE } INF Platform/RenegadePkg/Application/Reboot2PayloadApp/Reboot2PayloadApp.inf - !endif + # Device specific fdf !include $(DEVICE_DXE_FV_COMPONENTS) @@ -250,6 +253,11 @@ READ_LOCK_STATUS = TRUE } } + FILE FREEFORM = DDE58710-41CD-4306-DBFB-3FA90BB1D2DD { + SECTION UI = "uefiplat.cfg" + SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/uefiplat.cfg + } + !include Silicon/Qualcomm/QcomPkg/QcomCommonFdf.inc diff --git a/Platform/Qualcomm/sm6225/sm6225.fog.dsc b/Platform/Qualcomm/sm6225/sm6225.fog.dsc deleted file mode 100644 index e95a3cf7b8..0000000000 --- a/Platform/Qualcomm/sm6225/sm6225.fog.dsc +++ /dev/null @@ -1,71 +0,0 @@ -## @file -# -# Copyright (c) 2011-2015, ARM Limited. All rights reserved. -# Copyright (c) 2014, Linaro Limited. All rights reserved. -# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved. -# Copyright (c) 2018 - 2019, Bingxing Wang. All rights reserved. -# Copyright (c) 2022, Xilin Wu. All rights reserved. -# -# SPDX-License-Identifier: BSD-2-Clause-Patent -# -## - -################################################################################ -# -# Defines Section - statements that will be processed to create a Makefile. -# -################################################################################ - -[Defines] - SOC_PLATFORM = sm6225 - USE_PHYSICAL_TIMER = TRUE - -!include Silicon/Qualcomm/QcomPkg/QcomCommonDsc.inc - -[PcdsFixedAtBuild.common] - gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000 # Starting address - gArmTokenSpaceGuid.PcdSystemMemorySize|0x100000000 - - gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x5FF8C000 # CPU Vectors - gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|19200000 - gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|1 - gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|2 - gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|3 - gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0 - gArmTokenSpaceGuid.PcdGicDistributorBase|0xf200000 - gArmTokenSpaceGuid.PcdGicRedistributorsBase|0xf300000 - gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xf200000 - - gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemRevision|0x00006225 - gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x5FF90000 # UEFI Stack - gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x00040000 # 256K stack - gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|44 - - gQcomTokenSpaceGuid.PcdUefiMemPoolBase|0x63900000 # DXE Heap base address - gQcomTokenSpaceGuid.PcdUefiMemPoolSize|0x0E000000 # UefiMemorySize, DXE heap size - gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0x5C000000 - - gQcomTokenSpaceGuid.PcdDebugUartPortBase|0xa90000 - - gArmPlatformTokenSpaceGuid.PcdCoreCount|8 - gArmPlatformTokenSpaceGuid.PcdClusterCount|2 - - # - # SimpleInit - # - gSimpleInitTokenSpaceGuid.PcdDeviceTreeStore|0x53F00000 - gSimpleInitTokenSpaceGuid.PcdLoggerdUseConsole|FALSE - - gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000048 - -[LibraryClasses.common] - - # Ported from SurfaceDuoPkg - AslUpdateLib|Silicon/Qualcomm/QcomPkg/Library/DxeAslUpdateLib/DxeAslUpdateLib.inf - SerialPortLib|Silicon/Qualcomm/QcomPkg/Library/FrameBufferSerialPortLib/FrameBufferSerialPortLib.inf - #SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf - PlatformMemoryMapLib|Silicon/Qualcomm/sm6225/Library/PlatformMemoryMapLib/PlatformMemoryMapLib.inf - PlatformPeiLib|Silicon/Qualcomm/sm6225/Library/PlatformPeiLib/PlatformPeiLib.inf - PlatformPrePiLib|Silicon/Qualcomm/sm6225/Library/PlatformPrePiLib/PlatformPrePiLib.inf - MsPlatformDevicesLib|Silicon/Qualcomm/sm6225/Library/MsPlatformDevicesLib/MsPlatformDevicesLib.inf - SOCSmbiosInfoLib|Silicon/Qualcomm/sm6225/Library/SOCSmbiosInfoLib/SOCSmbiosInfoLib.inf diff --git a/Platform/Qualcomm/sm6225/sm6225.fog.fdf b/Platform/Qualcomm/sm6225/sm6225.fog.fdf deleted file mode 100644 index 3639c97f89..0000000000 --- a/Platform/Qualcomm/sm6225/sm6225.fog.fdf +++ /dev/null @@ -1,269 +0,0 @@ -# -# Copyright (c) 2018, Linaro Limited. All rights reserved. -# -# This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# - -################################################################################ -# -# FD Section -# The [FD] Section is made up of the definition statements and a -# description of what goes into the Flash Device Image. Each FD section -# defines one flash "device" image. A flash device image may be one of -# the following: Removable media bootable image (like a boot floppy -# image,) an Option ROM image (that would be "flashed" into an add-in -# card,) a System "Flash" image (that would be burned into a system's -# flash) or an Update ("Capsule") image that will be used to update and -# existing system flash. -# -################################################################################ - -[FD.sm6225_UEFI] -BaseAddress = $(FD_BASE)|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware -Size = $(FD_SIZE)|gArmTokenSpaceGuid.PcdFdSize -ErasePolarity = 1 - -# This one is tricky, it must be: BlockSize * NumBlocks = Size -BlockSize = 0x00001000 -NumBlocks = 0x700 - -################################################################################ -# -# Following are lists of FD Region layout which correspond to the locations of different -# images within the flash device. -# -# Regions must be defined in ascending order and may not overlap. -# -# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by -# the pipe "|" character, followed by the size of the region, also in hex with the leading -# "0x" characters. Like: -# Offset|Size -# PcdOffsetCName|PcdSizeCName -# RegionType -# -################################################################################ - -0x00000000|0x00700000 -gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize -FV = FVMAIN_COMPACT - - -################################################################################ -# -# FV Section -# -# [FV] section is used to define what components or modules are placed within a flash -# device file. This section also defines order the components and modules are positioned -# within the image. The [FV] section consists of define statements, set statements and -# module statements. -# -################################################################################ - -[FV.FvMain] -BlockSize = 0x40 -NumBlocks = 0 # This FV gets compressed so make it just big enough -FvAlignment = 8 # FV alignment and FV attributes setting. -ERASE_POLARITY = 1 -MEMORY_MAPPED = TRUE -STICKY_WRITE = TRUE -LOCK_CAP = TRUE -LOCK_STATUS = TRUE -WRITE_DISABLED_CAP = TRUE -WRITE_ENABLED_CAP = TRUE -WRITE_STATUS = TRUE -WRITE_LOCK_CAP = TRUE -WRITE_LOCK_STATUS = TRUE -READ_DISABLED_CAP = TRUE -READ_ENABLED_CAP = TRUE -READ_STATUS = TRUE -READ_LOCK_CAP = TRUE -READ_LOCK_STATUS = TRUE - -# Apriori -!include Platform/Qualcomm/sm6225/Apriori.fog.fdf.inc - - INF MdeModulePkg/Core/Dxe/DxeMain.inf - - # - # PI DXE Drivers producing Architectural Protocols (EFI Services) - # - INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf - INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf - INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf - INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf - -!if $(SECURE_BOOT_ENABLE) == TRUE -!include ArmPlatformPkg/SecureBootDefaultKeys.fdf.inc - INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf - INF SecurityPkg/EnrollFromDefaultKeysApp/EnrollFromDefaultKeysApp.inf - INF SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf -!endif - - INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf - INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf - INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf - INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf - INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf - INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf - - INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf - - # - # Multiple Console IO support - # - INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf - INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf - INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf - INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf - INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf - - INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf - INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf - - INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf - -# BSP drivers -!include Platform/Qualcomm/sm6225/dxe.fog.fdf.inc - - # - # Helper drivers - # - INF Platform/RenegadePkg/Drivers/SetCPUFreqDxe/SetCPUFreqDxe.inf - - # - # USB Host Support - # - # INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf - INF MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf - # INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf - - # - # FAT filesystem + GPT/MBR partitioning - # - - FILE DRIVER = 6B38F7B4-AD98-40E9-9093-ACA2B5A253C4 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/fog/DiskIoDxe/DiskIoDxe.efi - SECTION UI = "DiskIoDxe" - } - - FILE DRIVER = 1FA1F39E-FEFF-4AAE-BD7B-38A070A3B609 { - SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/fog/PartitionDxe/PartitionDxe.efi - SECTION UI = "PartitionDxe" - } - - INF FatPkg/EnhancedFatDxe/Fat.inf - INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf - INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf - INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf - - INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf - - # - # ACPI Support - # - INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf - INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf - INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf - - # - # FDT support - # - INF EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf - - # - # SMBIOS Support - # - INF Platform/RenegadePkg/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf - INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf - - # - # UEFI applications - # - INF ShellPkg/Application/Shell/Shell.inf -!ifdef $(INCLUDE_TFTP_COMMAND) - INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf -!endif #$(INCLUDE_TFTP_COMMAND) - - INF Platform/EFI_Binaries/Applications/LinuxSimpleMassStorage/LinuxSimpleMassStorage.inf - - # - # Bds - # - INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf - INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf - INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf - INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf - INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf - INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf - INF MdeModulePkg/Application/UiApp/UiApp.inf - INF Platform/RenegadePkg/Drivers/LogoDxe/LogoDxe.inf - - # - # Windows kernel patcher - # - INF Platform/RenegadePkg/Drivers/KernelErrataPatcher/KernelErrataPatcher.inf - - # - # Simple Init GUI - # - INF src/main/SimpleInitMain.inf - - INF src/kernelfdt/KernelFdtDxe.inf - -!if $(AB_SLOTS_SUPPORT) == TRUE - INF GPLDrivers/Drivers/BootSlotDxe/BootSlotDxe.inf - INF GPLDrivers/Application/SwitchSlotsApp/SwitchSlotsApp.inf -!endif - -!if $(ENABLE_LINUX_UTILS) == 1 - FILE FREEFORM = 4b0364cf-1c5b-47aa-9073-d7b5039ce49b { - SECTION RAW = tools/simpleinit.static.uefi.cfg - SECTION UI = "simpleinit.static.uefi.cfg" - } - - INF Platform/RenegadePkg/Application/Reboot2PayloadApp/Reboot2PayloadApp.inf - -!endif -# Device specific fdf -!include $(DEVICE_DXE_FV_COMPONENTS) - -[FV.FVMAIN_COMPACT] -FvAlignment = 8 -ERASE_POLARITY = 1 -MEMORY_MAPPED = TRUE -STICKY_WRITE = TRUE -LOCK_CAP = TRUE -LOCK_STATUS = TRUE -WRITE_DISABLED_CAP = TRUE -WRITE_ENABLED_CAP = TRUE -WRITE_STATUS = TRUE -WRITE_LOCK_CAP = TRUE -WRITE_LOCK_STATUS = TRUE -READ_DISABLED_CAP = TRUE -READ_ENABLED_CAP = TRUE -READ_STATUS = TRUE -READ_LOCK_CAP = TRUE -READ_LOCK_STATUS = TRUE - - INF Silicon/Qualcomm/QcomPkg/PrePi/PrePi.inf - - FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 { - SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { - SECTION FV_IMAGE = FVMAIN - } - } - - FILE FREEFORM = DDE58710-41CD-4306-DBFB-3FA90BB1D2DD { - SECTION UI = "uefiplat.cfg" - SECTION RAW = Platform/Xiaomi/sm6225/RawFiles/fog/uefiplat.cfg - } - -!include Silicon/Qualcomm/QcomPkg/QcomCommonFdf.inc - - diff --git a/Platform/Xiaomi/sm6225/AcpiTables/fog/DSDT.aml b/Platform/Xiaomi/sm6225/AcpiTables/fog/DSDT.aml new file mode 100644 index 0000000000000000000000000000000000000000..55d2101630f479e39b707029d46fbe95fcadca69 GIT binary patch literal 8012 zcmcgxZHya78J<~xt;hD|?6|pnsN_N#ASztfzRSl63C`a2$6mbl#%o`%7{wr^D4{_y z5tLkk_TqdrZ9^K8k~XC!cPF2OD3vO~4V`EXXc^Ru(>zBBVa@60nhqgh(5w2=_$P6y<97836G8r zKl(4)w6aavwCdTIQ8N{^A+lA`wdggtWUE%GMql{Z zjOhrzF=OcVua?i*zxkZ^d&UsfunL+ZTlKufy_j`t-0{~#x>j?_Dpq;ur*QoMF4-(u zPI=C#mmG`fT7jdgQOibcJ3zBhd`qt8jcoJ{xDZ*j@iOe<<+=D&CKe<`gH6k}vHA9kjH`S^|`zs4-uy zn5i&{5GrS8vLzD43~9n&GSRH&3erO4+&&g=?Z=0`<~Q2Y0n^Y`xvAyMM37o=)8{{j zU4R~%Wm8cz<1V+GOhe5RSWA}BG5`8rq%?Twm-l5+bSS9%`ohEq{9 zwj#OF6{jHZpF%(&UusVvVv?4rWm^2FgE+ay z)$IV2x|vW+nAI9^gDI9#O&!KD^1-RXX7z{!R8URG7k}f(_B~_R7EFkM6#o$0aC$8P zZX`lz5P}Ia4EZcfB4|W>fuXhelBP^WlSO~CQ0=vQePgxV++j9fGjb{C?hG5vs5No- z65idLYM}=-?w}>IWL0Za1R&iDz;(DJSWRmmI&1-kN?KThsA++nJ%=GB9f~946J~C< z#v{WdOkyO&O`4kPk=AH$MxNY{m2B^^GoadqErwC=x0-ZDTX%2;Ve*`A7OOLY6?i3; zG&b3UcH-Km$STPm?c{S&m^N{=`{-eyzy@;yJS4!^1^A`_4-4>!0P_MI5uh!=Q2~w# za9n^B0z4|fNdX=c;Bf(-5a5&m-xA=o08a{VMu2Y%a8`hG0z4(acLX>uz|#UeBftd# zo)zG`0z4y3s!%COrlO8uc}Mg%O4MQhvXND5`sG^~5C22NTT9wnl!~H3`Pq5bx(FOz;R)MeuI3+6gYOJw{~9He&3Zy)&2)#qY`rB{D+dHXLuHkR1x zPsmsgWibFq3OkYr2Y@RUWq(Vs0A&)wzc<>)1Jt_DGWzWOkJNWh%Hx+9VGv&c^(krIw?SPS{%NfvM8!`?MVJPTv0s*mNyNg@v} zei(~9?6?ScT6-2cF7B?H21!6BMXt_A{tew8#isZ?U-2xAwGMp#D_=Nx=u2aV4?+w| z52+=^S@rdYfDQ8qXhS>#6e3W7dOuEC8#~NKJ^gzY#!Bg?wg13__a7S5(tC;RXAfmK zO%tYgzT#Qf=jVPN2eK}545wb^V^f|lc^0}oO+Xw9>s3?ev9lTytKZ%_hzF!J5`x@-j$~T7I z0Ovoaz#<436M2K~;Y)A|YrOHMLw-*M9q$mBKJWgU_uho*&LPSXihiQ#br9vhNup8% zBno^Fk|=OLK%&q)C#r}eD(#+r6=y^-={7Qz9w1ZTdyq_l`vEeA-d#+Mdoty_jZBRX zkSXvzNT$I30GUGXoTrpOF6=%JIYMleMKIUV%X1{K=E*w0tmuodHS+4p( zkZd>CDb|h~kZN?(8i~AwE1&C^YVHSxy1Wjil?l&e^}jz^vyM{dS1R?53jj8S>oj~b zMP?;tVqk8CPCK44QEk^7*k^8;NISkEOK|}(3$AaOLJQYCMQwhzdGZsuZTxU~9t1y* zI1hv$uFM1BrzgucKifU|3Enn-xF`>TA4if0!VlNuf$-B4W1F8Hp8SMv8$Vo%2f>dc z!~@}ntMEYh5fUu#uII}{)=bkr9zc-7y?ogaB>;Fy(bTd;hX0mrVCvxV!H@V_C7`!}rJRO`mvoW9*OcwKi;T-4#cm8L&fw$3=3}Qto9wxoMWP z#CjSZVM%)<0Mu{4vkQV>Rj|Wts)>-FvM_8)<8D$s&F-0tblk)o9=lMV(fS&HD&?=Z=ElPvc@ah=JB~)Y8@mZRYUB3*6>-e1>cz1f?8fokU(fva zE&Z_i{iUsk-}%e*Z+@7i5%^)(O!fW_0WQ=#*168tbOpQ*D62$BbPf<0C-sB$VO{D%UdG6q2q0R%!2ia{7k r3qWa@T1Fs00VHMvB82!sBuGpI!~g*Sh!}$cgw}wFGN?moCLj#}yHOee literal 0 HcmV?d00001 diff --git a/Silicon/Qualcomm/sm6225/AcpiTables/GTDT.dsl b/Silicon/Qualcomm/sm6225/AcpiTables/GTDT.dsl new file mode 100644 index 0000000000..6100a05e07 --- /dev/null +++ b/Silicon/Qualcomm/sm6225/AcpiTables/GTDT.dsl @@ -0,0 +1,63 @@ +[000h 0000 4] Signature : "GTDT" [Generic Timer Description Table] +[004h 0004 4] Table Length : 0000009C +[008h 0008 1] Revision : 02 +[009h 0009 1] Checksum : 91 +[00Ah 0010 6] Oem ID : "QCOM " +[010h 0016 8] Oem Table ID : "QCOMEDK2" +[018h 0024 4] Oem Revision : 00006225 +[01Ch 0028 4] Asl Compiler ID : "INTL" +[020h 0032 4] Asl Compiler Revision : 20200925 + +[024h 0036 8] Counter Block Address : FFFFFFFFFFFFFFFF +[02Ch 0044 4] Reserved : 00000000 + +[030h 0048 4] Secure EL1 Interrupt : 00000011 +[034h 0052 4] EL1 Flags (decoded below) : 00000000 + Trigger Mode : 0 + Polarity : 0 + Always On : 0 + +[038h 0056 4] Non-Secure EL1 Interrupt : 00000012 +[03Ch 0060 4] NEL1 Flags (decoded below) : 00000000 + Trigger Mode : 0 + Polarity : 0 + Always On : 0 + +[040h 0064 4] Virtual Timer Interrupt : 00000013 +[044h 0068 4] VT Flags (decoded below) : 00000000 + Trigger Mode : 0 + Polarity : 0 + Always On : 0 + +[048h 0072 4] Non-Secure EL2 Interrupt : 00000010 +[04Ch 0076 4] NEL2 Flags (decoded below) : 00000000 + Trigger Mode : 0 + Polarity : 0 + Always On : 0 +[050h 0080 8] Counter Read Block Address : FFFFFFFFFFFFFFFF + +[058h 0088 4] Platform Timer Count : 00000001 +[05Ch 0092 4] Platform Timer Offset : 00000060 + +[060h 0096 1] Subtable Type : 00 [Generic Timer Block] +[061h 0097 2] Length : 003C +[063h 0099 1] Reserved : 00 +[064h 0100 8] Block Address : 000000000F120000 +[06Ch 0108 4] Timer Count : 00000001 +[070h 0112 4] Timer Offset : 00000014 + +[074h 0116 1] Frame Number : 00 +[075h 0117 3] Reserved : 000000 +[078h 0120 8] Base Address : 000000000F121000 +[080h 0128 8] EL0 Base Address : 000000000F122000 +[088h 0136 4] Timer Interrupt : 00000028 +[08Ch 0140 4] Timer Flags (decoded below) : 00000000 + Trigger Mode : 0 + Polarity : 0 +[090h 0144 4] Virtual Timer Interrupt : 00000027 +[094h 0148 4] Virtual Timer Flags (decoded below) : 00000000 + Trigger Mode : 0 + Polarity : 0 +[098h 0152 4] Common Flags (decoded below) : 00000002 + Secure : 0 + Always On : 1 \ No newline at end of file diff --git a/Silicon/Qualcomm/sm6225/AcpiTables/MADT.aml b/Silicon/Qualcomm/sm6225/AcpiTables/MADT.aml new file mode 100644 index 0000000000000000000000000000000000000000..d027d5c91ee72df80adb3b21941157ba101c6a76 GIT binary patch literal 740 zcmZ<^@N|B{#K6FMC(zm7S3v0C-Xs{_OFhBu!5R8SO#Sl!KED0Pk z+yNjH8G*7e3{ps{i6Ff&05K8h9R?7F$&hLyNG}XPOk@UfL6}?HW3&P}@ z2-67C4>6Gy$O2(M3~41G!2BwHIWI!M0TKQAWW`_%t$8k1n|HUmI6P}P%r?6 OG@k&7X#f=yU;qGjAQ1ro literal 0 HcmV?d00001 diff --git a/Silicon/Qualcomm/sm6225/AcpiTables/MADT.dsl b/Silicon/Qualcomm/sm6225/AcpiTables/MADT.dsl new file mode 100644 index 0000000000..c70f6b92f9 --- /dev/null +++ b/Silicon/Qualcomm/sm6225/AcpiTables/MADT.dsl @@ -0,0 +1,212 @@ +[000h 0000 004h] Signature : "APIC" [Multiple APIC Description Table (MADT)] +[004h 0004 004h] Table Length : 000002EC +[008h 0008 001h] Revision : 05 +[009h 0009 001h] Checksum : 1A +[00Ah 0010 006h] Oem ID : "QCOM " +[010h 0016 008h] Oem Table ID : "QCOMEDK2" +[018h 0024 004h] Oem Revision : 00006225 +[01Ch 0028 004h] Asl Compiler ID : "INTL" +[020h 0032 004h] Asl Compiler Revision : 20230628 + +[024h 0036 004h] Local Apic Address : 00000000 +[028h 0040 004h] Flags (decoded below) : 00000000 + PC-AT Compatibility : 0 + +[02Ch 0044 001h] Subtable Type : 0B [Generic Interrupt Controller] +[02Dh 0045 001h] Length : 50 +[02Eh 0046 002h] Reserved : 0000 +[030h 0048 004h] CPU Interface Number : 00000000 +[034h 0052 004h] Processor UID : 00000000 +[038h 0056 004h] Flags (decoded below) : 00000001 + Processor Enabled : 0 + Performance Interrupt Trigger Mode : 0 + Virtual GIC Interrupt Trigger Mode : 0 +[03Ch 0060 004h] Parking Protocol Version : 00000000 +[040h 0064 004h] Performance Interrupt : 00000016 +[044h 0068 008h] Parked Address : 0000000000000000 +[04Ch 0076 008h] Base Address : 0000000000000000 +[054h 0084 008h] Virtual GIC Base Address : 0000000000000000 +[05Ch 0092 008h] Hypervisor GIC Base Address : 0000000000000000 +[064h 0100 004h] Virtual GIC Interrupt : 00000018 +[068h 0104 008h] Redistributor Base Address : 0000000000000000 +[070h 0112 008h] ARM MPIDR : 0000000000000000 +[078h 0120 001h] Efficiency Class : 00 +[079h 0121 001h] Reserved : 00 +[07Ah 0122 002h] SPE Overflow Interrupt : 0000 +[07Ch 0124 002h] TRBE Interrupt : 500B + +[07Eh 0126 001h] Subtable Type : 0B [Generic Interrupt Controller] +[07Fh 0127 001h] Length : 50 +[080h 0128 002h] Reserved : 0000 +[082h 0130 004h] CPU Interface Number : 00000001 +[086h 0134 004h] Processor UID : 00000001 +[08Ah 0138 004h] Flags (decoded below) : 00000001 + Processor Enabled : 1 + Performance Interrupt Trigger Mode : 0 + Virtual GIC Interrupt Trigger Mode : 0 +[08Eh 0142 004h] Parking Protocol Version : 00000000 +[092h 0146 004h] Performance Interrupt : 00000016 +[096h 0150 008h] Parked Address : 0000000000000000 +[09Eh 0158 008h] Base Address : 0000000000000000 +[0A6h 0166 008h] Virtual GIC Base Address : 0000000000000000 +[0AEh 0174 008h] Hypervisor GIC Base Address : 0000000000000000 +[0B6h 0182 004h] Virtual GIC Interrupt : 00000018 +[0BAh 0186 008h] Redistributor Base Address : 0000000000000000 +[0C2h 0194 008h] ARM MPIDR : 0000000000000001 +[0CAh 0202 001h] Efficiency Class : 00 +[0CBh 0203 001h] Reserved : 00 +[0CCh 0204 002h] SPE Overflow Interrupt : 0000 +[0CEh 0206 002h] TRBE Interrupt : 500B + +[0D0h 0208 001h] Subtable Type : 0B [Generic Interrupt Controller] +[0D1h 0209 001h] Length : 50 +[0D2h 0210 002h] Reserved : 0000 +[0D4h 0212 004h] CPU Interface Number : 00000002 +[0D8h 0216 004h] Processor UID : 00000002 +[0DCh 0220 004h] Flags (decoded below) : 00000001 + Processor Enabled : 1 + Performance Interrupt Trigger Mode : 0 + Virtual GIC Interrupt Trigger Mode : 0 +[0E0h 0224 004h] Parking Protocol Version : 00000000 +[0E4h 0228 004h] Performance Interrupt : 00000016 +[0E8h 0232 008h] Parked Address : 0000000000000000 +[0F0h 0240 008h] Base Address : 0000000000000000 +[0F8h 0248 008h] Virtual GIC Base Address : 0000000000000000 +[100h 0256 008h] Hypervisor GIC Base Address : 0000000000000000 +[108h 0264 004h] Virtual GIC Interrupt : 00000018 +[10Ch 0268 008h] Redistributor Base Address : 0000000000000000 +[114h 0276 008h] ARM MPIDR : 0000000000000002 +[11Ch 0284 001h] Efficiency Class : 00 +[11Dh 0285 001h] Reserved : 00 +[11Eh 0286 002h] SPE Overflow Interrupt : 0000 +[120h 0288 002h] TRBE Interrupt : 500B + +[122h 0290 001h] Subtable Type : 0B [Generic Interrupt Controller] +[123h 0291 001h] Length : 50 +[124h 0292 002h] Reserved : 0000 +[126h 0294 004h] CPU Interface Number : 00000003 +[12Ah 0298 004h] Processor UID : 00000003 +[12Eh 0302 004h] Flags (decoded below) : 00000001 + Processor Enabled : 1 + Performance Interrupt Trigger Mode : 0 + Virtual GIC Interrupt Trigger Mode : 0 +[132h 0306 004h] Parking Protocol Version : 00000000 +[136h 0310 004h] Performance Interrupt : 00000016 +[13Ah 0314 008h] Parked Address : 0000000000000000 +[142h 0322 008h] Base Address : 0000000000000000 +[14Ah 0330 008h] Virtual GIC Base Address : 0000000000000000 +[152h 0338 008h] Hypervisor GIC Base Address : 0000000000000000 +[15Ah 0346 004h] Virtual GIC Interrupt : 00000018 +[15Eh 0350 008h] Redistributor Base Address : 0000000000000000 +[166h 0358 008h] ARM MPIDR : 0000000000000003 +[16Eh 0366 001h] Efficiency Class : 00 +[16Fh 0367 001h] Reserved : 00 +[170h 0368 002h] SPE Overflow Interrupt : 0000 +[172h 0370 002h] TRBE Interrupt : 500B + +[174h 0372 001h] Subtable Type : 0B [Generic Interrupt Controller] +[175h 0373 001h] Length : 50 +[176h 0374 002h] Reserved : 0000 +[178h 0376 004h] CPU Interface Number : 00000004 +[17Ch 0380 004h] Processor UID : 00000004 +[180h 0384 004h] Flags (decoded below) : 00000001 + Processor Enabled : 1 + Performance Interrupt Trigger Mode : 0 + Virtual GIC Interrupt Trigger Mode : 0 +[184h 0388 004h] Parking Protocol Version : 00000000 +[188h 0392 004h] Performance Interrupt : 00000016 +[18Ch 0396 008h] Parked Address : 0000000000000000 +[194h 0404 008h] Base Address : 0000000000000000 +[19Ch 0412 008h] Virtual GIC Base Address : 0000000000000000 +[1A4h 0420 008h] Hypervisor GIC Base Address : 0000000000000000 +[1ACh 0428 004h] Virtual GIC Interrupt : 00000018 +[1B0h 0432 008h] Redistributor Base Address : 0000000000000000 +[1B8h 0440 008h] ARM MPIDR : 0000000000000100 +[1C0h 0448 001h] Efficiency Class : 01 +[1C1h 0449 001h] Reserved : 00 +[1C2h 0450 002h] SPE Overflow Interrupt : 0000 +[1C4h 0452 002h] TRBE Interrupt : 500B + +[1C6h 0454 001h] Subtable Type : 0B [Generic Interrupt Controller] +[1C7h 0455 001h] Length : 50 +[1C8h 0456 002h] Reserved : 0000 +[1CAh 0458 004h] CPU Interface Number : 00000005 +[1CEh 0462 004h] Processor UID : 00000005 +[1D2h 0466 004h] Flags (decoded below) : 00000001 + Processor Enabled : 1 + Performance Interrupt Trigger Mode : 0 + Virtual GIC Interrupt Trigger Mode : 0 +[1D6h 0470 004h] Parking Protocol Version : 00000000 +[1DAh 0474 004h] Performance Interrupt : 00000016 +[1DEh 0478 008h] Parked Address : 0000000000000000 +[1E6h 0486 008h] Base Address : 0000000000000000 +[1EEh 0494 008h] Virtual GIC Base Address : 0000000000000000 +[1F6h 0502 008h] Hypervisor GIC Base Address : 0000000000000000 +[1FEh 0510 004h] Virtual GIC Interrupt : 00000018 +[202h 0514 008h] Redistributor Base Address : 0000000000000000 +[20Ah 0522 008h] ARM MPIDR : 0000000000000101 +[212h 0530 001h] Efficiency Class : 01 +[213h 0531 001h] Reserved : 00 +[214h 0532 002h] SPE Overflow Interrupt : 0000 +[216h 0534 002h] TRBE Interrupt : 500B + +[218h 0536 001h] Subtable Type : 0B [Generic Interrupt Controller] +[219h 0537 001h] Length : 50 +[21Ah 0538 002h] Reserved : 0000 +[21Ch 0540 004h] CPU Interface Number : 00000006 +[220h 0544 004h] Processor UID : 00000006 +[224h 0548 004h] Flags (decoded below) : 00000001 + Processor Enabled : 1 + Performance Interrupt Trigger Mode : 0 + Virtual GIC Interrupt Trigger Mode : 0 +[228h 0552 004h] Parking Protocol Version : 00000000 +[22Ch 0556 004h] Performance Interrupt : 00000016 +[230h 0560 008h] Parked Address : 0000000000000000 +[238h 0568 008h] Base Address : 0000000000000000 +[240h 0576 008h] Virtual GIC Base Address : 0000000000000000 +[248h 0584 008h] Hypervisor GIC Base Address : 0000000000000000 +[250h 0592 004h] Virtual GIC Interrupt : 00000018 +[254h 0596 008h] Redistributor Base Address : 0000000000000000 +[25Ch 0604 008h] ARM MPIDR : 0000000000000102 +[264h 0612 001h] Efficiency Class : 01 +[265h 0613 001h] Reserved : 00 +[266h 0614 002h] SPE Overflow Interrupt : 0000 +[268h 0616 002h] TRBE Interrupt : 500B + +[26Ah 0618 001h] Subtable Type : 0B [Generic Interrupt Controller] +[26Bh 0619 001h] Length : 50 +[26Ch 0620 002h] Reserved : 0000 +[26Eh 0622 004h] CPU Interface Number : 00000007 +[272h 0626 004h] Processor UID : 00000007 +[276h 0630 004h] Flags (decoded below) : 00000001 + Processor Enabled : 1 + Performance Interrupt Trigger Mode : 0 + Virtual GIC Interrupt Trigger Mode : 0 +[27Ah 0634 004h] Parking Protocol Version : 00000000 +[27Eh 0638 004h] Performance Interrupt : 00000016 +[282h 0642 008h] Parked Address : 0000000000000000 +[28Ah 0650 008h] Base Address : 0000000000000000 +[292h 0658 008h] Virtual GIC Base Address : 0000000000000000 +[29Ah 0666 008h] Hypervisor GIC Base Address : 0000000000000000 +[2A2h 0674 004h] Virtual GIC Interrupt : 00000018 +[2A6h 0678 008h] Redistributor Base Address : 0000000000000000 +[2AEh 0686 008h] ARM MPIDR : 0000000000000103 +[2B6h 0694 001h] Efficiency Class : 01 +[2B7h 0695 001h] Reserved : 00 +[2B8h 0696 002h] SPE Overflow Interrupt : 0000 +[2BAh 0698 002h] TRBE Interrupt : 500C + +[2BCh 0700 001h] Subtable Type : 0C [Generic Interrupt Distributor] +[2BDh 0701 001h] Length : 18 +[2BEh 0702 002h] Reserved : 0000 +[2C0h 0704 004h] Local GIC Hardware ID : 00000000 +[2C4h 0708 008h] Base Address : 000000000F200000 +[2CCh 0716 004h] Interrupt Base : 00000000 +[2D0h 0720 001h] Version : 03 +[2D1h 0721 003h] Reserved : 000000 + +[2D4h 0724 001h] Subtable Type : 0E [Generic Interrupt Redistributor] +[2D5h 0725 001h] Length : 10 +[2D6h 0726 002h] Reserved : 0000 +[2D8h 0728 008h] Base Address : 000000000F300000 +[2E0h 0736 004h] Length : 00100000 diff --git a/Silicon/Qualcomm/sm6225/Include/Configuration/DeviceConfigurationMap.h b/Silicon/Qualcomm/sm6225/Include/Configuration/DeviceConfigurationMap.h index fa13619b32..edb96ba359 100644 --- a/Silicon/Qualcomm/sm6225/Include/Configuration/DeviceConfigurationMap.h +++ b/Silicon/Qualcomm/sm6225/Include/Configuration/DeviceConfigurationMap.h @@ -10,37 +10,37 @@ typedef struct { static CONFIGURATION_DESCRIPTOR_EX gDeviceConfigurationDescriptorEx[] = { {"NumCpusFuseAddr", 0x5C04C}, - {"EnableShell", 0x1}, - {"SharedIMEMBaseAddr", 0x0C125000}, - {"DloadCookieAddr", 0x003D3000}, - {"DloadCookieValue", 0x10}, - {"NumCpus", 8}, - {"NumActiveCores", 8}, - {"MaxLogFileSize", 0x400000}, - {"UefiMemUseThreshold", 0x77}, - {"USBHS1_Config", 0x0}, - {"UsbFnIoRevNum", 0x00010001}, - {"PwrBtnShutdownFlag", 0x0}, - {"Sdc1GpioConfigOn", 0x1E92}, - {"Sdc2GpioConfigOn", 0x1E92}, - {"Sdc1GpioConfigOff", 0xA00}, - {"Sdc2GpioConfigOff", 0xA00}, - {"EnableSDHCSwitch", 0x1}, - {"EnableUfsIOC", 0}, - {"UfsSmmuConfigForOtherBootDev", 1}, - {"SecurityFlag", 0xC4}, - {"TzAppsRegnAddr", 0x61800000}, - {"TzAppsRegnSize", 0x02100000}, - {"TzAppsRegnSizeLowRAM", 0xB00000}, - {"EnableLogFsSyncInRetail", 0x0}, - {"ShmBridgememSize", 0xA00000}, - {"EnableMultiThreading", 1}, - {"MaxCoreCnt", 8}, - {"EarlyInitCoreCnt", 1}, - {"EnableDisplayThread", 1}, - {"EnableUefiSecAppDebugLogDump", 0x1}, - {"AllowNonPersistentVarsInRetail", 0x1}, - {"MinidumpTALoadingCfg", 0x0}, + {"EnableShell", 0x1}, + {"SharedIMEMBaseAddr", 0x0C125000}, + {"DloadCookieAddr", 0x003D3000}, + {"DloadCookieValue", 0x10}, + {"NumCpus", 8}, + {"NumActiveCores", 8}, + {"MaxLogFileSize", 0x400000}, + {"UefiMemUseThreshold", 0x77}, + {"USBHS1_Config", 0x0}, + {"UsbFnIoRevNum", 0x00010001}, + {"PwrBtnShutdownFlag", 0x0}, + {"Sdc1GpioConfigOn", 0x1E92}, + {"Sdc2GpioConfigOn", 0x1E92}, + {"Sdc1GpioConfigOff", 0xA00}, + {"Sdc2GpioConfigOff", 0xA00}, + {"EnableSDHCSwitch", 0x1}, + {"EnableUfsIOC", 0}, + {"UfsSmmuConfigForOtherBootDev", 1}, + {"SecurityFlag", 0xC4}, + {"TzAppsRegnAddr", 0x61800000}, + {"TzAppsRegnSize", 0x02100000}, + {"TzAppsRegnSizeLowRAM", 0xB00000}, + {"EnableLogFsSyncInRetail", 0x0}, + {"ShmBridgememSize", 0xA00000}, + {"EnableMultiThreading", 1}, + {"MaxCoreCnt", 8}, + {"EarlyInitCoreCnt", 1}, + {"EnableDisplayThread", 1}, + {"EnableUefiSecAppDebugLogDump", 0x1}, + {"AllowNonPersistentVarsInRetail", 0x1}, + {"MinidumpTALoadingCfg", 0x0}, /* Terminator */ {"Terminator", 0xFFFFFFFF}}; diff --git a/Silicon/Qualcomm/sm6225/Library/PlatformMemoryMapLib/PlatformMemoryMapLib.c b/Silicon/Qualcomm/sm6225/Library/PlatformMemoryMapLib/PlatformMemoryMapLib.c index f983fdcf09..f5b5da16d8 100644 --- a/Silicon/Qualcomm/sm6225/Library/PlatformMemoryMapLib/PlatformMemoryMapLib.c +++ b/Silicon/Qualcomm/sm6225/Library/PlatformMemoryMapLib/PlatformMemoryMapLib.c @@ -5,78 +5,96 @@ static ARM_MEMORY_REGION_DESCRIPTOR_EX gDeviceMemoryDescriptorEx[] = { /* EFI_RESOURCE_ EFI_RESOURCE_ATTRIBUTE_ EFI_MEMORY_TYPE ARM_REGION_ATTRIBUTE_ MemLabel(32 Char.), MemBase, MemSize, BuildHob, ResourceType, ResourceAttribute, MemoryType, CacheAttributes --------------------- DDR --------------------- */ - { "Kernel", 0x40000000, 0x05700000, AddMem, SYS_MEM, SYS_MEM_CAP, Reserv, WRITE_BACK_XN}, - { "HYP", 0x45700000, 0x00600000, AddMem, SYS_MEM, SYS_MEM_CAP, Reserv, WRITE_BACK_XN}, - { "Boot Info", 0x45D00000, 0x00020000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, -// { "AOP CMD DB", 0x85F00000, 0x00040000, AddMem, MEM_RES, WRITE_COMBINEABLE, Reserv, UNCACHED_UNBUFFERED_XN}, - { "SMEM", 0x46000000, 0x00200000, AddMem, MEM_RES, WRITE_COMBINEABLE, Reserv, UNCACHED_UNBUFFERED_XN}, - { "RAM Partition", 0x53F00000, 0x02800000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, - { "PIL Reserved", 0x4AB00000, 0x0A400000, AddMem, MEM_RES, WRITE_COMBINEABLE, Reserv, UNCACHED_UNBUFFERED_XN}, - { "DBI Dump", 0x56700000, 0x00A00000, NoHob, MMAP_IO, INITIALIZED, Conv, UNCACHED_UNBUFFERED_XN}, - { "Sched Heap", 0x57100000, 0x00400000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, - { "Display Reserved", 0x5C000000, 0x01000000, AddMem, MEM_RES, SYS_MEM_CAP, Reserv, WRITE_THROUGH_XN}, - { "LAST LOG", 0x5D000000, 0x00400000, AddMem, SYS_MEM, SYS_MEM_CAP, Reserv, WRITE_BACK_XN}, - { "FV Region", 0x5F800000, 0x00200000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, - { "ABOOT FV", 0x5FA00000, 0x00200000, AddMem, SYS_MEM, SYS_MEM_CAP, Reserv, WRITE_BACK}, - { "UEFI FD", 0x5FC00000, 0x00300000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK}, - { "SEC Heap", 0x5FF00000, 0x0008C000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, - { "CPU Vectors", 0x5FF8C000, 0x00001000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK}, - { "MMU PageTables", 0x5FF8D000, 0x00003000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, - { "UEFI Stack", 0x5FF90000, 0x00040000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, - { "Log Buffer", 0x5FFF7000, 0x00008000, AddMem, SYS_MEM, SYS_MEM_CAP, RtData, WRITE_BACK_XN}, - { "Info Blk", 0x5FFFF000, 0x00001000, AddMem, SYS_MEM, SYS_MEM_CAP, RtData, WRITE_BACK_XN}, - /* Memory hole (0x60000000 - 0x638FFFFF) */ - { "DXE Heap", 0x63900000, 0x0E000000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK}, - { "UEFI FD", 0x71900000, 0x02000000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK}, - /* DDR Bank 0 End */ - /* Carveout Region (0x7DD00000 -> 0x80000000, size 0x02300000) */ - /* DDR Bank 1 Start */ - { "RAM Partition", 0x80000000, 0x40000000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, - /* DDR Bank 1 End */ - /* DDR Bank 2 Start */ - { "RAM Partition", 0xC0000000, 0x80000000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"RAM Partition", 0x40000000, 0x05700000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"Hypervisor", 0x45700000, 0x00600000, AddMem, SYS_MEM, SYS_MEM_CAP, Reserv, WRITE_BACK_XN}, + {"RAM Partition", 0x45D00000, 0x00300000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"SMEM", 0x46000000, 0x00200000, AddMem, MEM_RES, WRITE_COMBINEABLE, Reserv, UNCACHED_UNBUFFERED_XN}, + {"RAM Partition", 0x46200000, 0x04900000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"PIL Reserved", 0x4AB00000, 0x0A400000, AddMem, MEM_RES, WRITE_COMBINEABLE, Reserv, UNCACHED_UNBUFFERED_XN}, + {"RAM Partition", 0x54F00000, 0x01800000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"DXE Heap", 0x63900000, 0x0E000000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK}, + {"RAM Partition", 0x67E00000, 0x09B00000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"DBI Dump", 0x56700000, 0x00A00000, NoHob, MMAP_IO, INITIALIZED, Conv, UNCACHED_UNBUFFERED_XN}, + {"Sched Heap", 0x57100000, 0x00400000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, + {"RAM Partition", 0x57500000, 0x04B00000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"Display Reserved", 0x5C000000, 0x01000000, AddMem, MEM_RES, SYS_MEM_CAP, Reserv, WRITE_THROUGH_XN}, + {"LAST LOG", 0x5D000000, 0x00400000, AddMem, SYS_MEM, SYS_MEM_CAP, Reserv, WRITE_BACK_XN}, + {"RAM Partition", 0x5D400000, 0x02400000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"FV Region", 0x5F800000, 0x00200000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, + {"RAM Partition", 0x5FA00000, 0x00200000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"UEFI FD", 0x5FC00000, 0x00300000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK}, + {"SEC Heap", 0x5FF00000, 0x0008C000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, + {"CPU Vectors", 0x5FF8C000, 0x00001000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK}, + {"MMU PageTables", 0x5FF8D000, 0x00003000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, + {"UEFI Stack", 0x5FF90000, 0x00040000, AddMem, SYS_MEM, SYS_MEM_CAP, BsData, WRITE_BACK_XN}, + {"RAM Partition", 0x5FFD0000, 0x00027000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + {"Log Buffer", 0x5FFF7000, 0x00008000, AddMem, SYS_MEM, SYS_MEM_CAP, RtData, WRITE_BACK_XN}, + {"Info Blk", 0x5FFFF000, 0x00001000, AddMem, SYS_MEM, SYS_MEM_CAP, RtData, WRITE_BACK_XN}, + //==================================================3GB RAM Setup================================================== + // This RAM parition starts just after Info Blk and ends with DDR Bank 0 + {"RAM Partition", 0x60000000, 0x1E580000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + // DDR Bank 0 end + + // DDR Bank 1 start + {"RAM Partition", 0x80000000, 0x80000000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + + // As RAM starts at 0x80000000 (2GB) and this is a 3GB device, so it must ends at 5GB, then 0x140000000 = 0xC0000000 + 0x80000000 + {"RAM Partition", 0xC0000000,0x80000000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, +//================================================================================================================= + +//==================================================4GB RAM Setup================================================== + // This RAM parition starts just after Info Blk and ends with DDR Bank 0 + {"RAM Partition", 0x60000000, 0x1DD00000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + // DDR Bank 0 end + + // DDR Bank 1 start + {"RAM Partition", 0x80000000, 0x40000000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, + + // As RAM starts at 0x80000000 (2GB) and this is a 4GB device, so it must ends at 6GB, then 0x180000000 = 0x100000000 + 0x80000000 + {"RAM Partition", 0xC0000000, 0x80000000, AddMem, SYS_MEM, SYS_MEM_CAP, Conv, WRITE_BACK_XN}, +//================================================================================================================= //--------------------- Other --------------------- - { "RPM_SS_MSG_RAM", 0x045F0000, 0x00007000, NoHob, MMAP_IO, INITIALIZED, Conv, NS_DEVICE}, - { "IMEM Base", 0x0C100000, 0x00026000, NoHob, MMAP_IO, INITIALIZED, Conv, NS_DEVICE}, - { "IMEM Cookie Base", 0x0C125000, 0x00001000, NoHob, MMAP_IO, INITIALIZED, Conv, NS_DEVICE}, + {"RPM_SS_MSG_RAM", 0x045F0000, 0x00007000, NoHob, MMAP_IO, INITIALIZED, Conv, NS_DEVICE}, + {"IMEM Base", 0x0C100000, 0x00026000, NoHob, MMAP_IO, INITIALIZED, Conv, NS_DEVICE}, + {"IMEM Cookie Base", 0x0C125000, 0x00001000, AddDev, MMAP_IO, INITIALIZED, Conv, NS_DEVICE}, + // Register regions + {"TCSR_TCSR_REGS", 0x003C0000, 0x00040000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"TLMM_WEST", 0x00500000, 0x00300000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"TLMM_SOUTH", 0x00900000, 0x00300000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"TLMM_EAST", 0x00D00000, 0x00300000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"GCC CLK CTL", 0x01400000, 0x00200000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"PMIC ARB SPMI", 0x01C00000, 0x02800000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"MMCX_CPR3", 0x01648000, 0x00008000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"CRYPTO0 CRYPTO", 0x01B00000, 0x00040000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"SECURITY CONTROL", 0x01B40000, 0x00010000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"PRNG_CFG_PRNG", 0x01B50000, 0x00010000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"SLP_CNTR", 0x04403000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"TSENS0", 0x04410000 ,0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"TSENS0_TM", 0x04411000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"PSHOLD", 0x0440B000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"QUPV3_0_GSI", 0x04A00000, 0x000D0000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"QUPV3_1_GSI", 0x04C00000, 0x000D0000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"UFS UFS REGS", 0x04800000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"PERIPH_SS", 0x04700000, 0x00200000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"USB30_PRIM", 0x04E00000, 0x00200000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"GPU_GMU_CX_BLK", 0x0597D000, 0x0000C000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"GPU_CC", 0x05990000, 0x00009000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"VIDEO_CC", 0x05B00000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"MDSS", 0x05E00000, 0x00200000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"DISP_CC_DISP_CC", 0x05F00000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"SMMU", 0x0C600000, 0x00080000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"APSS_WDT_TMR1", 0x0F017000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"QTIMER", 0x0F020000, 0x00110000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"APCS_ALIAS0_GLB", 0x0F111000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"APSS_GIC500_GICD", 0x0F200000, 0x00010000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"APSS_GIC500_GICR", 0x0F300000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"OSM_RAIL", 0x0F520000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"APSS_ACTPM_WRAP", 0x0F500000, 0x000B0000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"USB2", 0x01610000, 0x00010000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, + {"MCCC_MCCC_MSTR", 0x0447D000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, -//--------------------- Register --------------------- - { "TCSR_TCSR_REGS", 0x003C0000, 0x00040000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "TLMM_WEST", 0x00500000, 0x00300000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "TLMM_SOUTH", 0x00900000, 0x00300000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "TLMM_EAST", 0x00D00000, 0x00300000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "GCC_CLK_CTL", 0x01400000, 0x00200000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "PMIC ARB SPMI", 0x01C00000, 0x02800000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "MMCX_CPR3", 0x01648000, 0x00008000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "CRYPTO0 CRYPTO", 0x01B00000, 0x00040000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "SECURITY CONTROL", 0x01B40000, 0x00010000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "PRNG_CFG_PRNG", 0x01B50000, 0x00010000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "SLP_CNTR", 0x04403000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "TSENS0", 0x04410000 ,0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "TSENS0_TM", 0x04411000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "PSHOLD", 0x0440B000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "QUPV3_0_GSI", 0x04A00000, 0x000D0000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "QUPV3_1_GSI", 0x04C00000, 0x000D0000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "UFS UFS REGS", 0x04800000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "PERIPH_SS", 0x04700000, 0x00200000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "USB30_PRIM", 0x04E00000, 0x00200000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "GPU_GMU_CX_BLK", 0x0597D000, 0x0000C000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "GPU_CC", 0x05990000, 0x00009000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "VIDEO_CC", 0x05B00000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "MDSS", 0x05E00000, 0x00200000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "DISP_CC", 0x05F00000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "SMMU", 0x0C600000, 0x00080000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "APSS_WDT_TMR1", 0x0F017000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "QTIMER", 0x0F020000, 0x00110000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "APCS_ALIAS0_GLB", 0x0F111000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "APSS_GIC500_GICD", 0x0F200000, 0x00010000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "APSS_GIC500_GICR", 0x0F300000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "OSM_RAIL", 0x0F520000, 0x00020000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "APSS_ACTPM_WRAP", 0x0F500000, 0x000B0000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "USB2", 0x01610000, 0x00010000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, - { "MCCC_MCCC_MSTR", 0x0447D000, 0x00001000, AddDev, MMAP_IO, UNCACHEABLE, MmIO, NS_DEVICE}, /* Terminator for MMU */ {"Terminator", 0, 0, 0, 0, 0, 0, 0}};