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.web10.5129.1634615353116091061 for ; Mon, 18 Oct 2021 20:49:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=BwQ++4fK; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=092675a635=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 19IMW5jv016982; Tue, 19 Oct 2021 03:49:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=pps0720; bh=lSkCYYCtTURhCn9xnt3xKD32w+j0w6m8saOiXe+4wmk=; b=BwQ++4fKjVfwoMNq1bKL7o3h54wlGXa3Lv3GT6R4Bp8dG7jmXIFJM3BsDCXvfrsMXOAE TiHueRZbFgPg8bM+f3TGnZ54EZ5dOh5HDTvlGnSh0R4ic7aVbvEd/UpuXDbWZFEwVx38 QtKaiuhCRCRWjhGYH1bXwqsAe5kSJvp2fmRBeXlDtXyeF7QYh5iAJXMdhIB2nYcjf9Nk 1w6DhiN05S3wpeRoh82MLDcipWLWjwXXzp6FJMujMoh+va9Dqn6LqOkEQgxpGCRNsnX4 fsX60iXXTN912Oy7gd3mVIYTnxhNOG/gaiSzGew0iqeZraEtHLO/HKXuwV/xtS2Z/yoR jQ== Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 3bsb1x4qjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Oct 2021 03:49:11 +0000 Received: from G9W9209.americas.hpqcorp.net (g9w9209.houston.hpecorp.net [16.220.66.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3427.houston.hpe.com (Postfix) with ESMTPS id E4BFE5C; Tue, 19 Oct 2021 03:49:10 +0000 (UTC) Received: from G1W8106.americas.hpqcorp.net (16.193.72.61) by G9W9209.americas.hpqcorp.net (16.220.66.156) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 19 Oct 2021 03:49:10 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (15.241.52.10) by G1W8106.americas.hpqcorp.net (16.193.72.61) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Tue, 19 Oct 2021 03:49:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mj9MBCCMN/o1gNUBJYZ8VXox0bG7Udr4tPivDc/IiTQLBMs8jjyw2Y6PeZ1rC2yfe//LZ0yicQ3z0SDG/Kr8JwRpXMjJkb2M7QZA67+Jzp0Ektg/iqkVhp1wO8B1/km7ad8UmhMS1LsafLw0Fr1qDZb7Tv//4+xAkAa2uqjsJ5Bww3GuFY6+AfIFnR8X3ULxTWEcdmv9LMQpL6iP4+XgyVAYOI8x8YB9cbsG8poQoMKbpOQEgc66oMOxMQcbZYGbecoDa2hFVxbff5HWXPxKDiNIGiq5evhK4Mz/bQxjEEdVi4I1A4YVjw8cagJzN6xHWU3rl4TzUV4DVHGKrNZIiA== 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=lSkCYYCtTURhCn9xnt3xKD32w+j0w6m8saOiXe+4wmk=; b=Gd3r/ACdxh8/7eybv2E1Sk2niYq/srJITziAskJ36kPQKeWpFLJqshCsT/ZcaCYVyNtGp6F6VlibTB1VcO+ShOiD1oUt3600VoEd9ehi3zAF/qFAPYpjE/RkMhoTggwVGxSYEZk/EHVFyu3si9t15ZJZGFAwr1dlDj0DSPdP8uRdrwDpHbYqvnz6Ugf4uRAdNBPjf/mryTfoVtpdausNwgc1yt8D/9KGVSTQzOEV9fxncYpDdDY8jFy9GlGR1jJXBBelZSlqWKG9ftAcqVnOkrB1JMlZztjscQ1VazMFCwAaUxX0C3eGlWsfT0uSVfX9G8hKle4s+hb7qBUTr9nr9Q== 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 DF4PR8401MB1321.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7613::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Tue, 19 Oct 2021 03:49:08 +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.4608.018; Tue, 19 Oct 2021 03:49:08 +0000 From: "Daniel Schaefer" To: CC: Daniel Schaefer , Abner Chang , Sunil V L Subject: [edk2-platforms] [PATCH v3 00/14] Use generic OpenSBI platform Date: Tue, 19 Oct 2021 11:48:35 +0800 Message-ID: <20211019034849.16847-1-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.31.1 X-ClientProxiedBy: SG2PR03CA0134.apcprd03.prod.outlook.com (2603:1096:4:c8::7) To DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) MIME-Version: 1.0 Received: from zbook-nix.wireless.hpe.com (15.211.146.34) by SG2PR03CA0134.apcprd03.prod.outlook.com (2603:1096:4:c8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.11 via Frontend Transport; Tue, 19 Oct 2021 03:49:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 04c6fc1e-1df3-455a-8d1e-08d992b36785 X-MS-TrafficTypeDiagnostic: DF4PR8401MB1321: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5ntie1QRIGkPLxDF1RTcBRS5GWW3l86Q4dieflW198Wm/h9T/zJ0/8XhYJrPgC2ZdAah/G+JXbLI2ZHGJMzbRiZuFhR6qvBU71obBOHFGdHa1WVOfh0MfLjjGVeEvViOchJTFIr/VGHCMxblt1JuVbAEsRaYoPASFHJv1ww9K9Sei4t7ftsltTxBqNIgaJ39cV884+4sMqrhXJvTJP98lpNbp2/6dLBd7L8hmaLQaT3LnGFbEiu3gPbs9BZw+9ftOwm7PjdvPBtydwoAvP/9nEixV3V2coD58QO2jL3DDsQx3E2NJnysBs9K5MSIH1gudtzwPbMcWhiWGOaa/nWA/pw0fKpqr4x0eAij8aPzkx5l8XRNUGuV19wq/EAjIGIn/f0h9pu5aaVzkAWnc8jzyuTfRkYnrFJMomXLKpXAbPpyyVMdAdfZK3CQg0+MeR46jmtO1yzXUDJkGnXABru2DQoQCR3JIK2IEjLbQNTokG3NqUgCPam+CB5fY6dWziKT8sLbUIhkDcDdRyiQqNzo9E6czunQvBZK1EGWlwbH21uCv3UxbmiY6uCe+YKz/iHY9QPwdKGSX9AiUKtstwi5iX8YByyjZA1AkNJY/DMzceuYcq9FHWsElr8mjdyLgb3EnsV/whkxI/xVJQyJhfVeCcIhyEKGnkH8SrlPKoj4Jo+M2n6SdpkHyrUSHTJnkegWLqTC3rKFsBuRiMopPu0Evuz6i8nJU31fsYmz0eZYDJs= 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)(1076003)(83380400001)(6486002)(36756003)(44832011)(316002)(5660300002)(6916009)(8936002)(6666004)(2906002)(26005)(30864003)(54906003)(38100700002)(38350700002)(2616005)(956004)(86362001)(52116002)(7696005)(8676002)(66476007)(4326008)(508600001)(66556008)(186003)(82960400001)(66946007)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?LJeIKYpr+WUrqWJ1EqHrY8WHI6/hX4/tekC4rlRlayRELQZG1UisMjYhDMhJ?= =?us-ascii?Q?gwhrYBUfDomAfaHL87aLgYv7eB6I/7vu3OwJqXn8edjWiGrBTVNBWUkb+VHZ?= =?us-ascii?Q?Nt9zRbq0ejrcYCNjy5hfi6AAEVK8/lOe97Triwkx/k+bW7D6Kf6M94U6iAlw?= =?us-ascii?Q?xKe9KPA1HyP2/VzFsIQGntuqq4cqjAIJf8kgX/H/T71/cfeoB6JQWMpy0MMa?= =?us-ascii?Q?8YAn8gbQ0CBVbzpQhQOrM4P8Ox07Gh/9y8VE5IH7bITaKFuHBWdmP6gLqlP9?= =?us-ascii?Q?IVoIUQb6F66sMARxH2WcoPzJk3Cek2M2wjDv4HZtADGBN2WVU73MWCNPi+LA?= =?us-ascii?Q?VQmJTOy883sW0Q++E844hgWCH9ZAZsJWUeiwFUGIzyPsrovp1fxIU2YeA6fO?= =?us-ascii?Q?G/p/nAjIXxarUN4LYsRW9HYzYazADRLf1K0n2rv1u0pzO037mRpPpPpRWWXl?= =?us-ascii?Q?UwXdjwOrCbiUoSkbrsSAjZ4YTCVZr3POW18VZvHoZTaGkhk8e0a+0I8Pogkp?= =?us-ascii?Q?lkGk+zG7TJQZVsPj15t8J/I7VvX+7hyjHsx1HqUD63gtkCMWAmyhJ6ry9190?= =?us-ascii?Q?sQQyvvUCzITzzUSIHIcuPVaPQT26y24HO6b3a8eLoIe8Xkja7HJH60kBtVJK?= =?us-ascii?Q?qOqF2/6ijbWF3ZYwsGNMhuVvYX515pI0k8ILzZBX3VNe2BF0pM+UtO4hJenO?= =?us-ascii?Q?OZuCut4EvVWxPuYi4JJ1bCuNPLhz5qqgPjv4oHgSXc6N1jg5wHtOMS733aMe?= =?us-ascii?Q?P9/Z5il6IGzPLeUVv+9DEn0VaXUG061bjpZ6Dn8mBYYhpmKWT6rQX/LnxDK9?= =?us-ascii?Q?/tIgUI0rw7gwTyU54O1wwBWNoI3rABYadeF0VyXntpIrLkToxnsbvH4JOFkY?= =?us-ascii?Q?SNSyV+I64kI3Abytj+Fr2F2mAJcVUw49uKIJg4wI8w8mnuP64XP4gRZNhpte?= =?us-ascii?Q?pql2CjKgL8mSJLZhj1QgvR7zsl9FQD4Ef5ZHJS/fMPvNK1WqjkmTK+t5+5UD?= =?us-ascii?Q?tfzftVNED65Am7IZae8M9HoEsjKlnQOtMibKHQCNrcG1tabTxkImwKeRH6Wb?= =?us-ascii?Q?4Pz2ejypANfyOgweEcETdvIDYl6BfdYjUc24rzTae80/KuL+JdGuVBgD3OkE?= =?us-ascii?Q?5MWgjg04rxq9fe3DgW2JP+WqpmhmFCYC8OCW1V34N4wxeJDAlNDhz0b7k0pb?= =?us-ascii?Q?SgxuOVAo6MNsXOjVYgbGCAmBIRtrDOhH3PEQHFjl30TCnEdKajqW0Lck0xsb?= =?us-ascii?Q?GVjhiEvR1TC6IlyWX43pqXJ7YqVyQXkMKW7AIiVzQR6QzLWtO1GCi/SIRExG?= =?us-ascii?Q?T/0sInve4IQ6oNHR4O7Ty0Vo?= X-MS-Exchange-CrossTenant-Network-Message-Id: 04c6fc1e-1df3-455a-8d1e-08d992b36785 X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2021 03:49:08.7191 (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: srtjm0oDUrYfhbi9GdMT1PBm7dR9JlDgLYV+02Y9qoVa3bvwFaqrDADIP6fWLG6gPLRv9AoJu8rxDFpMTrYRRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB1321 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: AMnHdkDSTt3eZngYOm6aXxSNZmWEJEGM X-Proofpoint-ORIG-GUID: AMnHdkDSTt3eZngYOm6aXxSNZmWEJEGM X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 mlxlogscore=788 suspectscore=0 clxscore=1015 bulkscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110190019 Content-Transfer-Encoding: 8bit Content-Type: text/plain Just fixed up the patches to conform with PatchCheck.py from edk2. Reviewed by Abner, good to merge. Cc: Abner Chang Cc: Sunil V L 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/RISC-V/PlatformPkg/RiscVPlatformPkg.dec | 4 + Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec | 1 + Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc | 16 +- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc | 29 +- Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dsc | 7 +- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf | 2 +- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf | 10 +- Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf | 2 + Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/PeiCoreInfoHobLib.inf | 43 +++ Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf | 33 +++ Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf | 49 ++++ Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/PlatformPei.inf | 6 +- Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf | 2 + Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/PlatformPei.inf | 73 ----- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/U540DeviceTree.inf | 25 ++ Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 4 +- Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf | 4 +- Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLib.inf | 34 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf | 33 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextStvecLib/RiscVFirmwareContextStvecLib.inf | 34 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf | 13 +- Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.inf | 53 ++++ Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/PlatformOverride.h | 30 ++ Platform/{SiFive/U5SeriesPkg/FreedomU500VC707Board => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/Platform.h | 0 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/gpio.h | 42 +++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/sifive-fu540-prci.h | 18 ++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Platform.h | 86 ------ Platform/SiFive/U5SeriesPkg/Include/SiFiveU5MCCoreplex.h | 33 +-- 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 + Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Platform.c | 224 ++++++++++++++ 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/ResetSystemLib/ResetSystemLib.c | 128 ++++++++ Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c | 70 +++++ 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/RISC-V/PlatformPkg/Universal/Sec/SecMain.c | 54 +++- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Library/OpensbiPlatformLib/Platform.c | 29 +- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/MemDetect.c | 74 ----- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/Platform.c | 310 -------------------- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Library/OpensbiPlatformLib/Platform.c | 216 -------------- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Fv.c | 51 ---- Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/CoreInfoHob.c | 32 +- Platform/SiFive/U5SeriesPkg/Library/SerialIoLib/SerialPortLib.c | 81 ++++- Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerOpenSbi.c | 8 +- Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.c | 44 ++- Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLib.c | 52 ++++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.c | 48 +++ Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextStvecLib/RiscVFirmwareContextStvecLib.c | 48 +++ Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.c | 116 ++++++++ Platform/RISC-V/PlatformPkg/Universal/Sec/Riscv64/SecEntry.S | 24 +- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc | 6 +- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree.fdf.inc | 35 +++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/fu540-c000.dtsi | 287 ++++++++++++++++++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/hifive-unleashed-a00.dts | 106 +++++++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf.inc | 14 +- Silicon/RISC-V/ProcessorPkg/Library/RiscVCpuLib/Cpu.S | 34 ++- 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/PeiCoreInfoHobLibNull/PeiCoreInfoHobLib.inf create mode 100644 Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf create mode 100644 Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf rename Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/PlatformPei.inf (87%) delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Universal/Pei/PlatformPei/PlatformPei.inf create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/U540DeviceTree.inf create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLib.inf create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextStvecLib/RiscVFirmwareContextStvecLib.inf create mode 100644 Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.inf create mode 100644 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/PlatformOverride.h rename Platform/{SiFive/U5SeriesPkg/FreedomU500VC707Board => RISC-V/PlatformPkg}/Universal/Pei/PlatformPei/Platform.h (100%) create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/gpio.h create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/sifive-fu540-prci.h 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 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Platform.c 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/ResetSystemLib/ResetSystemLib.c create mode 100644 Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c 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%) 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/FreedomU540HiFiveUnleashedBoard/Library/OpensbiPlatformLib/Platform.c delete mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Fv.c create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLib.c create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.c create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextStvecLib/RiscVFirmwareContextStvecLib.c create mode 100644 Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.c create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree.fdf.inc create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/fu540-c000.dtsi create mode 100644 Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/hifive-unleashed-a00.dts -- 2.31.1