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.76; helo=nam03-dm3-obe.outbound.protection.outlook.com; envelope-from=meenakshi.aggarwal@nxp.com; receiver=edk2-devel@lists.01.org Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0076.outbound.protection.outlook.com [104.47.41.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 78778222CB301 for ; Thu, 21 Dec 2017 22:23:58 -0800 (PST) Received: from BN6PR03CA0073.namprd03.prod.outlook.com (10.164.122.139) by BN3PR03MB2354.namprd03.prod.outlook.com (10.166.74.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Fri, 22 Dec 2017 06:28:46 +0000 Received: from BN1AFFO11FD020.protection.gbl (2a01:111:f400:7c10::149) by BN6PR03CA0073.outlook.office365.com (2603:10b6:405:6f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Fri, 22 Dec 2017 06:28:46 +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 BN1AFFO11FD020.mail.protection.outlook.com (10.58.52.80) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Fri, 22 Dec 2017 06:28:32 +0000 Received: from uefi-OptiPlex-790.ap.freescale.net (uefi-OptiPlex-790.ap.freescale.net [10.232.132.78]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBM6ScAM029665; Thu, 21 Dec 2017 23:28:43 -0700 From: Meenakshi Aggarwal To: , , , Date: Fri, 22 Dec 2017 17:46:42 +0530 Message-ID: <1513945005-30002-2-git-send-email-meenakshi.aggarwal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513945005-30002-1-git-send-email-meenakshi.aggarwal@nxp.com> References: <1513945005-30002-1-git-send-email-meenakshi.aggarwal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131583977122336655; (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)(39860400002)(396003)(376002)(346002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(966005)(53376002)(498600001)(85426001)(5660300001)(6306002)(356003)(316002)(4326008)(15188155005)(36756003)(16799955002)(77096006)(47776003)(106466001)(16586007)(54906003)(305945005)(8676002)(53936002)(8936002)(105606002)(81156014)(86362001)(8656006)(575784001)(81166006)(110136005)(2201001)(51416003)(2906002)(97736004)(76176011)(2950100002)(104016004)(68736007)(50226002)(50466002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2354; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD020; 1:wUN/aJ4Ks5klE57G3jHlLHfvSiUH4rM2mFLT1GgZDzs5EaE9b0Pq4N5FTE9a+hOl268isJRMO3C3gNi/QQYIADaP7dN9fwSKHbeID/fVGkvW/uAUBHYusIQDlUkHTmKR MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c34eca41-3808-4e77-8f8f-08d5490538f9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN3PR03MB2354; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 3:Vux/njH4O5WqQP/m0ihZA7jBEO1dtysYSZfkvwQiHqjQLW2abQ/j4rMCEGIDh3J+LOuzIDUoUxRkDHq30va2jtbtDnAGwJ6bWsxK0D88lNerk3b2vJA0ze+79PFbQWlFunekyfXIrqc8pLItcQ4OUObPptZiEUczStGspbxwugcZfa9fnv6XfDpBnndvFLEu80rrNYI0wcoJz2felzaRfw8IDU00HbF8rKVPUWOz7s4Qy9M48O6RiFuOY3cr1qvRbq9lJw+d3GFQTCraLB0NMuUGqBt3HBMt0NkoT0gJaknEgzsZNvOLKJOgAZEHsprp/DeY+hCp5OYVbprsiNEYgrzL3Go79VAt/D8xx4ekxRc=; 25:JXXO8a6oRLjrRQC/kMWNUHWcGVRy97u7xusAyPNZ/t+dEBrkEQfoD8vvRxViJ32epPs/DduR23jO8Dqa5SZ/WZnv4NUo4twPQg94yA0aQ3rdQS8NzLTVAZL/yOaEyZOWJU+uKuxRnic94MG1nqcE+yi4yz+9lgf03tRttbwWc7ELfKiOvhtBjYEJP+Y1ZZBrYZVDswXrlccyTFv47VuN6nZPurdYAFBtgh6ObkZHsxhqx1Doybv7qT1ZHEbzy0aCBshTKXj2k9QihOYGzjBEIepnrbRh20Co33p0KUBWk8XUxKw2icmOTMcab6L75Iao6Kzppjt1mPnx783CR1D8hg== X-MS-TrafficTypeDiagnostic: BN3PR03MB2354: X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 31:5wLcWpWkRuZquK7KiDokCs9kL07oRtyEY534SObPCjShBlxnfQyBcCZaeGMrHTsP/QXZOc0klEWtXE69PhBlt+40hmTabtKYaYQCkp+LpldjqYU6VHzqlC2+eRbnMRPc7aK4LWzVmukzQB1BO5jgcegvzO33XAG7ZLJ7WHYce//coNkmFPZzOCLdJJaIhGN3jrE7chZX4y39Nny01qIlRMGOWzx2Mm3d92nT4zh5GDU=; 4:uUuAHLDszMSogyoXswWll1cKTTWRQLsV5QtJlqz3bC7mhflPRuSVgg2OypNcCH92AuYqKSK3a9+QTRoMXQmy5rndkYAL8t5nI5/QInw6RDJ7BHkhi4/yT//ONfrVlTi9JT7WTBoAgTyN+Rf6+1vfgDG8fLaomzDjswV2aonRSGIXBhJ7Cwc4h3qTlFBZTGDGIudhmkDHK5zCrnGvD1BfVDDr50iD+7cnmPrBpxzq37NrraydUqalKtbUk/8u6OSei9/hjXh98/nzcUmjUAWtTFXQnYDrOhMDuZZXYB2PRo27F5yRwooooUCjvSZf9vFz X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231023)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123556025)(20161123559100)(20161123563025)(20161123561025)(201708071742011); SRVR:BN3PR03MB2354; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN3PR03MB2354; X-Forefront-PRVS: 05299D545B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2354; 23:3GZzBF0Ufa8gcUjiPMcDdEDkCuZA2giAFEnGB4my0?= =?us-ascii?Q?9Kx38NoYkRJwmjzdGJMTm7oqHYwTkh27sAce+KBJY2V2ayzFE3+iY51nduLm?= =?us-ascii?Q?y6M5RjQbqCPh7HWaHhrT221YRF2M3f35WAcax+BDPyXjYlueoEjz4wZWYAfB?= =?us-ascii?Q?cJkNxr1/8o9WAI2NGQ3TMpFfoR1skJferCHowWsai4stlhk7NmRM/tzdjiGz?= =?us-ascii?Q?BT1iLWGT3Jt6gwhYt/ZqtvAEUdzrU7LkUt9efAuP5ADi6rk+tOM+2OtOhxbe?= =?us-ascii?Q?SmbQkl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4BL0?= =?us-ascii?Q?YqIc5Wdwy/y34QmKTMbshb/BHjRZsfc7d1T?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 6:L6G5g9JIb3emcNlqM1s4R0xD2kO4T8XxrnGsxuGRHM+/aqgq/nmZIe6uatSl8vZEni8ZcMUXSjUrImEDKXLOdkRY2RwSoyq4dowdWt0SSbVThsfCiwzKYlNpAnjZUYUiko9JkEeC3Yf7cHVwkYeW7DUsl7CZhPOGr9/KhiM4SqdcnQI9Pk5nyFNzYp3nOIeKFakpe4J4v8oJ+YaI9CltPZcHVDLbMgMreH5bPWtuqaosRTZlQ7RKAJfHLAaEjgmGKNrSqIoamrN+hqtlnshouwa+pYa1Mx1HBqzppj+xu/wA3lH+sS3f4nnpkbU4ojf4a0mqe295rc10GHgAZU9f74/Ccq1crXos4xS3VgL8sTM=; 5:dimBaEbgegjWfbi+TWi4jvwDlXC19UK6pm4cAFGFiQDuoA6WbzBItIoIQ1Gxb573455Qsrr7aqIYjljXZWYjm96kKQn1JZzSKxCvvMXVE5L/ozjEiUxiShq2iLYFhn+6avk/k5sZ8xyr/vhURhnslAm8CffaGyIxCBZJLTHUox4=; 24:+mnuRGdZv0oRKjHJljVyuX9eTXlQcTrZ0hOrVbs+DWOj3FWHAABF8wLgTMhQroYiI+6VrTinlZ4P4WSDP9CydfkfrnZzOoUDO3x5XmclHgc=; 7:Y8adgeSnjQDHJ9pJ7gZ6WZjaGdejFz0aMViRX76WXoOs3g9fZk9XcqKVYhLUruo51GcpGvzdZDkQ/LiRRCMfuj5vNnJcovYmCarPkxaX0wSDetdts/ORljDDXhj1Cf5li0nmqHGpfiuv9KeycPbUEDRPFKpkZ/N1vGb3cp8OXedrF0dqgCLln7Rirto7YGnGzv8nyQo2aJurMTcJ5i/+pvqsgWfr+96UEyyRkUfDukkaivfsrM1fLZXm+Q4wNGlb SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2017 06:28:32.0464 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c34eca41-3808-4e77-8f8f-08d5490538f9 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: BN3PR03MB2354 Subject: [PATCH edk2-platforms 1/3] USB: Added Support of DWC3 USB controller. 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: Fri, 22 Dec 2017 06:23:59 -0000 Content-Type: text/plain Added library for DWC3 USB controller and enabled USB support in pci emulation layer. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Meenakshi Aggarwal --- .../NXP/Library/UsbHcdNullLibrary/UsbHcdLibNull.c | 25 +++++++++++++++++++ .../NXP/Library/UsbHcdNullLibrary/UsbHcdNull.inf | 28 ++++++++++++++++++++++ Platform/NXP/NxpQoriqLs.dsc | 9 +++++++ 3 files changed, 62 insertions(+) create mode 100644 Platform/NXP/Library/UsbHcdNullLibrary/UsbHcdLibNull.c create mode 100644 Platform/NXP/Library/UsbHcdNullLibrary/UsbHcdNull.inf diff --git a/Platform/NXP/Library/UsbHcdNullLibrary/UsbHcdLibNull.c b/Platform/NXP/Library/UsbHcdNullLibrary/UsbHcdLibNull.c new file mode 100644 index 0000000..51a9b16 --- /dev/null +++ b/Platform/NXP/Library/UsbHcdNullLibrary/UsbHcdLibNull.c @@ -0,0 +1,25 @@ +/** @file + + Copyright 2017 NXP + + This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#include +#include + +EFI_STATUS +EFIAPI +InitializeUsbController ( + IN UINTN UsbReg + ) +{ + return EFI_SUCCESS; +} diff --git a/Platform/NXP/Library/UsbHcdNullLibrary/UsbHcdNull.inf b/Platform/NXP/Library/UsbHcdNullLibrary/UsbHcdNull.inf new file mode 100644 index 0000000..76a414e --- /dev/null +++ b/Platform/NXP/Library/UsbHcdNullLibrary/UsbHcdNull.inf @@ -0,0 +1,28 @@ +# UsbHcdNull.inf +# NULL Library fr DWC3 +# +# Copyright 2017 NXP +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +*/ + +[Defines] + INF_VERSION = 0x0001000A + BASE_NAME = UsbHcdNull + FILE_GUID = 0946b308-9ac9-4e01-b4ec-e6e4d72991ec + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = UsbHcdLib + +[Sources.common] + UsbHcdLibNull.c + +[Packages] + MdePkg/MdePkg.dec diff --git a/Platform/NXP/NxpQoriqLs.dsc b/Platform/NXP/NxpQoriqLs.dsc index 54f0c2c..9b450fa 100644 --- a/Platform/NXP/NxpQoriqLs.dsc +++ b/Platform/NXP/NxpQoriqLs.dsc @@ -392,6 +392,15 @@ FatPkg/EnhancedFatDxe/Fat.inf # + # Usb Support + # + MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf + MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf + MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf + MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf + MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf + + # # Bds # MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf -- 1.9.1