From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.42.52; helo=nam03-by2-obe.outbound.protection.outlook.com; envelope-from=vabhav.sharma@nxp.com; receiver=edk2-devel@lists.01.org Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0052.outbound.protection.outlook.com [104.47.42.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B047122183C83 for ; Fri, 1 Dec 2017 08:07:35 -0800 (PST) Received: from BN3PR03CA0068.namprd03.prod.outlook.com (2a01:111:e400:7a4d::28) by BN1PR0301MB0724.namprd03.prod.outlook.com (2a01:111:e400:4c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Fri, 1 Dec 2017 16:11:49 +0000 Received: from BN1AFFO11FD046.protection.gbl (2a01:111:f400:7c10::181) by BN3PR03CA0068.outlook.office365.com (2a01:111:e400:7a4d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.282.5 via Frontend Transport; Fri, 1 Dec 2017 16:11:49 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD046.mail.protection.outlook.com (10.58.53.61) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.239.4 via Frontend Transport; Fri, 1 Dec 2017 16:11:48 +0000 Received: from uefi-OptiPlex-790.ap.freescale.net ([10.232.132.56]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vB1GBiuh003880; Fri, 1 Dec 2017 09:11:45 -0700 From: Vabhav To: , , , Date: Fri, 1 Dec 2017 09:40:02 +0530 Message-ID: <1512101406-11567-1-git-send-email-vabhav.sharma@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131566183095149449; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(346002)(39860400002)(376002)(2980300002)(1109001)(1110001)(339900001)(174864002)(189002)(199003)(104016004)(356003)(106466001)(8656006)(105606002)(498600001)(305945005)(4326008)(77096006)(48376002)(6666003)(2906002)(68736007)(8936002)(50466002)(50226002)(97736004)(54906003)(189998001)(110136005)(53936002)(33646002)(5660300001)(16586007)(2201001)(51416003)(36756003)(8676002)(85426001)(81166006)(81156014)(86362001)(47776003)(316002)(217873001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0724; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD046; 1:A2Bjd+0M+Yzz6idhjbU3x2Jg8Ne/6Ea+jb9F/2UcT8vWlsizqDUiTCD2xi/jlGKPAEyEv/6/S3G5pkN6GoZXXuJt1B/U1/+HGgsq36LRep+VHqwmxveMtfNLZnB6bV5t MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7ad2ff4-bd48-4064-1891-08d538d63a3b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603286); SRVR:BN1PR0301MB0724; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0724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md52nP9StMtuB2BjvXAYndnea5GsmEGA0fm+Ho5iu+kkJzo4Xq9Zheh8m2qP9kaluugo5+Xw++Vm35yOHCyMRnNjd++59i3uqurlhtRnZiuuZnWTcWpNblPKQxLrcdOWmhLjHFUwss2q42Jirq27fMPZF8mULr0qfyo+GmTMkAIDADF72Rc580Wvyg4ZOphoLmuIRofz4ylci+Si++f4UAsnvsWtRrWGCptOwFFHwuQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3002001)(3231022)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123556025)(20161123561025)(20161123565025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123559100)(20161123563025)(201708071742011); SRVR:BN1PR0301MB0724; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN1PR0301MB0724; X-Forefront-PRVS: 05087F0C24 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0724; 23:5WWDXBvPn3dE6ISYTSONxFDQxuLgpGBbL2j6P12?= =?us-ascii?Q?6rNYhaJ26B43KCX2bfIwu6Iwu7wyN38TaTGdmcWzzDG5zQfMzQFDYGsK4kpl?= =?us-ascii?Q?0AD2e8EU1fNKE5LxX9lWrvtA5h7b41zoQuX/Y9D8NpnwYcSJ3AXLzqlXlbQ6?= =?us-ascii?Q?RPyOe+m0dODuRsKaLuGhRFS7W9fPoVt/gOenVjBKFkte5el64C0ib0Q6mVdS?= =?us-ascii?Q?821phVJYJWBaZfk8kTMnaEkLu2uX88BqrWUzZ7xdeznW3AmjmjVEHXfMH4n4?= =?us-ascii?Q?rpoxGni/HFRYYBAFct0+ElPYFeZrujpsYVFYeyBDtjW3kR30WHcTVFXNAHgp?= =?us-ascii?Q?e9rl3G9D1emlZVjVb7+Gr/qFuW71ACfYxtopxdwkz6OSIKcnkBomib8BmLVN?= =?us-ascii?Q?9bwuCKUI/+7HaLZe+socKkbSg4JAy/qaW4ql6H2bVX0pVbq2OZkMJeIg7iVE?= =?us-ascii?Q?L8vmoz6FPM7/Fxx264/1jwXjaZTvSYsvu50Cd9SU6cINZaOWP92rjOHzcZax?= =?us-ascii?Q?ZMYqFQcsJH1Lypn2IpfO0cV1v87Y33U5Qh/46kSRmeBa8VaiC5JmFj57spPc?= =?us-ascii?Q?dIb8Vgfy7di+ocmIlIszrOoXInY+kvCZGea+KK4s6/FA9PyHuvgZIv6IIIYp?= =?us-ascii?Q?oONNFLKbJP0nRv+qgKi+C5C2cAKial49aO9/ZhLws3dn25JhKvG6uuBex5K4?= =?us-ascii?Q?vucTliOwmjYZef6DniDOKmhcDa4sjtB09/akdv7MtimMIaQ9bqYecWRECkLw?= =?us-ascii?Q?4wFMEsgQnzqS7U18fB3kpm2BRF4zTrwOO12mXfv6X3njvh1i5Rzf2deaQQl0?= =?us-ascii?Q?h1zo0IBdLrxGULajwjl53c85z4dtt+Xac640UQ+4pWcU1N/V1QAkGK8pIQbL?= =?us-ascii?Q?RqudyqCn2oI9Y0V0zXPk99FH/DRflTam347q01ai+Jvw/qPeAISPtiSvOOjL?= =?us-ascii?Q?8L7NEOi8NwTdV/e0bsjB3flWdZnVHrCOSZt6uI6otls7eBGFemFaX7H90pOQ?= =?us-ascii?Q?N8zqGte09pUrVig3T615uWdEsN0aHmc+tnrIF5bwsVrZG4IXl9IYPFjw88to?= =?us-ascii?Q?Xec4Z0vGcUuKB1EZhr5yAW8Oz085AKN8lQw4Jm0SI7lO+Xt/ZZxlpm201+yE?= =?us-ascii?Q?9f8OTO3EJ2HOi6oXb8s2jqjpTZ5drr89UvtknydgMlx9/2jizhB6nAQ=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0724; 6:9AZ+NNHAlUSVippDe73hqnSvAo9El91ShL1gDI9RdmpBZovuRfGwtVxtwOsM0mJdJRuc+kvs0BxzzJ0PrEeTRwX9AAIScxirWpSqDb+kcw6IqYnrKtioryNy1GfRPQDItKfRIvTbs/5SrRW/UUVs997P4Cn8xfTgPSzH2YKkkXe8yFeSvmCCYVqvj35o0dn+ql/s02ZQJMrQ1V8d8WaPC/qUA1hA6DeITi1bRXx6BLRAdNlFolGtKu7g/mEHphC+bHu/ElanaluEapeWtHQdtQNb+vigElft/zVkFL2Jq+l5IMTqzuyULLZPiO+tziI5uJQYgEKidc9yOUel7iOBoitTkwEORZLpdV2C7T0LgRQ=; 5:F5x2V1fhrmKPZhglLqae/I8bv6nLaqLREosZgfnpDAoob6whEDpZjqRfnqrVwj2TUSweXLHdiMcoJRP19yMX/ZMQ1pr1uf0Q6flD8PpQizgwGOYGt1jIbNsheniw/6gyegbCTu5LcfOly2ifxedUXL8eBuMCWOE3hs+s5jf7WOY=; 24:aLo6/m4UCgruweuGOaiEAS2EdNwhXlYpey/YyQjrwnRIT9fhXA1Pnlls+FvRZZAz2TREo039wBgzuUqhqlqmWmuC1QfDBwUgZ7iO/PP3bW8=; 7:DIySgL4dH4dkAqhcjBolsGQpvPvsNWhU4o4gduE8beWFjxvuF2YuLatP3z9ARnV053V4TR7AulHdnbARzowbLK9eHRBMLKxu0+fcn2G7ACeZAgqtfPY7GH44lkzAbPhafzLot4x31Z7KNASi9IWTQdpyLTDIya0sTcOjYSTlUopO6tHnn3ya+JqYEyY14q6EVYhtVT86mE8r3MIf8YkDN3eDQ+1OX1J2Jh2WTCGbx8FwWI5CCTeAJMMTN/Ebfbvj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2017 16:11:48.8753 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e7ad2ff4-bd48-4064-1891-08d538d63a3b X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0724 Subject: [PATCH 0/4] Platform/NXP-Adding NXP NOR IP X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 16:07:36 -0000 Content-Type: text/plain Following patches will add support of NXP NOR IP in edk2-platforms directory 'edk2-platforms/Platform/NXP' Updated Directory structure for added folders in 'edk2-platforms/Platform/NXP' will be: |-- Drivers | |-- NorFlashDxe | | |-- NorFlashBlockIoDxe.c | | |-- NorFlashDxe.c | | |-- NorFlashDxe.inf | | `-- NorFlashFvbDxe.c |-- Include | `-- Library | |-- IfcBase.h | |-- Ifc.h | |-- NorFlash.h | `-- NorFlashLib.h |-- Library | |-- IfcFlashLib | | |-- IfcFlashLib.c | | `-- IfcFlashLib.inf | `-- NorFlashLib | |-- CfiCommand.h | |-- CfiNorFlashLib.c | |-- CfiNorFlashLib.h | |-- IfcNorFlashLib.c | |-- NorFlashLib.c | `-- NorFlashLib.inf |-- LS1043aRdbPkg | |-- Include | | `-- Library | | `-- IfcBoardSpecificLib.h | |-- LS1043aRdbPkg.dsc | |-- LS1043aRdbPkg.fdf | `-- VarStore.fdf.inc |-- NxpQoriqLs.dsc In Platform/NXP/Library: IfcFlashLib and NorFlashLib will be added In Platform/NXP/Drivers: NorFlashDxe driver will be added Platform/NXP/LS1043aRdbPkg will host VarStore.fdf.inc for runtime variable support. Please review and look forward for your support for upstreaming the patches in edk2-platforms. Vabhav (4): Platform/NXP : Add Integrated flash controller library support Platform/NXP : Add Support for NOR flash Library Platform/NXP : Add Support for NOR Flash driver Compilation:Modify dsc,fdf files and add inc file .../NXP/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c | 254 +++++++ Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.c | 446 ++++++++++++ Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf | 65 ++ Platform/NXP/Drivers/NorFlashDxe/NorFlashFvbDxe.c | 807 +++++++++++++++++++++ Platform/NXP/Include/Library/Ifc.h | 147 ++++ Platform/NXP/Include/Library/IfcBase.h | 139 ++++ Platform/NXP/Include/Library/NorFlash.h | 222 ++++++ Platform/NXP/Include/Library/NorFlashLib.h | 67 ++ .../Include/Library/IfcBoardSpecificLib.h | 51 ++ Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 22 + Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 9 +- Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc | 98 +++ Platform/NXP/Library/IfcFlashLib/IfcFlashLib.c | 65 ++ Platform/NXP/Library/IfcFlashLib/IfcFlashLib.inf | 30 + Platform/NXP/Library/NorFlashLib/CfiCommand.h | 99 +++ Platform/NXP/Library/NorFlashLib/CfiNorFlashLib.c | 184 +++++ Platform/NXP/Library/NorFlashLib/CfiNorFlashLib.h | 54 ++ Platform/NXP/Library/NorFlashLib/IfcNorFlashLib.c | 52 ++ Platform/NXP/Library/NorFlashLib/NorFlashLib.c | 658 +++++++++++++++++ Platform/NXP/Library/NorFlashLib/NorFlashLib.inf | 42 ++ Platform/NXP/NxpQoriqLs.dsc | 6 +- 21 files changed, 3515 insertions(+), 2 deletions(-) create mode 100644 Platform/NXP/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c create mode 100644 Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.c create mode 100755 Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf create mode 100644 Platform/NXP/Drivers/NorFlashDxe/NorFlashFvbDxe.c create mode 100755 Platform/NXP/Include/Library/Ifc.h create mode 100644 Platform/NXP/Include/Library/IfcBase.h create mode 100644 Platform/NXP/Include/Library/NorFlash.h create mode 100644 Platform/NXP/Include/Library/NorFlashLib.h create mode 100755 Platform/NXP/LS1043aRdbPkg/Include/Library/IfcBoardSpecificLib.h create mode 100644 Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc create mode 100644 Platform/NXP/Library/IfcFlashLib/IfcFlashLib.c create mode 100644 Platform/NXP/Library/IfcFlashLib/IfcFlashLib.inf create mode 100644 Platform/NXP/Library/NorFlashLib/CfiCommand.h create mode 100644 Platform/NXP/Library/NorFlashLib/CfiNorFlashLib.c create mode 100644 Platform/NXP/Library/NorFlashLib/CfiNorFlashLib.h create mode 100644 Platform/NXP/Library/NorFlashLib/IfcNorFlashLib.c create mode 100644 Platform/NXP/Library/NorFlashLib/NorFlashLib.c create mode 100644 Platform/NXP/Library/NorFlashLib/NorFlashLib.inf -- 1.9.1