From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.41.59; helo=nam03-dm3-obe.outbound.protection.outlook.com; envelope-from=vabhav.sharma@nxp.com; receiver=edk2-devel@lists.01.org Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0059.outbound.protection.outlook.com [104.47.41.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0AD4E22183C83 for ; Fri, 1 Dec 2017 08:16:08 -0800 (PST) Received: from CY1PR03CA0018.namprd03.prod.outlook.com (10.174.128.28) by CY1PR0301MB0731.namprd03.prod.outlook.com (10.160.159.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Fri, 1 Dec 2017 16:20:33 +0000 Received: from BL2FFO11FD036.protection.gbl (2a01:111:f400:7c09::178) by CY1PR03CA0018.outlook.office365.com (2603:10b6:600::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:20:33 +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 BL2FFO11FD036.mail.protection.outlook.com (10.173.161.132) 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:20:32 +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 vB1GKSHb013131; Fri, 1 Dec 2017 09:20:29 -0700 From: Vabhav To: , , , Date: Fri, 1 Dec 2017 09:48:47 +0530 Message-ID: <1512101930-11887-1-git-send-email-vabhav.sharma@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131566188326228939; (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)(7966004)(376002)(39860400002)(346002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(174864002)(189002)(199003)(68736007)(106466001)(4326008)(356003)(36756003)(33646002)(104016004)(105606002)(77096006)(8656006)(305945005)(97736004)(498600001)(47776003)(50226002)(16586007)(85426001)(86362001)(81166006)(48376002)(81156014)(54906003)(8936002)(110136005)(51416003)(8676002)(2906002)(316002)(50466002)(5660300001)(6666003)(53936002)(2201001)(189998001)(217873001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0731; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD036; 1:Uv9dU2KM6vQyfIThzesDFUs1NHIIIvrT6kS1iywBhhQD2Tjdh1OIqMHtWA7Vw1VrGtGXIjGLJ+qAuTuw8GvXqWd6baaNroAMM0Otn2H7OeauML0veOeEM9mxTEjV4B8c MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac1ad0c4-dbd3-4378-a762-08d538d77204 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603286); SRVR:CY1PR0301MB0731; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0731; 3:uQw449bCIKZhY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3FBCtmAjVumBqYK4IOOFDuEW2L71pVp0sgCD5S0FZZNg4eP/s0yhNnnxzdpq/gVGH3fs7zbpR9XH7OcKhgBcClJyvNuC53DWIBdRh8FSdTDa9XHUCXavrBTtheQuIL/M6/ZE6YQdnuUPemuyh2uIgj7tyi7HhJF486weQV9YX5gwJaTVf6yS7wPS6QsoGFbSc7fHivw2Ry1ud9YrXMOj+stkJjQ== 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)(10201501046)(3002001)(93006095)(93001095)(3231022)(6055026)(6096035)(20161123561025)(20161123559100)(20161123556025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123563025)(201708071742011); SRVR:CY1PR0301MB0731; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY1PR0301MB0731; X-Forefront-PRVS: 05087F0C24 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0731; 23:rretD+kj0xvLRbuVlKije9d9hEyJ4yEMgmNg1B3?= =?us-ascii?Q?2M9eemLRVnQGL+aFCUdfOIX1QKnHH0V/oFO519FFP4PyvfWoDuuwuj17HYYa?= =?us-ascii?Q?rLu9zeewrnKK8YhxTL55PVYv+8+YoUsCFqV6Lz9ATYVoIUFZ7zs4L1qR1O5r?= =?us-ascii?Q?pSuPdzfUtX+zCqlg0k/pJWw/GdtVXjzeek2mwjMmQa4LvCGO6tlU+GruP++F?= =?us-ascii?Q?xkyWgyStST5rKf3RI0v+oqrQSMyy+rt/wnsKvN/81QgtRPXX3mKEQ7TC5Kt1?= =?us-ascii?Q?Vail5+9EhXNm+u9XZW421weJQwx2jIhlsbmSyYuPeGSjroT3/9nwPOLwIRKP?= =?us-ascii?Q?EaHRbLDVSKd6v0HJXoQlLcVaNk93naZ2A9G5v6Y1NbYmyYRyMe6u+3BerJJD?= =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NJZpNFLMf5mN1u7CJnYq9XpWiZcfw43yHpx8K+EY+oiBtq3HFMqNZH5f7sMd7PH+QlJIrNxNWie2Pzt29nUyc8+V3U9SDCkb1RSTv5WkeAPAQmG9bsgk0uH3LYAusJjGvCV6QL3gssCqq4/5LSQwEPZPlv0NwdOJbahY929m0LKprSNOV4NE1voamk7XLVnMIKy46lLiW2FlWFuyoqhqlTCNp3XAwmTn9P/eM/WT5h/vQv7WPJTez6tYp0ffh4QR3XfUWsznjxp+HEOe5WGLESS3S/UfbyxGvpR/DJoGx60JAXfHdGVoDhnWM1WWKY=; 5:Pz44iI3M6hzyuVJwd4+82xswKxwPiaX5RUnfU4jThykY5uKFf8fd0845MplQZU62L0yPAqEL7NlvhaXrK0NO0RfV8/bseFqSiFknxISw1SJJYFeYfGdTBBa3QMfMLUg8taNppMicmDJhFHxyilOBRzeldTHZqb4CCO+cuDCeNRg=; 24:W3k0AYQ2QZLmu807AIQFYKyXjCnUKWnb0WzWcQ27NmbN7uZIEHwb+sEsHMDadABUiLLM9LAtPjYF77PgR8A8oL3swYV6GO1i47fyD4wigLQ=; 7:jEAMieWxttpNI+N//DlSWX99KNDYfdoPS7ik0Ye+CuOkM/BNazgWOrpB8oVxQAsfKOF06WYEBbrAMzUJ83MX0/F7JgVNdOE8kqL63kE/LTFB1LA6UoMBS1r2eYb540Pmg+PPdtkKsrHbeBn9WZR1JGUI7pRX4MEMH2SsInLAwFL0zx8ylGYGhpZ4Yq1s5BCUATBmuPFCHbzB2tgpta2oBWPF7Flxv8vHZWbfAJXryuZuQkyXEcmGIjWxksg2sJ8D SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2017 16:20:32.3264 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac1ad0c4-dbd3-4378-a762-08d538d77204 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: CY1PR0301MB0731 Subject: [PATCH 0/3] Platform/NXP-Adding NXP MMC Host Driver 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:16:08 -0000 Content-Type: text/plain Following patches will add support of NXP MMC Host Driver in edk2-platforms directory 'edk2-platforms/Platform/NXP' Updated Directory structure for added folders in 'edk2-platforms/Platform/NXP' will be: Platform/NXP/ |-- Drivers | |-- MmcHostDxe | | |-- MmcHostDxe.c | | `-- MmcHostDxe.inf |-- Include | `-- Library | `-- MmcLib.h |-- Library | `-- MmcLib | |-- MmcInterface.c | |-- MmcInternal.h | |-- MmcLib.c | `-- MmcLib.inf In Platform/NXP/Library: MmcLib will be added In Platform/NXP/Drivers: MmcHostDxe driver will be added Mmc host driver will produce gEfiMmcHostProtocolGuid which will be used by consumed by MmcDxe driver of EmbeddedPkg. Please review and look forward for your support in upstreaming the patches in edk2-platforms. Vabhav (3): Platform/NXP :Add Support for MMC Library Platform/NXP :Add Support of MMC Host Driver Compilation:Modify dsc,fdf files Platform/NXP/Drivers/MmcHostDxe/MmcHostDxe.c | 418 +++++++++++++++++ Platform/NXP/Drivers/MmcHostDxe/MmcHostDxe.inf | 42 ++ Platform/NXP/Include/Library/MmcLib.h | 138 ++++++ Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 11 + Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 7 + Platform/NXP/Library/MmcLib/MmcInterface.c | 544 ++++++++++++++++++++++ Platform/NXP/Library/MmcLib/MmcInternal.h | 350 +++++++++++++++ Platform/NXP/Library/MmcLib/MmcLib.c | 597 +++++++++++++++++++++++++ Platform/NXP/Library/MmcLib/MmcLib.inf | 39 ++ 9 files changed, 2146 insertions(+) create mode 100644 Platform/NXP/Drivers/MmcHostDxe/MmcHostDxe.c create mode 100644 Platform/NXP/Drivers/MmcHostDxe/MmcHostDxe.inf create mode 100644 Platform/NXP/Include/Library/MmcLib.h create mode 100644 Platform/NXP/Library/MmcLib/MmcInterface.c create mode 100644 Platform/NXP/Library/MmcLib/MmcInternal.h create mode 100644 Platform/NXP/Library/MmcLib/MmcLib.c create mode 100644 Platform/NXP/Library/MmcLib/MmcLib.inf