Skip to contentSkip to conversation

USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

PATCH Superseded [email protected] 2 participants 2 messages Apr 1, 2011 – Apr 2, 2011 USB

v12 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

PATCH v12 9/10 USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

From: Tirumala Marri <[email protected]>

Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode.

---
 drivers/Makefile         |    1 +
 drivers/usb/Kconfig      |    2 +
 drivers/usb/dwc/Kconfig  |   88 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/dwc/Makefile |   19 ++++++++++
 4 files changed, 110 insertions(+), 0 deletions(-)
 create mode 100644 drivers/usb/dwc/Kconfig
 create mode 100644 drivers/usb/dwc/Makefile
drivers/Makefile +1 -0
index a125e0b..d4133a6 100644
@@ -65,6 +65,7 @@ obj-$(CONFIG_PARIDE) 		+= block/paride/
 obj-$(CONFIG_TC)		+= tc/
 obj-$(CONFIG_UWB)		+= uwb/
 obj-$(CONFIG_USB_OTG_UTILS)	+= usb/otg/
+obj-$(CONFIG_USB_DWC_OTG)	+= usb/dwc/
 obj-$(CONFIG_USB)		+= usb/
 obj-$(CONFIG_USB_MUSB_HDRC)	+= usb/musb/
 obj-$(CONFIG_PCI)		+= usb/
drivers/usb/Kconfig +2 -0
index 41b6e51..1daed15 100644
@@ -115,6 +115,8 @@ source "drivers/usb/host/Kconfig"
 
 source "drivers/usb/musb/Kconfig"
 
+source "drivers/usb/dwc/Kconfig"
+
 source "drivers/usb/class/Kconfig"
 
 source "drivers/usb/storage/Kconfig"
drivers/usb/dwc/Kconfig new file +88 -0

88 lines not on this page · raw message

drivers/usb/dwc/Makefile new file +19 -0
new file mode 100644
index 0000000..4102add
@@ -0,0 +1,19 @@
+#
+# OTG infrastructure and transceiver drivers
+#
+obj-$(CONFIG_USB_DWC_OTG)	+= dwc.o
+
+dwc-objs := cil.o cil_intr.o param.o
+
+ifeq ($(CONFIG_4xx_SOC),y)
+dwc-objs += apmppc.o
+endif
+
+ifneq ($(CONFIG_DWC_DEVICE_ONLY),y)
+dwc-objs += hcd.o hcd_intr.o \
+		hcd_queue.o
+endif
+
+ifneq ($(CONFIG_DWC_HOST_ONLY),y)
+dwc-objs += pcd.o pcd_intr.o
+endif
Signature · 1 line
1.6.1.rc3
#1 lore raw

Hello.

Quoted 10 lines · On 02-04-2011 1:56, [email protected] wrote:

From: Tirumala Marri <[email protected]>

Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode.

[...]

Quoted 10 lines
drivers/usb/dwc/Kconfig new file +4 -0
new file mode 100644
index 0000000..a8f22cb
@@ -0,0 +1,88 @@
+#
+# USB Dual Role (OTG-ready) Controller Drivers
+# for silicon based on Synopsys DesignWare IP
+#

[...]

drivers/usb/dwc/Kconfig line 50

Quoted 5 lines
drivers/usb/dwc/Kconfig new file +5 -0
+# enable peripheral support (including with OTG)
+config USB_GADGET_DWC_HDRC
+	bool
+	depends on USB_DWC_OTG&&  (DWC_DEVICE_ONLY || USB_DWC_OTG)
+

I've already told you not to redefine it.

WBR, Sergei