diff mbox

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

Message ID 1530647879-10007-15-git-send-email-pawell@cadence.com (mailing list archive)
State New, archived
Headers show

Commit Message

Pawel Laszczak July 3, 2018, 7:57 p.m. UTC
Signed-off-by: Laszczak Pawel <pawell@cadence.com>
---
 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

Comments

Randy Dunlap July 3, 2018, 8:30 p.m. UTC | #1
On 07/03/18 12:57, Pawel Laszczak wrote:
> Signed-off-by: Laszczak Pawel <pawell@cadence.com>
> ---
>  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

	                                     as a

> +	  module, the module will be called usbssp.ko.
diff mbox

Patch

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