From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.72]) by mx.groups.io with SMTP id smtpd.web12.9826.1586866484170497213 for ; Tue, 14 Apr 2020 05:14:45 -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=Wx4apxx1; spf=pass (domain: oss.nxp.com, ip: 40.107.5.72, mailfrom: pankaj.bansal@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d4LTkm6fF0aZPq18JQrE0+kLcvmeCzU+/ETWoMHS8owbmWKSLcEyCVQ+0HnVUfGHn3cO45z7xHcJZIP8ugDGW+K7oa3q4Rtj5ODz8LWW07vviXckDD6mYP7gfJEs+h4NfuTxzOBCHxDpju+ONdAoBaff8tMwH0ku8QN4DrpSgU6Op8FOsSmS1w2SHJTnOLki7FLT+HqIK2BU7X49gdo2ulMnEVdp8AOchsYuo6apz6dLAL17tpuveEmNyebjj3bkj+Zom4pivJkOOAiAwP63T73Ntb0fE6g0EwZxLnqCcb56PqluqVotDMnMGq0QvTFgQYHF3/bg15ZNYQGP3kkcxA== 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=wXgNU92E8t/pyDOrSZ9i/lcwK7Xi0iVfQKgDvcWwHBI=; b=KKtgFVv5N/JGqDZHb0aiP55kYVmqv9YyhQZ/r61MvoUpSUcwag1JfFUZ4xsGL+ShRinl+9eHN7xNi9gM0iVjNRkDLmx7lxgN65WzcZwL1Tdl0prOzRRTrIOGuMLEq+YAC8/GvbFyAt/X6biE8W0iPRSz3as+NsSyiGIJggHA0rp5wB02NATRCjGq2wJbenS81mh7l1AcEilikZsA9OtWARdfhv/wbMlLqATQnzspo4Hu0hN7WyjkEUitbu6nx3GVUps8YCvhzgC0XjVhuZuTKANzmUIkOQGKzzBxxIvUR0bPGlG9wMuAko4Mj7OVjbItmZMErB/DJgL3RxCKlbeA0A== 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=wXgNU92E8t/pyDOrSZ9i/lcwK7Xi0iVfQKgDvcWwHBI=; b=Wx4apxx1Cp7IPAhPW0RdroJLxs4dfTHLljk6IY+Jq01udvXhchhj7DOZRIJp4McPOCVB7mRe1h6melVIIjGagtvjqTiZjFTtA2p9hkoU/wipp0o3tHdmgo9vKE6gTjSfK1OI9LoMNhSv4JI05uWNZ2MRk1DPrGUEGSqxH4kEK8M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@oss.nxp.com; Received: from VI1PR04MB5933.eurprd04.prod.outlook.com (2603:10a6:803:ec::16) by VI1PR04MB4461.eurprd04.prod.outlook.com (2603:10a6:803:70::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.28; Tue, 14 Apr 2020 12:14:41 +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.2900.028; Tue, 14 Apr 2020 12:14:41 +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 v3 00/24] Add PEI phase to LS1043ARDB Platform Date: Wed, 15 Apr 2020 17:43:18 +0530 Message-ID: <20200415121342.9246-1-pankaj.bansal@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR01CA0092.apcprd01.prod.exchangelabs.com (2603:1096:3:15::18) 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 SG2PR01CA0092.apcprd01.prod.exchangelabs.com (2603:1096:3:15::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15 via Frontend Transport; Tue, 14 Apr 2020 12:14:38 +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: 6167c7bb-bc46-4e2a-ee83-08d7e06d6886 X-MS-TrafficTypeDiagnostic: VI1PR04MB4461:|VI1PR04MB4461: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2000; X-Forefront-PRVS: 0373D94D15 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:(10009020)(4636009)(376002)(366004)(346002)(136003)(39850400004)(396003)(966005)(1076003)(186003)(8936002)(16526019)(86362001)(110136005)(26005)(478600001)(81156014)(8676002)(6512007)(66946007)(316002)(44832011)(66476007)(66556008)(52116002)(5660300002)(6666004)(2906002)(6486002)(6506007)(956004)(19627235002)(2616005);DIR:OUT;SFP:1101; Received-SPF: None (protection.outlook.com: oss.nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: enB2x4dWmF8GbIoeiWTTqoh3T4vh3ZaoouNnNt8hV4hqzPqyx4Z6v8pPTwuKSXqy2Ft3Z7v68BZ7b+NC/POWmWexVMhlyt01F+WPg/UMPu6bP8CGqNL4u2Rq0hKoPK7UhWBYHSOT3eWU3vsORxvMMv2LNDfdi3+8PcJ3f1YTu/mHPEm4HzyOnKPRj+GMwVYrPWlJ/3uWctvl1QFBF3gGyncKn3YGPsICuByXY5xEoJo9gas0Q8ShK9XZqZ54QwXqSJMeVPx24vbV9UOd7eAyX6Cz5EWKtvxF5nME0zwGJj4OczSCjxsDYmgXnEVZKYfjzPswAEav3tHbZI/M3Vc+z0k5BszNDAo8Il2x9xtO87dOVtyoQQZ2Iyxhyc6e6GO4vjbI/gvZ6DLb4f1/3Tgk+6cFl2gWqOwcEUmtQI/B3tdFljXimhugEk6HIFKjIvT9TXVhjRyh6ii7szntWzDzWRh3uipmC7cmZZxIC0kZac2p7iSTGhqJBYrvBcSKiUcH2xr78RxDv0Sduk8ZDq8txw== X-MS-Exchange-AntiSpam-MessageData: 6MLaNYdHJdS9li4NJo8D3qz9V0mNaqLnNjdK/1blgcHPUpzuHsPQ2lgmjdZ4Crston9xAgBIuCOSvMP17XUdah1NNSJB4lyZn5Tfrt+LGvr2sAs+jjX2U8fUnKE/zo+N9jVIeNVN/KDmUsxvU6EAMA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6167c7bb-bc46-4e2a-ee83-08d7e06d6886 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2020 12:14:41.0462 (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: hRAWwBjHKXsO0tvUuD07ZmNNCKsPpbp9sFkz9mWVdzBsIBB3FWHbSSKAcASHtldYBbLcNdpy+TWaRaHhB8LcyQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4461 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Pankaj Bansal This patch series adds PEI phase to NXP LS1043ARDB Platform. V2 series can be referred here: https://edk2.groups.io/g/devel/message/56009 I have taken care of the review comments received on v2 and have removed/added these commits w.r.t V2: Removed in V3 (present in V2): 07/28 Silicon/NXP: Implement SerialUartClockLib 08/28 Silicon/NXP/LS1043A: Use BaseSerialPortLib16550 as SerialPortLib 09/28 Silicon/NXP: Drop DUartPortLib These commits have been dropped for now. the discussion in ongoing for using BaseSerialPortLib16550 @ https://edk2.groups.io/g/devel/message/546= 29 Once that discussion is concluded, i can submit these patches. 21/28 Slicon/NXP: Add PlatformPei Lib as per discussion on https://edk2.groups.io/g/devel/message/56015 i am dropping this commit for now. when i submit the patches to print mor= e info about SOC, i can submit this patch with those. 23/28 NXP/LS1043aRdbPkg/ArmPlatformLib: Use Allocate pool discussion ongoing @ https://edk2.groups.io/g/devel/message/56019 Once that discussion is concluded, i can submit this patch. Added in V3 (not present in V2) 15/24 Silicon: NXP: Remove direct calls to SwapMmio* APIs Added as per comments @ https://edk2.groups.io/g/devel/message/56012 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 | 23 + Silicon/NXP/NxpQoriqLs.dec | 95 +-- Silicon/NXP/Chassis2/Chassis2.dsc.inc | 10 + Silicon/NXP/LS1043A/LS1043A.dsc.inc | 48 +- {Platform =3D> Silicon}/NXP/NxpQoriqLs.dsc.inc | 71 ++- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 26 +- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 21 +- .../Drivers/PlatformDxe/PlatformDxe.inf | 11 +- .../Library/ArmPlatformLib/ArmPlatformLib.inf | 41 ++ .../Library/PlatformLib/ArmPlatformLib.inf | 55 -- .../Library/ChassisLib/ChassisLib.inf | 34 + 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 | 31 + .../MemoryInitPeiLib.inf | 10 +- Silicon/NXP/Library/SocLib/LS1043aSocLib.inf | 45 -- Silicon/NXP/Chassis2/Include/Chassis.h | 34 + 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 | 120 ++++ Silicon/NXP/Include/Library/IoAccessLib.h | 236 +------ Silicon/NXP/Include/Library/SocLib.h | 52 ++ Silicon/NXP/Include/Ppi/NxpPlatformGetClock.h | 53 ++ 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 | 25 + 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 | 97 +++ 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 | 589 ++++++++++++++++++ Silicon/NXP/Library/IoAccessLib/IoAccessLib.c | 17 +- .../Library/MemoryInitPei/MemoryInitPeiLib.c | 140 ----- .../MemoryInitPeiLib/MemoryInitPeiLib.c | 267 ++++++++ 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, 2131 insertions(+), 2929 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 (85%) 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