From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.32.75; helo=nam01-sn1-obe.outbound.protection.outlook.com; envelope-from=vabhav.sharma@nxp.com; receiver=edk2-devel@lists.01.org Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0075.outbound.protection.outlook.com [104.47.32.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2C0D321CB8665 for ; Tue, 19 Dec 2017 20:37:13 -0800 (PST) Received: from CY1PR03CA0021.namprd03.prod.outlook.com (10.174.128.31) by MWHPR03MB2704.namprd03.prod.outlook.com (10.168.207.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Wed, 20 Dec 2017 04:41:59 +0000 Received: from BY2FFO11FD019.protection.gbl (2a01:111:f400:7c0c::172) by CY1PR03CA0021.outlook.office365.com (2603:10b6:600::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.323.15 via Frontend Transport; Wed, 20 Dec 2017 04:41:59 +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 BY2FFO11FD019.mail.protection.outlook.com (10.1.14.107) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Wed, 20 Dec 2017 04:41:45 +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 vBK4fsdd019373; Tue, 19 Dec 2017 21:41:55 -0700 From: Vabhav To: , , , Date: Tue, 19 Dec 2017 22:10:07 +0530 Message-ID: <1513701611-19990-1-git-send-email-vabhav.sharma@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131582185063951497; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(7966004)(39860400002)(39380400002)(376002)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(86362001)(8676002)(36756003)(81166006)(2201001)(81156014)(53936002)(47776003)(2906002)(48376002)(105606002)(4326008)(316002)(305945005)(50466002)(356003)(110136005)(5660300001)(16586007)(77096006)(106466001)(54906003)(8656006)(50226002)(85426001)(59450400001)(6666003)(51416003)(97736004)(8936002)(498600001)(68736007)(104016004)(217873001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2704; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD019; 1:OEPU6SOBSLSF9QrS4zh5GHleDxU7KizQ8vUSOmD0qjcReJ7rP9vMGh7D8V8wHh2LpwzfxB/scFqbpMPfZna6h6pZr+96UL2WEm8eFK8j07ObulbaFQCcu8TnuoGQ73CP MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a240a389-1bc5-4ae2-ac89-08d54763f9f8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:MWHPR03MB2704; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 3:FBg8UVVPb7fMvhlyK9LlvmR+/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iPVe2RQ5WA4rwYnLEKd/KtiTq6r1V5vVgPXjgLYfWyLBqUR+3FpRePMw5ZA7Uh+ZXQkhSevmdyjfhnGiqbSB3ob7IH5GmZQUMpYtcWJMr8HGUHsOdZY0BHvODlHr4L7/kYnHX/S/zWp25He4MO9qeVNj02QNX87cxo9Ho4aX3UDrC1k/UUSbYw1zrG+PcPiGMhwgkuCwJ53XA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231023)(6055026)(6096035)(20161123556025)(20161123559100)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(201708071742011); SRVR:MWHPR03MB2704; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2704; X-Forefront-PRVS: 0527DFA348 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2704; 23:i2+qeFXsctvhMaJSqj2Mint6f9JfcCSAaboTJuNFb?= =?us-ascii?Q?tF5YE3fYSN3/aT1ebfVv0NjRLZlLrK54ZFuyr/RrYGDeYQK7x3dYqVXhnVP1?= =?us-ascii?Q?Ekad2yj5fN+ozkOj26hXcdNNJMxaN5RA259FXBxjMQO1Y0tmDpX2Ued5Jlaa?= =?us-ascii?Q?w5ZcVrBT9eQJHHSnhJ36kPUaDkFbOAOwhj5WOCw/IQsIXlcxkeGzfXI3YGbd?= =?us-ascii?Q?B8G00UeEZxrn/t6h8mc9zUKnjj8xpZF/DHcPe1IcgFYzxSTiRQK6CamApKSc?= =?us-ascii?Q?9+apTbK0vjLinUDDe4jxZE4sYXnPAAYAib6pYQLarHIHryQMogFApSN7F4Nf?= =?us-ascii?Q?01RNt+XkQcBaK9vhECBL8OK+MyVrxAue1rYETk4i8F6HiSNGGiOX9v69OeCA?= =?us-ascii?Q?BmgeX+jBWoU+86qb2UWSk8zdB70KMKXXNDCJb810iIj0RwbJb4HE2HUAVedk?= =?us-ascii?Q?rVOJ6ihFZvgi/+pM/dV9XEkY9JZxxMtUg7vaRLLS001kHJUiBAMI4vr7PJ6j?= =?us-ascii?Q?+HfBbZ7cidoXs97ujDKjf5kzWmcosip0Di7jtE+zg6m2mq2izUF9JHHcN5gL?= =?us-ascii?Q?R8qaL4eHLQKAJp/cp7X0pJkDgu0Q9OjQUICI9pXS7NJG8yxlrRVVCvwxvjhi?= =?us-ascii?Q?coyBwhT+dQEoGH1sP6osmgffhX/Gdlr0KK048V1xQfqPHANB2yy9n7Pu77ui?= =?us-ascii?Q?qWaMmNA7LUXx7vFkqExPSS/wVBli7FYoHmZRVQ2uC4iE79O6LXvzIpCOsywQ?= =?us-ascii?Q?xv1iW9TAN+Hj5BJxi9ObxSkOff4sR5sz966YBNzfvlcM0KhCMhgi6YH01Inz?= =?us-ascii?Q?iBrh6oGcNeCzf75zVbOwygd0qmI/DfMoy5VU5f7yVDl5W61iaazGS/Nlj1mO?= =?us-ascii?Q?8wuxIK/3QgNSXo086+zeTvKnwkzHQBDp2FofBjWNMZk/lkGkDyEoqufmvezE?= =?us-ascii?Q?8KBn60NvILjtb3EO+LDxTpYq9svVcksNChLDAAdcn/DfxPQnud+Vv/+w9UZ4?= =?us-ascii?Q?dR5e/nYkF8sWKobIH9HaevUrJt3x9eVqv/QJJy6htCpDhBNBz7qoYazQk6o+?= =?us-ascii?Q?dTmLB3OjXg7mxwNW22KyczZf1C+pfDAMDZxz3lRIzNLae86gyb6o9duKwkya?= =?us-ascii?Q?RIReRIV4Kde6q+fKx904doPyrHDGrnn?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 6:U02UG/PVDunDJI40CZL378CMolH+RSxNJsvY4RNc4b7IH0JJn26kHbCTjDHBnhNegQpVCcSINos6DNSRSCM5lVz/NlGPmln/7LsQitcI78TTX7HK0MZ17KamGFcJpisrtDkG6D1YXdv7p7ben8UZkvM4/FI/CVHy+6yHLwKA/ujgGiXglZgZV3tppFmsuZkc2RazNF9oKa1kpXXA782cUT4Ke1ORgOFaqdf1nInQIDoBUnPE6iKFGSo/FXjoUBA70mNgMiWGwq9tMbqCCzoGqUd34vZmqXeSgpcsRKZhD9r91EF8p1oMy8cSLf8uYNPFVPSp06xxxsZMxhcxy8i7xqhffV3J8EnQmUyzaWa2Shc=; 5:ge8hwBrSTboii3newy/k3vicSaiBI7ROnp7gGI86UMiCZ/UkhYiHC/OnkxIFv32+ch0cFsQ9RSgEMJ8f0PWllEWMezNLtVYinYDsHGKHgqIAU/s9x7k8xurz5YU+wHn9SJaZwVGtpivXSFORv9uiQzb7+JT+H0Hj3YW9fpzlzns=; 24:FMyR0imzv+M1u6i54gLfg1AUUnlVVg+6B+wveyKBP+s7QaaSJdE/eyAbv4RGCu+7eN/0ERgPmuwpUxX9mu2gc3Oj0zABiuErMBraQz/5QvE=; 7:KkvTN4FANrzxqM2u43jSG4N7S6UHa6PxpHiOQm9Wy4c57v95SSobkLdlg1gR5s66rTlMYItEABJDysJyITWLzNcBVKPOvfOfiMQFBEV1z8LtiU1mSErzyUSFEMJEZWbI3/ZH1nZWGzV6Pgx9Wd40f+zr9KDxP8QwX/sDuBy1VTcLAcPn1i9LHnBAEJFJeupl1WJf2+oaX2lyr5xUUs9FHTNQ2pKp77nhiHxqOtqUibqL3H/8XfY1LZH5an1nTgsy SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 04:41:45.5683 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a240a389-1bc5-4ae2-ac89-08d54763f9f8 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: MWHPR03MB2704 Subject: [PATCH edk2-platforms v2 0/4] Platform/NXP-Adding NXP NOR IP X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2017 04:37:15 -0000 Content-Type: text/plain Changes for v2: (1)Format changes as per edk2 coding guidelines (2)Changes made to use NXP Mmio BE library (3)Commit message updated 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 | 444 +++++++++++ Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf | 65 ++ Platform/NXP/Drivers/NorFlashDxe/NorFlashFvbDxe.c | 814 +++++++++++++++++++++ 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 | 50 ++ Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 24 + Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 9 +- Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc | 98 +++ Platform/NXP/Library/IfcFlashLib/IfcFlashLib.c | 70 ++ Platform/NXP/Library/IfcFlashLib/IfcFlashLib.inf | 33 + 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.dec | 1 + Platform/NXP/NxpQoriqLs.dsc | 5 + Silicon/NXP/Chassis/Chassis.c | 15 + Silicon/NXP/Chassis/Chassis.h | 7 + Silicon/NXP/Chassis/Chassis2/Soc.c | 1 + Silicon/NXP/Chassis/LS1043aSocLib.inf | 2 + 26 files changed, 3555 insertions(+), 1 deletion(-) 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