From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.2394.1572238347399490620 for ; Sun, 27 Oct 2019 21:52:27 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=02044412f4=abner.chang@hpe.com) Received: from pps.filterd (m0134422.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9S4pbZ9005193 for ; Mon, 28 Oct 2019 04:52:27 GMT Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 2vw02aw6xd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 28 Oct 2019 04:52:27 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 7A9555A for ; Mon, 28 Oct 2019 04:52:26 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 83F0348; Mon, 28 Oct 2019 04:52:25 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com Subject: [platform/devel-riscv-v2 PATCHv5 00/18] Initial version of RISC-V Date: Mon, 28 Oct 2019 12:20:15 +0800 Message-Id: <1572236433-15404-1-git-send-email-abner.chang@hpe.com> X-Mailer: git-send-email 2.7.4 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-28_01:2019-10-25,2019-10-28 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 bulkscore=0 mlxlogscore=999 impostorscore=0 adultscore=0 mlxscore=0 phishscore=0 suspectscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910280047 The is the set of patches for belwo two platforms, - SiFive Freedom U500 VC707 FPGA Dev Kit - SiFive Freedom U540 HiFive Unleashed development board Refer to Readme.md under platforms/SiFive/U5SeriesPkg. These patches have to be incorporated with RISC-V-V2 pacth v3 of edk2-staging. Besides of patches, you can also get code from belwo git repository. - edk2-platforms for RISC-V platform, https://github.com/gilbert225/edk2-platforms/tree/devel-riscv-v2-PATCHv5 - edk2-staging for RISC-V, https://github.com/changab/edk2-staging-riscv/tree/RISC-V-V2-v3 Abner Chang (18): Silicon/SiFive: Initial version of SiFive silicon package. SiFive/E51: Initial version of SiFive E51 core library. SiFive/U54: Initial version of SiFive U54 core library. SiFive/U54MC: Initial version of SiFive U54MC Coreplex library. U5SeriesPkg/PeiCoreInfoHobLib: Library to create core information. U5SeriesPkg/TimerDxe: U5 Series Platform Timer DXE driver. U5SeriesPkg/RamFvbServicesRuntimeDxe: Firmware Volume Block service. U5SeriesPkg/RiscVPlatformTimerLib: Platform Timer library U5SeriesPkg/SerialIoLib: Platform Serial Port library FreedomU540HiFiveUnleashedBoard/PlatformPei: Platform PEI for U540 platform. FreedomU540HiFiveUnleashedBoard/OpensbiPlatformLib: OpenSBI platform library for U540 platform. U5SeriesPkg/FreedomU540HiFiveUnleashedBoard: Add SiFive U540 platform. FreedomU500VC707Board/PlatformPei: Platform initialization PEI module. FreedomU500VC707Board/OpensbiPlatformLib: OpenSBI platform interface. U5SeriesPkg/FreedomU500VC707Board: Add SiFive U500 platform. SiFive/U5SeriesPkg Add U5SeriesPkg. edk2-platforms: Update Readme.md for RISC-V platform. edk2-platforms: Update Maintainers file. .../U5SeriesPkg/FreedomU500VC707Board/U500.dec | 25 + .../FreedomU540HiFiveUnleashedBoard/U540.dec | 25 + Platform/SiFive/U5SeriesPkg/U5SeriesPkg.dec | 33 + Silicon/SiFive/SiFive.dec | 39 + .../U5SeriesPkg/FreedomU500VC707Board/U500.dsc | 543 ++++++++++ .../FreedomU540HiFiveUnleashedBoard/U540.dsc | 543 ++++++++++ .../U5SeriesPkg/FreedomU500VC707Board/U500.fdf | 336 ++++++ .../FreedomU540HiFiveUnleashedBoard/U540.fdf | 336 ++++++ .../U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc | 55 + .../FreedomU500VC707Board/VarStore.fdf.inc | 78 ++ .../FreedomU540HiFiveUnleashedBoard/U540.fdf.inc | 54 + .../VarStore.fdf.inc | 78 ++ .../OpensbiPlatformLib/OpensbiPlatformLib.inf | 52 + .../Universal/Pei/PlatformPei/PlatformPei.inf | 73 ++ .../OpensbiPlatformLib/OpensbiPlatformLib.inf | 52 + .../Universal/Pei/PlatformPei/PlatformPei.inf | 72 ++ .../PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 58 + .../RiscVPlatformTimerLib.inf | 36 + .../Library/SerialIoLib/SerialIoLib.inf | 38 + .../FvbServicesRuntimeDxe.inf | 80 ++ .../Universal/Dxe/TimerDxe/TimerDxe.inf | 53 + .../PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 47 + .../PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 48 + .../PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 46 + .../Universal/Pei/PlatformPei/Platform.h | 86 ++ .../Universal/Pei/PlatformPei/Platform.h | 86 ++ .../U5SeriesPkg/Include/SiFiveU5MCCoreplex.h | 51 + Platform/SiFive/U5SeriesPkg/Include/U5Clint.h | 20 + .../Dxe/RamFvbServicesRuntimeDxe/FwBlockService.h | 187 ++++ .../Dxe/RamFvbServicesRuntimeDxe/RamFlash.h | 85 ++ .../U5SeriesPkg/Universal/Dxe/TimerDxe/Timer.h | 174 +++ Silicon/SiFive/Include/Library/SiFiveE51.h | 60 ++ Silicon/SiFive/Include/Library/SiFiveU54.h | 60 ++ .../SiFive/Include/Library/SiFiveU54MCCoreplex.h | 55 + .../Library/OpensbiPlatformLib/Platform.c | 213 ++++ .../Universal/Pei/PlatformPei/Fv.c | 51 + .../Universal/Pei/PlatformPei/MemDetect.c | 74 ++ .../Universal/Pei/PlatformPei/Platform.c | 310 ++++++ .../Library/OpensbiPlatformLib/Platform.c | 213 ++++ .../Universal/Pei/PlatformPei/Fv.c | 51 + .../Universal/Pei/PlatformPei/MemDetect.c | 74 ++ .../Universal/Pei/PlatformPei/Platform.c | 310 ++++++ .../Library/PeiCoreInfoHobLib/CoreInfoHob.c | 195 ++++ .../Library/SerialIoLib/SerialPortLib.c | 253 +++++ .../Dxe/RamFvbServicesRuntimeDxe/FvbInfo.c | 127 +++ .../Dxe/RamFvbServicesRuntimeDxe/FwBlockService.c | 1114 ++++++++++++++++++++ .../RamFvbServicesRuntimeDxe/FwBlockServiceDxe.c | 150 +++ .../Dxe/RamFvbServicesRuntimeDxe/RamFlash.c | 145 +++ .../Dxe/RamFvbServicesRuntimeDxe/RamFlashDxe.c | 20 + .../U5SeriesPkg/Universal/Dxe/TimerDxe/Timer.c | 304 ++++++ .../E51/Library/PeiCoreInfoHobLib/CoreInfoHob.c | 242 +++++ .../U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c | 290 +++++ .../Library/PeiCoreInfoHobLib/CoreInfoHob.c | 184 ++++ Platform/SiFive/U5SeriesPkg/Readme.md | 110 ++ Readme.md | 13 + Maintainers.txt | 16 + .../U5SeriesPkg/FreedomU500VC707Board/U500.uni | 13 + .../FreedomU500VC707Board/U500PkgExtra.uni | 12 + .../FreedomU540HiFiveUnleashedBoard/U540.uni | 13 + .../U540PkgExtra.uni | 12 + .../RiscVPlatformTimerLib/RiscVPlatformTimerLib.S | 48 + .../Library/SerialIoLib/U5SerialPortLib.uni | 16 + Platform/SiFive/U5SeriesPkg/U5SeriesPkg.uni | 13 + Platform/SiFive/U5SeriesPkg/U5SeriesPkgExtra.uni | 12 + .../U5SeriesPkg/Universal/Dxe/TimerDxe/Timer.uni | 14 + .../Universal/Dxe/TimerDxe/TimerExtra.uni | 12 + 66 files changed, 8288 insertions(+) create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dec create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dec create mode 100644 Platform/SiFive/U5SeriesPkg/U5SeriesPkg.dec create mode 100644 Silicon/SiFive/SiFive.dec create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/VarStore.fdf.inc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf.inc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/VarStore.fdf.inc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/PlatformPei.inf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/PlatformPei.inf create mode 100644 Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf create mode 100644 Platform/SiFive/U5SeriesPkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.inf create mode 100644 Platform/SiFive/U5SeriesPkg/Library/SerialIoLib/SerialIoLib.inf create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/TimerDxe/TimerDxe.inf create mode 100644 Silicon/SiFive/E51/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf create mode 100644 Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf create mode 100644 Silicon/SiFive/U54MCCoreplex/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/Platform.h create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Platform.h create mode 100644 Platform/SiFive/U5SeriesPkg/Include/SiFiveU5MCCoreplex.h create mode 100644 Platform/SiFive/U5SeriesPkg/Include/U5Clint.h create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FwBlockService.h create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/RamFlash.h create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/TimerDxe/Timer.h create mode 100644 Silicon/SiFive/Include/Library/SiFiveE51.h create mode 100644 Silicon/SiFive/Include/Library/SiFiveU54.h create mode 100644 Silicon/SiFive/Include/Library/SiFiveU54MCCoreplex.h create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Library/OpensbiPlatformLib/Platform.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/Fv.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/MemDetect.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/Platform.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Library/OpensbiPlatformLib/Platform.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Fv.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/MemDetect.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Platform.c create mode 100644 Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/CoreInfoHob.c create mode 100644 Platform/SiFive/U5SeriesPkg/Library/SerialIoLib/SerialPortLib.c create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FvbInfo.c create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FwBlockService.c create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FwBlockServiceDxe.c create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/RamFlash.c create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/RamFlashDxe.c create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/TimerDxe/Timer.c create mode 100644 Silicon/SiFive/E51/Library/PeiCoreInfoHobLib/CoreInfoHob.c create mode 100644 Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c create mode 100644 Silicon/SiFive/U54MCCoreplex/Library/PeiCoreInfoHobLib/CoreInfoHob.c create mode 100644 Platform/SiFive/U5SeriesPkg/Readme.md create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.uni create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500PkgExtra.uni create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.uni create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540PkgExtra.uni create mode 100644 Platform/SiFive/U5SeriesPkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.S create mode 100644 Platform/SiFive/U5SeriesPkg/Library/SerialIoLib/U5SerialPortLib.uni create mode 100644 Platform/SiFive/U5SeriesPkg/U5SeriesPkg.uni create mode 100644 Platform/SiFive/U5SeriesPkg/U5SeriesPkgExtra.uni create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/TimerDxe/Timer.uni create mode 100644 Platform/SiFive/U5SeriesPkg/Universal/Dxe/TimerDxe/TimerExtra.uni -- 2.7.4