From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.10848.1633521435880090373 for ; Wed, 06 Oct 2021 04:57:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=PkFrm0rL; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0913d10296=daniel.schaefer@hpe.com) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1967W7rw030321 for ; Wed, 6 Oct 2021 11:57:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=pps0720; bh=Y68fJvzO5I8WQYUwE5J7rdm1Vii0BGT6Tc8PQoyJQbA=; b=PkFrm0rLA1HL6S0j0GBjP2UfXLcDxxMYb0w7A5NS776musLBhFHv/+5rcjIL4aSpO9hk 12EmS3HqSOV5I5oE+kTqDm7APjuwljlMI35ArCxr95X5Raa+jpUx6W1yzsn8fx9dEob7 2UyzR74EVRdl0PRqgg3rAU1prYt2cri9VXl685SS/v9olfSdoYYO8ykA+b2RikPGepyv r+4yvf3y1TA5wMkYUC7Rp8Y/HQ3Q/EmHlQhnuDIw1ErAyPKA1IYhsy8q1X2ICCUv2Szj 9VaFSS9H0MStAThwD1St2D1WrTARs+RXJzLSU8KiAx8o399emoERyRsR+ltxLVKUb5nG nw== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 3bh78raej0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 06 Oct 2021 11:57:14 +0000 Received: from G2W6310.americas.hpqcorp.net (g2w6310.austin.hp.com [16.197.64.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3425.houston.hpe.com (Postfix) with ESMTPS id 20F789D for ; Wed, 6 Oct 2021 11:57:14 +0000 (UTC) Received: from G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) by G2W6310.americas.hpqcorp.net (2002:10c5:4034::10c5:4034) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 6 Oct 2021 11:57:13 +0000 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (15.241.52.13) by G4W9121.americas.hpqcorp.net (16.210.21.16) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Wed, 6 Oct 2021 11:57:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MT0iOPfrZGkGqcTzqru/apvLtrEUZo9jghBGMsRKDPy1Lt9NJjuTaKgtm1y24WedKYjGOLUF3BALtmxn/kTKOtfCdZhu/NDIoDox7y/i1kymEGDAcRiyPrp5RU2Lb7JAQYzam3y0CF32Km3P2+LSyU9rBL65qL3Q07VCgyOxheudu8NRBtqmkSXiEsqV7/z2Mkr95ye0NNGjkOtV5HPD0i7z205dMHl8UolRbRT0m1BUo3b777CjY/PERobPeILEaNJDa4Cw38auD9CS6Ih6xfpAaeUrCW6spvg5oocNxkD7HY3MiuJAEwrTnfqkAjQ+xf0T0HL+A+Qzcj/U/29igQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Y68fJvzO5I8WQYUwE5J7rdm1Vii0BGT6Tc8PQoyJQbA=; b=Qqekzu6ZD0O3iw+IYE6AllTmx0pFNPvEGACiWt0M1U3+8XRhHfTQ54wfXsIcw0b86ZwOO4Bh+WtbIjrGQx//uqWU5DywnptKvzw9Pn2VSTVMcgIhjRdqolb4WhT0UO9U+gRZos9+D8w3KJPe7uvyDgUpdA0x/C1VIxtrwj1onU8HZ1TNwGwgEnaDxpaWGFODCqJNU34rpLWySF6DQAUeQhINLmXIAM4YeuZZVXwxIDwROOfKD+ZFPLxnUJ1eBVqMXRtgkFYpOrRBkLArhIHFMN2xSdRe6oLPzrHuqwgTMPgVIEI3oJMC0v+VCUIW1k7l9qRHNO2uehawrc0n4KoOmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; Received: from DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) by DF4PR8401MB0331.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7606::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Wed, 6 Oct 2021 11:57:11 +0000 Received: from DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM ([fe80::597f:4786:f1d6:8469]) by DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM ([fe80::597f:4786:f1d6:8469%3]) with mapi id 15.20.4566.023; Wed, 6 Oct 2021 11:57:11 +0000 From: "Daniel Schaefer" To: Subject: [edk2-platforms][PATCH v2 00/14] Use generic OpenSBI platform Date: Wed, 6 Oct 2021 19:56:38 +0800 Message-ID: <20211006115652.3635489-1-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.33.0 X-ClientProxiedBy: HK2PR0401CA0022.apcprd04.prod.outlook.com (2603:1096:202:2::32) To DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) MIME-Version: 1.0 Received: from localhost.localdomain (123.193.59.220) by HK2PR0401CA0022.apcprd04.prod.outlook.com (2603:1096:202:2::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.17 via Frontend Transport; Wed, 6 Oct 2021 11:57:10 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c2ab4680-bb56-490c-2390-08d988c06e29 X-MS-TrafficTypeDiagnostic: DF4PR8401MB0331: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: up/UDimx8fW2Mg3rPz67oviFxea94IZjaVi+cmiJi46APp9A0SGGDKL5kXmOUxiUwW3ef6mbAzmxQ1yhBOcWos3GXTMSg4FQi2t3PoGD4tjf0bOwdDXt5V7rih+rbWtx5nW+7Qh9vWcVF46XY73ntlSFxJWMrEwj+fez3P+xdacuiQJuLNhjSwxVVZHkSngsDu4AhTjmcWIJrdQJ9AajPnGjMjNXgmB4m9vG3AjDenQWl34FmhqmR871uEGrYo5IheaRAjP4zCm2OWPGk3xNUsKrHxeomN67Oi22Kx1MWmwPMJ2gBhyOoPCLyCaU0RWdViud9Y9X/ly05DkIdXcjVALJY3BOwqVkq1XeO/4TKAtQwveTiZV/vdAElUeS5A7TkCSocerW/8/ietnsdclAJ+Va5Nyv0OT4uyxNhOqvb9eXa4dONTKMH5q6eZXkZdam5Zf1D9qOJ2Al9d/JynamVLRLbks50dZzaqESHq4nvqDTd3fBr1hY44g/yEzcqnBqkeuk2A/ZNqZqWKxXxMjdNq8ja//RIKXPfmYZpNQabAZV/iY18UDLzWY635RmecUhrFATGwBBL8Anv1FMve/gFvI7R8cG79bsQADqKuKAJMkXjdrFAuia6KhRm2r6+FKogBtmkgIfoxeG7hNnZT+RGLnGgWFR0d6ldkRzQyXQlNKk90zNWckIhd6bKMbCkxSgkY8v2XHf3R29afLkC4FUAPQ0s6ts1NcuO0b/iBSKhuA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(366004)(2616005)(1076003)(8676002)(83380400001)(8936002)(38100700002)(44832011)(38350700002)(30864003)(6916009)(2906002)(36756003)(5660300002)(508600001)(956004)(86362001)(316002)(186003)(66556008)(6486002)(66476007)(52116002)(6506007)(26005)(66946007)(6512007)(6666004)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?fmmVuRzqR+RuwhutORMtmFppMVCQwh+HJGZvX4FfzCEwN0Fd8KIOpCWUpTqy?= =?us-ascii?Q?qPWlxKjeapwHHGWrkseMHRAxl67u1OKw3wNg+lSfQL6Mc0RimDDmReXBaGQg?= =?us-ascii?Q?zib4EFsmrdzcETaHqrYby1Q41AX9sqQQINZswdPcTQfs4XAI6zv0DNPCPIQm?= =?us-ascii?Q?4J7nvVeA0tKKfLPCnabNy1jeJr+mKb6m8ecYbKTGy7tSXtFLO+V2vyB7KAxV?= =?us-ascii?Q?At0fKrqlW2dusmzOJ+f5EcMKg/V/irNDmu9Urp+bZl/zBJ4YlNULZm1rlr4I?= =?us-ascii?Q?3V7GWX5WyUp5pPAc0hEogJ61YMlhw91970aWBHWo31A63OvhA8yZWVcjzOeq?= =?us-ascii?Q?94o7NEKeV06aoBu/iYOGHtOte25WvFfFQusnQhrHgmZM7xLDj0/x0cTLYg1Z?= =?us-ascii?Q?bnbHyAaWBAAguFj9EKsqSpNaBgowpBBFOy02Gi+LBREi+3O2rJqsz0Zlv6DM?= =?us-ascii?Q?IowyV/OxAQ8w8JjzpG7LLRVtOR+ASM8dU1oFkJe4eEKVJoesK2livKSIbkTx?= =?us-ascii?Q?yuAfeeVhVYaqnYC64fsmHha0+1QylBp5EGLArV0YPIgKtfeOZ5Gw8vFR39ga?= =?us-ascii?Q?GVQUW8P5OYHkiL1tEsn6y7q+Ijiwqth1BMevaQq68talnHwakty/7XGGV4tY?= =?us-ascii?Q?sHhPpmhm1PIypWFhR2w3hrrqNvFk+13CQeCbdq2aYdLYJAI0hx7tU6RXsgtp?= =?us-ascii?Q?Pw3H0Qp+s3Koc1d77tab2HNOTT9wN54gsoZOuI8RqJowFYg+ndB+J/5Q8vRG?= =?us-ascii?Q?72YP4x9uUpxY4cRzVNq0dWnMQvEUgo9iS6FzpXWQ5P+IRX9VL96PiphyRfTu?= =?us-ascii?Q?uAgZOW+/5NANHpEOfxhJzFztmzuh8BBANFJv+o14BTiMCIgI9PS4mYIFdqNz?= =?us-ascii?Q?5FZGY/zqITGjuxpcAGrtADKHEhPisjdINUeLvCG7xUoVfyIw1JO/XW2Kbtsw?= =?us-ascii?Q?cLQd/Ve/k7DV5V8Bz/mr3Ltyw13GPJ4mLEnZF2ZB7hXHDYQKBg+w9qWY6bmW?= =?us-ascii?Q?80tpHv4tIovdBEvqNva5C/0Y5EdmFSpRETVjo+Pv4R5il09SZR/SILLBkO80?= =?us-ascii?Q?WUrIOkQ3n/YRVHkhuXZx0jKz+w+oGF9A91XzWDG0D7n/em9en3wuKV/rvFao?= =?us-ascii?Q?zu6dRFNnXW+7L/kj/NMkQSlqiek+DkN2WTlpLNQXDtCLlk7aSXYkZEoZ7jdh?= =?us-ascii?Q?wVT/ILmcgILPF4aTaHClc03yavp9KiEIWJkfVAyq/X6/jv+IvnAENx0miGvb?= =?us-ascii?Q?1x/A1Z6W/rluBVY6/1fUAaDGKHcAy5mJYfOpr2xuqquwAKfcnSCCdHqoFfHM?= =?us-ascii?Q?2P0oN7foNYwI7LLoZPJ4hUt5?= X-MS-Exchange-CrossTenant-Network-Message-Id: c2ab4680-bb56-490c-2390-08d988c06e29 X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2021 11:57:11.4703 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UZPGFsr5lq3XwnqYWHGcHB04DCZuz5tuFOmzHBFg4JRo0WCgQcKlHdftN5aCxfEhCj9VU53C1z910jg3anOuUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0331 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: 5J6PAaJWS2ReWWTnu9EHuNJ2mw3Er0cL X-Proofpoint-ORIG-GUID: 5J6PAaJWS2ReWWTnu9EHuNJ2mw3Er0cL X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-10-06_02,2021-10-06_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 phishscore=0 priorityscore=1501 clxscore=1015 spamscore=0 mlxlogscore=999 impostorscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110060075 Content-Transfer-Encoding: 8bit Content-Type: text/plain OpenSBI can now use a generic platform implementation. The platform specific behavior is derived from the device tree. This patchset updates OpenSBI, adds and builds the device tree and does a lot of deduplication as a result. Because OpenSBI has done quite a few other changes, Abner will send out another patchset to adapt the rest of EDK2 RISC-V code for that. This generic implementation not only works for the current U540 and U500 implementations but also upcoming QEMU virt platform and possibly others like BeagleV or Allwinner Nezha board. Abner Chang (4): Silicon/RISC-V: Introduce FirmwareContext library Silicon/RISC-V: PeiServiceTableLib uses RiscVFirmwareContextLib SiFive/U5SeriesPkg: Use FirmwareContext library RISC-V/PlatformPkg: Add FdtPeim to pass DTB from PEI to DXE via HOB Daniel Schaefer (10): U5SeriesPkg: Deduplicate PlatformPei RISC-V: Split SMBIOS out of PlatformPei RISC-V: Use U5 SMBIOS library only for those platforms U540: Add and build device tree RISC-V/PlatformPkg: Build DeviceTree and use that in SEC RISC-V/PlatformPkg: Fixup FDT from HOB and install into config table U5SeriesPkg: Switch to generic OpenSBI platform RISC-V: Switch to latest OpenSBI RISC-V: Implement ResetSystem RT call Move OpenSbiPlatformLib to RISC-V/PlatformPkg Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf | 2 + Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Platform.c | 224 ++++++++++++++ Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/PlatformOverride.h | 30 ++ Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/SifiveFu540.c | 47 +++ Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibNull/Platform.c | 27 +- Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/CoreInfoHob.c | 37 +++ Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/PeiCoreInfoHobLib.inf | 43 +++ Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.c | 128 ++++++++ Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf | 33 +++ Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec | 4 + Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c | 70 +++++ Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf | 49 ++++ Platform/{SiFive/U5SeriesPkg/FreedomU500VC707Board => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/Fv.c | 0 Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/MemDetect.c | 11 +- Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/Platform.c | 21 +- Platform/{SiFive/U5SeriesPkg/FreedomU500VC707Board => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/Platform.h | 0 Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/PlatformPei.inf | 6 +- Platform/RISC-V/PlatformPkg/Universal/Sec/Riscv64/SecEntry.S | 24 +- Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c | 54 +++- Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf | 2 + Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Library/OpensbiPlatformLib/Platform.c | 29 +- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc | 16 +- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf | 2 +- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc | 6 +- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/MemDetect.c | 74 ----- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/Platform.c | 310 -------------------- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/PlatformPei.inf | 73 ----- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree.fdf.inc | 35 +++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/U540DeviceTree.inf | 25 ++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/fu540-c000.dtsi | 287 ++++++++++++++++++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/gpio.h | 42 +++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/hifive-unleashed-a00.dts | 106 +++++++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/sifive-fu540-prci.h | 18 ++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Library/OpensbiPlatformLib/Platform.c | 216 -------------- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc | 29 +- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf | 10 +- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf.inc | 14 +- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Fv.c | 51 ---- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Platform.h | 86 ------ Platform/SiFive/U5SeriesPkg/Include/SiFiveU5MCCoreplex.h | 33 +-- Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/CoreInfoHob.c | 32 +- Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 4 +- Platform/SiFive/U5SeriesPkg/Library/SerialIoLib/SerialPortLib.c | 81 ++++- Silicon/RISC-V/ProcessorPkg/Include/IndustryStandard/RiscV.h | 3 +- Silicon/RISC-V/ProcessorPkg/Include/IndustryStandard/RiscVOpensbi.h | 1 + Silicon/RISC-V/ProcessorPkg/Include/Library/RiscVCpuLib.h | 14 +- Silicon/RISC-V/ProcessorPkg/Include/Library/RiscVEdk2SbiLib.h | 39 ++- Silicon/RISC-V/ProcessorPkg/Include/Library/RiscVFirmwareContextLib.h | 43 +++ Silicon/RISC-V/ProcessorPkg/Include/OpensbiTypes.h | 1 + Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf | 4 +- Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerOpenSbi.c | 8 +- Silicon/RISC-V/ProcessorPkg/Library/RiscVCpuLib/Cpu.S | 34 ++- Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.c | 44 ++- Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLib.c | 52 ++++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLib.inf | 34 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.c | 48 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf | 33 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextStvecLib/RiscVFirmwareContextStvecLib.c | 48 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextStvecLib/RiscVFirmwareContextStvecLib.inf | 34 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf | 13 +- Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec | 1 + Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dsc | 7 +- Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.c | 116 ++++++++ Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.inf | 53 ++++ 64 files changed, 2055 insertions(+), 966 deletions(-) rename Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf (94%) create mode 100644 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Platform.c create mode 100644 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/PlatformOverride.h create mode 100644 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/SifiveFu540.c create mode 100644 Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/CoreInfoHob.c create mode 100644 Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/PeiCoreInfoHobLib.inf create mode 100644 Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.c create mode 100644 Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf create mode 100644 Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c create mode 100644 Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf rename Platform/{SiFive/U5SeriesPkg/FreedomU500VC707Board => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/Fv.c (100%) rename Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/MemDetect.c (79%) rename Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/Platform.c (89%) rename Platform/{SiFive/U5SeriesPkg/FreedomU500VC707Board => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/Platform.h (100%) rename Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/PlatformPei.inf (87%) delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/MemDetect.c delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/Platform.c delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/PlatformPei.inf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree.fdf.inc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/U540DeviceTree.inf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/fu540-c000.dtsi create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/gpio.h create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/hifive-unleashed-a00.dts create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/sifive-fu540-prci.h delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Library/OpensbiPlatformLib/Platform.c delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Fv.c delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Platform.h create mode 100644 Silicon/RISC-V/ProcessorPkg/Include/Library/RiscVFirmwareContextLib.h create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLib.c create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLib.inf create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.c create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextStvecLib/RiscVFirmwareContextStvecLib.c create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextStvecLib/RiscVFirmwareContextStvecLib.inf create mode 100644 Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.c create mode 100644 Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.inf -- 2.33.0