From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.52]) by mx.groups.io with SMTP id smtpd.web11.6827.1589434266069094134 for ; Wed, 13 May 2020 22:31:06 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nxp1.onmicrosoft.com header.s=selector2-nxp1-onmicrosoft-com header.b=K/d2BVIB; spf=pass (domain: oss.nxp.com, ip: 40.107.20.52, mailfrom: pankaj.bansal@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qd8TzMC2U7sDvKmU5CGG4xU+p4wNmea+GZqt7+hsEhmlGjBdct5mMCh7K77zZYETGJ7yrFy0jtycNZcWQHe+FeXEkIbpDtyuX0s3ZiPP/AtDu3CZyWCrGdf4Hucn3EiLD2w85/yoKXCE2pkj6ZRHQrEvWRkM/pHhLTLUFm+0HJ4myLvS135H0cvEFKW+WXMGO2NJcEjK6luf2qh7PvVmuxfPGr7s6lxdtXRh36ztQfY/mslbNeIy2XdW88Lhs0DpDnFBTwkQkFrQs4scIgUJu3qTRnZYGWq01A9prQyoxxHPfOFm3Z30/f1YzM6z8i3QXoo688zbTXc2KSlx56c2Mg== 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-SenderADCheck; bh=6t/E9wAVDqISh9qjvybZ3s9KoOjZfs35e5FsrB4aV+I=; b=D9IGiqJuHYw7HGgaDb8cD7gEYuggVYB5aLRIJ1w8+FCKJSbAvla5U1dO+4R44E+zdqkQCG14l7pVuz7z0A3jFYV9WUAwBqECCiIIB8pBNGK8mkYu8nM2wgWtE3Mmn1QZXgUolmsHCRblYb5W0oqimvrA/E7eiLK3uR0hStTMBB1upMaR+1ImbfVOP5jnskD8Wf+rnCO8b54ISqJX3lPFuUu89saOydcHy5FgwCsAqTJ+tMUwZqne6q5/Q0d3gpyNsoYGS7PIDTLj6WjNQhn9oXHOv+sbgfVMWu0hHeU+nPDkQTKPPfHmUhepGdDRv34FNrWWEpZGsMPjPMZsQHULYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6t/E9wAVDqISh9qjvybZ3s9KoOjZfs35e5FsrB4aV+I=; b=K/d2BVIBqus6kuD8M45Cp+wgvA4gY33Jnz4xOfUHTVBQZKgM0tjThk40GeXI6imc1efHI7AaxFp6dniLDsmd49vJktodusPwzRE6Ic7qjBIWxpMDjH1RLa7fACO/REIpNX8/7XUwMqVKGsQxuH52dZqk71qXXmEVw0CsuhD8p7s= Authentication-Results: nuviainc.com; dkim=none (message not signed) header.d=none;nuviainc.com; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5933.eurprd04.prod.outlook.com (2603:10a6:803:ec::16) by VI1PR04MB4381.eurprd04.prod.outlook.com (2603:10a6:803:6d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24; Thu, 14 May 2020 05:31:03 +0000 Received: from VI1PR04MB5933.eurprd04.prod.outlook.com ([fe80::45c4:8846:5327:9513]) by VI1PR04MB5933.eurprd04.prod.outlook.com ([fe80::45c4:8846:5327:9513%7]) with mapi id 15.20.2979.033; Thu, 14 May 2020 05:31:03 +0000 From: "Pankaj Bansal" To: Leif Lindholm , Meenakshi Aggarwal , Michael D Kinney , devel@edk2.groups.io, Varun Sethi , Samer El-Haj-Mahmoud , Jon Nettleton , Ard Biesheuvel Subject: [PATCH edk2-platforms v5 00/24] Add PEI phase to LS1043ARDB Platform Date: Fri, 15 May 2020 10:59:51 +0530 Message-ID: <20200515052952.20914-1-pankaj.bansal@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR03CA0085.apcprd03.prod.outlook.com (2603:1096:4:7c::13) To VI1PR04MB5933.eurprd04.prod.outlook.com (2603:10a6:803:ec::16) Return-Path: pankaj.bansal@oss.nxp.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from uefi-workstation.ap.freescale.net (92.120.0.69) by SG2PR03CA0085.apcprd03.prod.outlook.com (2603:1096:4:7c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.10 via Frontend Transport; Thu, 14 May 2020 05:31:00 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [92.120.0.69] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 32a89d69-422d-47c2-f0ee-08d7f7c7fe0a X-MS-TrafficTypeDiagnostic: VI1PR04MB4381: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 040359335D X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Htx3yZiVZxeDoHt+zN5Gk5BnE/n7VasQjRR/xyYKlZ8qRBL+RqyGtD/PqIy1xFegWjjEHfcVovRJXMWDEkE6s+z7D8mFdWc9GD7bGyJ00neV3SwJvT5xD+CRD9uu1ahgf/b2IyIuEmGnMYFOOSSEeUgEMIqlLlPxgz60tf5qlPvSaInRDPhGCx4zuWW4JLLbTXNvDkmebCnMPZrPbk9z1gRoHYmn4Gr42dZNya35lhHQX4uGJfauDRfkrJVJ1zQD2/Qk9nAA/rg3bgCd3r+pJ2zmyVNR7BC6DuNfiP55QXMSybGu7mpsY18ll5u+XopExulnxkXQ8c/W0jK24AZUanTn3lXY39NMjTSjg5QAKTToQwiBeIYH5MNdE9YNB7LlgtmtMIBTnBEEuy09O/ABzQ0JCi2qwtqdj+8UZA96fghuMY2TCRZEY3UwWDEx/Lsowr4bjGO9Zp7McpCE3FKPc4bRKidQqb49eyALqFDh5Mqe2Eh86Hf3gfxYI5gDkXegv5yyB6va6C3iyfwttYbwgw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5933.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(396003)(136003)(346002)(376002)(39860400002)(6506007)(6666004)(8676002)(52116002)(316002)(44832011)(478600001)(186003)(6512007)(16526019)(19627235002)(5660300002)(66476007)(66556008)(966005)(1076003)(66946007)(8936002)(956004)(110136005)(86362001)(2906002)(2616005)(6486002)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: W8m2t9E7jj4HcHNK4CHMxOZtqNNhA5hJaGAlWusVqhAgDquRxVFLbuPYFxozGeYFEU+oYWXYbdQHmxO/TzsDGtx/l86fAszhcsfkVMVDmw98vbaIZs/WgaokiK6R981xANx3ZkL7Q4FRlLfMTqX9VNDRLdtLwlRBo5ryiPcqmliHx1JGztPy+tLoQC3FxcITJclJyi6dDI9M6fsMKl2PaKolCEDd/rYHMG9mlTYeEv36hr1/5p/4WHPX7uqPmw7wdYAgwVTLFqNrT7BZYmrxdBWD2tBkpU9zrw1qlJFip1jr91yF4g1gTqVEdQXr9PsQAys9VsVKkO3h0IFN64bYw31twR7cVQxzrI9vcpgePvrdia9KdtG8El8BGMjdt4sUc7FCShqe8SzdFZaLzpS5daGImxyrNadxgNG8HY5MKvAXT4pwtVSHo4ZtKMwSQgvuvojVADJuRc1IkVGdQMxGrLvoZ07hR8wTYY2y1MI4myA= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32a89d69-422d-47c2-f0ee-08d7f7c7fe0a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2020 05:31:03.1435 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XU8wFfGJycsR7CEMML0yPkaXUlQk9HkSkLmTRKzdy45xUH8WHbmZ10WWECgtwyIIlwLVbsRixMXq58Wen8Sogw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4381 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Pankaj Bansal This patch series adds PEI phase to NXP LS1043ARDB Platform. V4 series can be referred here: https://edk2.groups.io/g/devel/message/58367 I have taken care of the review comments received on V4. I am only sending the patch in V5 that needed rework. rest of the patches can be taken from V4 Pankaj Bansal (13): Silicon/NXP: Move RAM retrieval from SocLib Platform/NXP/LS1043aRdbPkg: Add Clock retrieval APIs Silicon/NXP: Use Clock retrieval PPI in modules Silicon: NXP: Remove direct calls to SwapMmio* APIs Silicon/NXP: Add Chassis2 Package Silicon/NXP/LS1043A: Use ChassisLib from Chassis2 Pkg Silicon/NXP/LS1043A: Move SocLib to Soc Package NXP/LS1043aRdbPkg/ArmPlatformLib: Remove extern SocInit NXP: LS1043aRdbPkg: Use ArmPlatformHelper.S from ArmPlatformPkg Platform/NXP: Use FV rules from ArmVirtPkg Platform/NXP/LS1043aRdbPkg: Add VarStore Silicon/NXP: move MemoryInitPeiLib as per PEIM structures Platform/NXP/LS1043aRdbPkg: Add PEI Phase Silicon/NXP/Chassis2/Chassis2.dec | 22 ++ Silicon/NXP/NxpQoriqLs.dec | 15 +- Silicon/NXP/Chassis2/Chassis2.dsc.inc | 10 + Silicon/NXP/LS1043A/LS1043A.dsc.inc | 11 +- Silicon/NXP/NxpQoriqLs.dsc.inc | 67 +++-- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 11 - Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 21 +- .../Drivers/PlatformDxe/PlatformDxe.inf | 1 + .../Library/ArmPlatformLib/ArmPlatformLib.inf | 2 + .../Library/ChassisLib/ChassisLib.inf | 33 +++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.inf | 2 +- .../Library/SocLib/SocLib.inf} | 20 +- .../NXP/Library/DUartPortLib/DUartPortLib.inf | 5 +- .../MemoryInitPeiLib.inf | 10 +- Silicon/NXP/Chassis2/Include/Chassis.h | 36 +++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.h | 6 - Silicon/NXP/Include/Chassis2/NxpSoc.h | 53 ---- Silicon/NXP/Include/DramInfo.h | 38 --- Silicon/NXP/Include/Library/ChassisLib.h | 51 ++++ Silicon/NXP/Include/Library/IoAccessLib.h | 236 +-------------- Silicon/NXP/Include/Library/SocLib.h | 52 ++++ Silicon/NXP/Include/Ppi/NxpPlatformGetClock.h | 52 ++++ Silicon/NXP/LS1043A/Include/Soc.h | 11 + Silicon/NXP/Library/DUartPortLib/DUart.h | 8 +- .../MemoryInitPeiLib/MemoryInitPeiLib.h | 40 +++ Silicon/NXP/Library/SocLib/NxpChassis.h | 22 -- .../Library/ArmPlatformLib/ArmPlatformLib.c | 59 +++- .../Chassis2/Library/ChassisLib/ChassisLib.c | 98 +++++++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.c | 3 +- Silicon/NXP/LS1043A/Library/SocLib/SocLib.c | 77 +++++ .../NXP/Library/DUartPortLib/DUartPortLib.c | 7 +- Silicon/NXP/Library/IoAccessLib/IoAccessLib.c | 17 +- .../Library/MemoryInitPei/MemoryInitPeiLib.c | 140 --------- .../MemoryInitPeiLib/MemoryInitPeiLib.c | 276 ++++++++++++++++++ Silicon/NXP/Library/SocLib/Chassis.c | 143 --------- Silicon/NXP/Library/SocLib/Chassis2/Soc.c | 69 ----- Platform/NXP/FVRules.fdf.inc | 59 ++-- .../AArch64/ArmPlatformHelper.S | 60 ++-- Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc | 91 ++++++ 39 files changed, 1087 insertions(+), 847 deletions(-) create mode 100644 Silicon/NXP/Chassis2/Chassis2.dec create mode 100644 Silicon/NXP/Chassis2/Chassis2.dsc.inc create mode 100644 Silicon/NXP/Chassis2/Library/ChassisLib/ChassisLib.inf rename Silicon/NXP/{Library/SocLib/LS1043aSocLib.inf =3D> LS1043A/Library/= SocLib/SocLib.inf} (56%) rename Silicon/NXP/Library/{MemoryInitPei =3D> MemoryInitPeiLib}/MemoryIni= tPeiLib.inf (74%) create mode 100644 Silicon/NXP/Chassis2/Include/Chassis.h delete mode 100644 Silicon/NXP/Include/Chassis2/NxpSoc.h delete mode 100644 Silicon/NXP/Include/DramInfo.h create mode 100644 Silicon/NXP/Include/Library/ChassisLib.h create mode 100644 Silicon/NXP/Include/Library/SocLib.h create mode 100644 Silicon/NXP/Include/Ppi/NxpPlatformGetClock.h create mode 100644 Silicon/NXP/Library/MemoryInitPeiLib/MemoryInitPeiLib.h delete mode 100644 Silicon/NXP/Library/SocLib/NxpChassis.h create mode 100644 Silicon/NXP/Chassis2/Library/ChassisLib/ChassisLib.c create mode 100644 Silicon/NXP/LS1043A/Library/SocLib/SocLib.c delete mode 100644 Silicon/NXP/Library/MemoryInitPei/MemoryInitPeiLib.c create mode 100644 Silicon/NXP/Library/MemoryInitPeiLib/MemoryInitPeiLib.c delete mode 100644 Silicon/NXP/Library/SocLib/Chassis.c delete mode 100644 Silicon/NXP/Library/SocLib/Chassis2/Soc.c create mode 100644 Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc --=20 2.17.1