From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=01695bccdc=abner.chang@hpe.com) Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by groups.io with SMTP; Sun, 22 Sep 2019 21:11:39 -0700 Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8N4Ar6R026983; Mon, 23 Sep 2019 04:11:39 GMT Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0a-002e3701.pphosted.com with ESMTP id 2v5adnnc1y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Sep 2019 04:11:39 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 909ED58; Mon, 23 Sep 2019 04:11:38 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.44]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 2EFCD45; Mon, 23 Sep 2019 04:11:36 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Leif Lindholm , Gilbert Chen Subject: [platforms/devel-riscv-v2 PATCHv3 13/13] U500Pkg: Leverage EmbeddedPkg modules Date: Mon, 23 Sep 2019 11:40:37 +0800 Message-Id: <1569210037-32285-14-git-send-email-abner.chang@hpe.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1569210037-32285-1-git-send-email-abner.chang@hpe.com> References: <1569210037-32285-1-git-send-email-abner.chang@hpe.com> X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-22_09:2019-09-20,2019-09-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 malwarescore=0 priorityscore=1501 spamscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 mlxlogscore=874 suspectscore=13 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909230038 Use Fdtlib and RealTimeClockDxe from EmbeddedPkg. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- 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 @@ 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