[PATCH 14/15] Introduce Cadence USBSSP DRD Driver - added Kconfig and Makefile files.

From: Pawel Laszczak
Date: Tue Jul 03 2018 - 16:00:02 EST


Signed-off-by: Laszczak Pawel <pawell@xxxxxxxxxxx>
---
drivers/usb/usbssp/Kconfig | 29 +++++++++++++++++++++++++++++
drivers/usb/usbssp/Makefile | 17 +++++++++++++++++
2 files changed, 46 insertions(+)
create mode 100644 drivers/usb/usbssp/Kconfig
create mode 100644 drivers/usb/usbssp/Makefile

diff --git a/drivers/usb/usbssp/Kconfig b/drivers/usb/usbssp/Kconfig
new file mode 100644
index 000000000000..e55c97a2da5f
--- /dev/null
+++ b/drivers/usb/usbssp/Kconfig
@@ -0,0 +1,29 @@
+config USB_USBSSP
+ tristate "Cadence USBSSP DRD Controller"
+ depends on (USB || USB_GADGET) && HAS_DMA
+ select USB_USBSSP_GADGET
+ help
+ Say Y here if your system has a cadence USBSSP dual-role controller.
+ It supports: dual-role switch Host-only, and Peripheral-only.
+
+ If you choose to build this driver is a dynamically linked
+ module, the module will be called usbssp.ko.
+
+if USB_USBSSP
+
+config USB_USBSSP_GADGET
+ bool "Gadget only mode"
+ depends on USB_GADGET=y || USB_GADGET=USB_USBSSP
+ help
+ Select this when you want to use USBSSP in gadget mode only,
+
+config USB_USBSSP_PCI
+ tristate "PCIe-based Platforms"
+ depends on USB_PCI && ACPI
+ default USB_USBSSP
+ help
+ If you're using the USBSSP Core IP with a PCIe, please say
+ 'Y' or 'M' here.
+
+endif
+
diff --git a/drivers/usb/usbssp/Makefile b/drivers/usb/usbssp/Makefile
new file mode 100644
index 000000000000..b6d5fabc3571
--- /dev/null
+++ b/drivers/usb/usbssp/Makefile
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0
+# define_trace.h needs to know how to find our header
+CFLAGS_trace.o := -I$(src)
+
+obj-$(CONFIG_USB_USBSSP_GADGET) += usbssp-plat.o gadget-dbg.o \
+ gadget-mem.o gadget-ring.o \
+ gadget.o gadget-ep0.o gadget-port.o
+
+ifneq ($(CONFIG_TRACING),)
+ usbssp-y += trace.o
+endif
+
+ifneq ($(CONFIG_DEBUG_FS),)
+ usbssp-y += gadget-debugfs.o
+endif
+
+obj-$(CONFIG_USB_USBSSP_PCI) +=usbssp-pci-of-wrap.o
--
2.17.1