Use Fdtlib and RealTimeClockDxe from EmbeddedPkg.

Signed-off-by: Abner Chang <abner.ch...@hpe.com>

Cc: Leif Lindholm <leif.lindh...@linaro.org>
Cc: Gilbert Chen <gilbert.c...@hpe.com>
---
 Platform/RiscV/SiFive/U500Pkg/U500.dsc | 5 +++--
 Platform/RiscV/SiFive/U500Pkg/U500.fdf | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Platform/RiscV/SiFive/U500Pkg/U500.dsc 
b/Platform/RiscV/SiFive/U500Pkg/U500.dsc
index edcd951..4355db4 100644
--- a/Platform/RiscV/SiFive/U500Pkg/U500.dsc
+++ b/Platform/RiscV/SiFive/U500Pkg/U500.dsc
@@ -16,7 +16,7 @@
   PLATFORM_NAME                  = U500
   PLATFORM_GUID                  = 0955581C-2A6A-48F7-8690-9D275AE884F8
   PLATFORM_VERSION               = 0.1
-  DSC_SPECIFICATION              = 0x00010005
+  DSC_SPECIFICATION              = 0x0001001c
   OUTPUT_DIRECTORY               = Build/U500Pkg
   SUPPORTED_ARCHITECTURES        = RISCV64
   BUILD_TARGETS                  = DEBUG|RELEASE
@@ -94,6 +94,7 @@
   
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
   SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
   
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
+  FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
 
 # RISC-V Platform Library
   
RealTimeClockLib|Platform/RiscV/Library/RealTimeClockLibNull/RealTimeClockLibNull.inf
@@ -443,6 +444,7 @@
     <LibraryClasses>
       
ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
   }
+  EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
 
   #
   # RISC-V Platform module
@@ -454,7 +456,6 @@
   # RISC-V Core module
   #
   RiscVPkg/Universal/CpuDxe/CpuDxe.inf
-  RiscVPkg/Universal/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
   RiscVPkg/Universal/SmbiosDxe/RiscVSmbiosDxe.inf
 
   MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
diff --git a/Platform/RiscV/SiFive/U500Pkg/U500.fdf 
b/Platform/RiscV/SiFive/U500Pkg/U500.fdf
index 5ca84be..cbf41d0 100644
--- a/Platform/RiscV/SiFive/U500Pkg/U500.fdf
+++ b/Platform/RiscV/SiFive/U500Pkg/U500.fdf
@@ -143,12 +143,12 @@ INF  
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
 INF  UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
 INF  MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
 INF  MdeModulePkg/Universal/Metronome/Metronome.inf
+INF  EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
 
 # RISC-V Platform Drivers
 INF  
Platform/RiscV/SiFive/U500Pkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
 
 # RISC-V Core Drivers
-INF  RiscVPkg/Universal/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
 INF  Platform/RiscV/SiFive/U500Pkg/Universal/Dxe/TimerDxe/TimerDxe.inf
 INF  RiscVPkg/Universal/CpuDxe/CpuDxe.inf
 INF  RiscVPkg/Universal/SmbiosDxe/RiscVSmbiosDxe.inf
-- 
2.7.4


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#47800): https://edk2.groups.io/g/devel/message/47800
Mute This Topic: https://groups.io/mt/34260852/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to