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.45]) by mx.groups.io with SMTP id smtpd.web10.2049.1588225861494315941 for ; Wed, 29 Apr 2020 22:51:02 -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=ZJple/Fm; spf=pass (domain: oss.nxp.com, ip: 40.107.20.45, mailfrom: pankaj.bansal@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H5glfGgJEO2QYMeP7Jl1aABV+tfS+Bw7aiKyGPLaImR3vP3WhnXfxgRWLu6YZqQaGeVEHXAD1ZC3ivmogcYVa8RxmcR3Cb1hjTGulbHn7eJ9vl7tvmwnpZwdq3dSanjAUGbLGaWUbl6Mox9uWNmk7djHNx/4ZAPk+fOzqXMF77doL4QjqdRfehHqBuubdqz2D8bhtzc9yRoH5lgsuNCCuTvvLh1IJpHJAH+ctnULAqo27f5c+dtB7WHCnH/Oyjo81gVWpOM9Ym3leetSvWgo/vEVN1Y+zwBcEpMpB4MSGjss+EtlFNRfMAAVUXFmbhruilO4kAGgtsYCqCZ5NwhHIA== 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=3CRa+v8LdN47uh0WTSYh60ibmx8SvWP7zJ1SD/F04oQ=; b=XjBVCnb8eXVqqcjVHWGbS15JFGDFYFBpFLoXSG70VEHcEydGk2avz0mT61uOaB23zowjotXeS0eUFrcGpmqs/Y2x+5wo/VBoiJVgYionaHY0No1Lj5BMAM+jUnJWf6qwbTIjuaK4mOrl2+U20OrVpPOXWwacm4yj+w128wbykA1pl4xrpixxN0+YkpKDuBG+o6QprT2BLk8WpLIuNnvEf4qPq1z8N903U/RhGQc4vU1B4NlWTixIZYEruIlyLZBHbpMXTBhda3/ZsB5Nqstj9pq1Y7h/TICPNjVkhW5QIoSHm2QVPM+sMr/vcNd37bG5bXdAViTqflVc9p1Oof0Fuw== 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=3CRa+v8LdN47uh0WTSYh60ibmx8SvWP7zJ1SD/F04oQ=; b=ZJple/FmogHHsgejuYIlpiPkyyimKPoeg+uDMKvBdorACBw3Gv+Q7nEiDgMXgku/wbNn2GYAl4roT8yucrQJJ7UD++EV6/DUioVUY0FMAFOKoyQQFBK5NMybyPtHkFILd6mFhOv/TRfW/jOkkOLyRdped33NIm69IcLv0v4F88I= 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 VI1PR04MB4429.eurprd04.prod.outlook.com (2603:10a6:803:6e::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Thu, 30 Apr 2020 05:50:59 +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.2958.020; Thu, 30 Apr 2020 05:50:59 +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 v4 00/24] Add PEI phase to LS1043ARDB Platform Date: Fri, 1 May 2020 11:19:31 +0530 Message-ID: <20200501054955.13025-1-pankaj.bansal@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR03CA0131.apcprd03.prod.outlook.com (2603:1096:4:91::35) 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 SG2PR03CA0131.apcprd03.prod.outlook.com (2603:1096:4:91::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.14 via Frontend Transport; Thu, 30 Apr 2020 05:50:56 +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: eaf9c424-6fe9-448a-11dd-08d7ecca74ef X-MS-TrafficTypeDiagnostic: VI1PR04MB4429:|VI1PR04MB4429: 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: 0389EDA07F 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)(136003)(376002)(39860400002)(346002)(366004)(396003)(6512007)(26005)(16526019)(5660300002)(6666004)(966005)(478600001)(186003)(2906002)(110136005)(52116002)(6486002)(316002)(8676002)(6506007)(66476007)(19627235002)(86362001)(2616005)(66946007)(44832011)(956004)(66556008)(1076003)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-Sender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2ZGZuLhGkNokgqgtSOCQGExAiwht66eWUN1JmMVSzi+7/5+tdATwtnoiMXMKpqvwj3iM2IEoCMfj5f8gLUFYK8l0ZllhrYm07HBz/MSdc8SW0SSilWkLl9ExDXvUXC8Z2wc2vQf3U90pBiSMVNiYDo6i5OjRD6bqxDD/8UErDavT6mmX55VRaxf813SoxL/PVJLku1+vcVo/BW8WxVmexVJVXBUA2r2ePwdiIE3jaGRp6bTvwKe0RvP72lEzj5GzXPVBF3pPxC8Yzp9REs0lY3Zkj6mUT6j6ZOUDazT/PpunsBmwzN2JltuK5LwJ5VouFmHDuLS2XL6ubl4= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eaf9c424-6fe9-448a-11dd-08d7ecca74ef X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2020 05:50:58.8546 (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: YPr4Ms+5fPLbytunq0GUlwu4FOVnf5ADgUgRsOQAoO6uzpYSG/iru5VAQjFpvLoE1ijRHoDBAm3f1DzJcF2LTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4429 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Pankaj Bansal This patch series adds PEI phase to NXP LS1043ARDB Platform. V3 series can be referred here: https://edk2.groups.io/g/devel/message/57306 I have taken care of the review comments received on V3. Pankaj Bansal (24): Silicon/NXP: Add I2c lib Silicon/NXP: changes to use I2clib in i2cdxe Silicon/NXP/I2cDxe: Fix I2c Timeout with RTC Silicon/Maxim: Fix bug in RtcWrite in Ds1307RtcLib Silicon/Maxim: Add comments in Ds1307RtcLib NXP/LS1043aRdb: Move Soc specific components to soc files Silicon/NXP: remove print information from Soc lib Silicon/NXP: remove not needed components Silicon/NXP: Remove unnecessary PCDs Silicon/NXP: Move dsc file Platform/NXP: rename the ArmPlatformLib as per ArmPlatformPkg 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 | 96 +-- Silicon/NXP/Chassis2/Chassis2.dsc.inc | 10 + Silicon/NXP/LS1043A/LS1043A.dsc.inc | 48 +- {Platform =3D> Silicon}/NXP/NxpQoriqLs.dsc.inc | 73 ++- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 26 +- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 21 +- .../Drivers/PlatformDxe/PlatformDxe.inf | 11 +- .../Library/ArmPlatformLib/ArmPlatformLib.inf | 40 ++ .../Library/PlatformLib/ArmPlatformLib.inf | 55 -- .../Library/ChassisLib/ChassisLib.inf | 33 ++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.inf | 14 +- Silicon/NXP/LS1043A/Library/SocLib/SocLib.inf | 27 + .../NXP/Library/DUartPortLib/DUartPortLib.inf | 5 +- Silicon/NXP/Library/I2cLib/I2cLib.inf | 30 + .../MemoryInitPeiLib.inf | 10 +- Silicon/NXP/Library/SocLib/LS1043aSocLib.inf | 45 -- Silicon/NXP/Chassis2/Include/Chassis.h | 36 ++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.h | 50 +- Silicon/NXP/Include/Chassis2/LsSerDes.h | 62 -- Silicon/NXP/Include/Chassis2/NxpSoc.h | 361 ------------ Silicon/NXP/Include/DramInfo.h | 38 -- Silicon/NXP/Include/Library/ChassisLib.h | 51 ++ Silicon/NXP/Include/Library/I2cLib.h | 100 ++++ 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 | 55 ++ Silicon/NXP/LS1043A/Include/SocSerDes.h | 51 -- Silicon/NXP/Library/DUartPortLib/DUart.h | 8 +- Silicon/NXP/Library/I2cLib/I2cLibInternal.h | 105 ++++ .../MemoryInitPeiLib/MemoryInitPeiLib.h | 38 ++ Silicon/NXP/Library/SocLib/NxpChassis.h | 136 ----- .../Drivers/PlatformDxe/PlatformDxe.c | 15 +- .../ArmPlatformLib.c | 61 +- .../ArmPlatformLibMem.c} | 79 ++- .../Maxim/Library/Ds1307RtcLib/Ds1307RtcLib.c | 23 +- .../Chassis2/Library/ChassisLib/ChassisLib.c | 98 ++++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.c | 533 +---------------- Silicon/NXP/LS1043A/Library/SocLib/SocLib.c | 77 +++ .../NXP/Library/DUartPortLib/DUartPortLib.c | 7 +- Silicon/NXP/Library/I2cLib/I2cLib.c | 545 ++++++++++++++++++ Silicon/NXP/Library/IoAccessLib/IoAccessLib.c | 17 +- .../Library/MemoryInitPei/MemoryInitPeiLib.c | 140 ----- .../MemoryInitPeiLib/MemoryInitPeiLib.c | 278 +++++++++ Silicon/NXP/Library/SocLib/Chassis.c | 495 ---------------- Silicon/NXP/Library/SocLib/Chassis2/Soc.c | 162 ------ Silicon/NXP/Library/SocLib/SerDes.c | 268 --------- Platform/NXP/FVRules.fdf.inc | 59 +- .../AArch64/ArmPlatformHelper.S | 45 ++ .../Library/PlatformLib/NxpQoriqLsHelper.S | 31 - Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc | 91 +++ 52 files changed, 2090 insertions(+), 2931 deletions(-) create mode 100644 Silicon/NXP/Chassis2/Chassis2.dec create mode 100644 Silicon/NXP/Chassis2/Chassis2.dsc.inc rename {Platform =3D> Silicon}/NXP/NxpQoriqLs.dsc.inc (84%) create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/ArmPlatformLib/ArmPl= atformLib.inf delete mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/ArmPlatf= ormLib.inf create mode 100644 Silicon/NXP/Chassis2/Library/ChassisLib/ChassisLib.inf create mode 100644 Silicon/NXP/LS1043A/Library/SocLib/SocLib.inf create mode 100644 Silicon/NXP/Library/I2cLib/I2cLib.inf rename Silicon/NXP/Library/{MemoryInitPei =3D> MemoryInitPeiLib}/MemoryIni= tPeiLib.inf (74%) delete mode 100644 Silicon/NXP/Library/SocLib/LS1043aSocLib.inf create mode 100644 Silicon/NXP/Chassis2/Include/Chassis.h delete mode 100644 Silicon/NXP/Include/Chassis2/LsSerDes.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/I2cLib.h create mode 100644 Silicon/NXP/Include/Library/SocLib.h create mode 100644 Silicon/NXP/Include/Ppi/NxpPlatformGetClock.h create mode 100644 Silicon/NXP/LS1043A/Include/Soc.h delete mode 100644 Silicon/NXP/LS1043A/Include/SocSerDes.h create mode 100644 Silicon/NXP/Library/I2cLib/I2cLibInternal.h create mode 100644 Silicon/NXP/Library/MemoryInitPeiLib/MemoryInitPeiLib.h delete mode 100644 Silicon/NXP/Library/SocLib/NxpChassis.h rename Platform/NXP/LS1043aRdbPkg/Library/{PlatformLib =3D> ArmPlatformLib= }/ArmPlatformLib.c (51%) rename Platform/NXP/LS1043aRdbPkg/Library/{PlatformLib/NxpQoriqLsMem.c =3D= > ArmPlatformLib/ArmPlatformLibMem.c} (54%) create mode 100644 Silicon/NXP/Chassis2/Library/ChassisLib/ChassisLib.c create mode 100644 Silicon/NXP/LS1043A/Library/SocLib/SocLib.c create mode 100644 Silicon/NXP/Library/I2cLib/I2cLib.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 delete mode 100644 Silicon/NXP/Library/SocLib/SerDes.c create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/ArmPlatformLib/AArch= 64/ArmPlatformHelper.S delete mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/NxpQoriq= LsHelper.S create mode 100644 Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc --=20 2.17.1