From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
To: <ard.biesheuvel@linaro.org>, <leif.lindholm@linaro.org>,
<michael.d.kinney@intel.com>, <edk2-devel@lists.01.org>
Subject: [PATCH edk2-platforms 1/3] USB: Added Support of DWC3 USB controller.
Date: Fri, 22 Dec 2017 17:46:42 +0530 [thread overview]
Message-ID: <1513945005-30002-2-git-send-email-meenakshi.aggarwal@nxp.com> (raw)
In-Reply-To: <1513945005-30002-1-git-send-email-meenakshi.aggarwal@nxp.com>
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 <meenakshi.aggarwal@nxp.com>
---
.../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 <Base.h>
+#include <Uefi.h>
+
+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
next prev parent reply other threads:[~2017-12-22 6:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-22 12:16 [PATCH edk2-platforms 0/3] Cover letter:Pci Emulation and SATA support Meenakshi Aggarwal
2017-12-22 12:16 ` Meenakshi Aggarwal [this message]
2017-12-22 12:16 ` [PATCH edk2-platforms 2/3] PciEmulation : Add support for Pci Emulation layer Meenakshi Aggarwal
2017-12-22 12:16 ` [PATCH edk2-platforms 3/3] SATA : Added SATA controller initialization driver Meenakshi Aggarwal
2017-12-22 15:31 ` [PATCH edk2-platforms 0/3] Cover letter:Pci Emulation and SATA support Ard Biesheuvel
2018-01-04 11:27 ` Meenakshi Aggarwal
2018-01-04 11:33 ` Ard Biesheuvel
2018-01-04 12:56 ` Meenakshi Aggarwal
2018-01-05 6:47 ` Meenakshi Aggarwal
2018-01-05 7:40 ` Ard Biesheuvel
2018-01-05 8:53 ` Meenakshi Aggarwal
2018-01-05 9:16 ` Ard Biesheuvel
2018-01-08 15:55 ` [PATCH edk2-platforms v2 0/2] Cover letter:SATA controller support Meenakshi Aggarwal
2018-01-08 15:55 ` [PATCH edk2-platforms v2 1/2] SATA : Added SATA controller driver Meenakshi Aggarwal
2018-01-08 15:05 ` Ard Biesheuvel
2018-01-09 4:50 ` Meenakshi Aggarwal
2018-01-09 8:26 ` Ard Biesheuvel
2018-01-08 15:55 ` [PATCH edk2-platforms v2 2/2] LS1046 : Enable support of SATA controller Meenakshi Aggarwal
2018-01-08 15:11 ` Ard Biesheuvel
2018-01-09 4:37 ` Meenakshi Aggarwal
2018-01-09 8:27 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1513945005-30002-2-git-send-email-meenakshi.aggarwal@nxp.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox