Great! U500 confirmed working again and cleanup through generic code. Reviewed-by: Daniel Schaefer ________________________________ From: Chang, Abner (HPS SW/FW Technologist) Sent: Monday, November 15, 2021 10:56 To: devel@edk2.groups.io Cc: Chang, Abner (HPS SW/FW Technologist) ; Schaefer, Daniel (ROM Janitor) ; Sunil V L Subject: [edk2-platforms][PATCH 00/14] Revise U500 for the latest RISC-V packages. Incorporate U500 platform with the latest RISC-V ProcessPkg and PlatformPkg. Signed-off-by: Abner Chang Cc: Daniel Schaefer Cc: Sunil V L Abner Chang (14): RiscVPlatformPkg/U500: Pass DTB from PEI to DXE RiscVPlatformPkg/U500: Fix up FDT and install into config table RiscVPlatformPkg/U500: Use FirmwareContext library RiscVPlatformPkg/U500: Use generic platform library RiscVPlatformPkg/U500: Creates opensbi firmware domains RiscVPlatformPkg/U500: Uses RISC-V PeiCoreEntryPoint library RiscVPlatformPkg/U500: Use PlatormSecPpiLib RiscVPlatformPkg/U500: U500 uses mtime CSR library RiscVPlatformPkg/U500: Determines hart number from DTB RiscVPlatformPkg/U500: Use NULL instance of RiscVSpecialPlatformLib RiscVPlatformPkg/U500: Add device tree for U500 platform RiscVPlatformPkg/U500: Add device tree to build Platform/RISC-V: Add debug message to SecMain.c Platform/RISC-V: Initialize variable to zero .../FreedomU500VC707Board/U500.dsc | 18 +- .../FreedomU500VC707Board/U500.fdf | 8 + .../FreedomU500VC707Board/DeviceTree.fdf.inc | 33 +++ .../FreedomU500VC707Board/U500.fdf.inc | 84 ++++-- .../FreedomU500VC707Board/VarStore.fdf.inc | 6 +- .../DeviceTree/U500DeviceTree.inf | 25 ++ .../OpensbiPlatformLib/OpensbiPlatformLib.inf | 54 ---- .../FreedomU500VC707Board/DeviceTree/gpio.h | 45 +++ .../DeviceTree/sifive-fu500-prci.h | 19 ++ .../RiscVSpecialPlatformLib.c | 2 +- .../PlatformPkg/Universal/Sec/SecMain.c | 14 +- .../Library/OpensbiPlatformLib/Platform.c | 206 ------------- .../DeviceTree/fu500-c000.dtsi | 276 ++++++++++++++++++ .../DeviceTree/hifive-unleashed-a00.dts | 108 +++++++ 14 files changed, 611 insertions(+), 287 deletions(-) create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/DeviceTree.fdf.inc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/DeviceTree/U500DeviceTree.inf delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/DeviceTree/gpio.h create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/DeviceTree/sifive-fu500-prci.h delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Library/OpensbiPlatformLib/Platform.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/DeviceTree/fu500-c000.dtsi create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/DeviceTree/hifive-unleashed-a00.dts -- 2.31.1