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
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel