From: Dinh Nguyen <[email protected]>
Hello,
This patch is my first attempt in combining the Synopsys DWC2 host and the
s3c-hsotg peripheral into a single dual-role driver.
The patch:
* Moves the s3c-hsotg driver into the dwc2 folder.
* Adds the gadget data structure into the dwc2_hsotg data structure.
* Replace the s3c-hsotg.h defines with the hw.h defines in dwc2
* Uses the "otg" clock for both host/peripheral.
* Uses the dwc2_handle_common_intr() IRQ handler for both modes.
I have only been able to test the driver on the SOCFPGA platform, which has
v2.93a of the dual-role core.
Any comments and testing would be greatly appreciated.
Thanks,
Dinh Nguyen (1):
usb: dwc2: Combine the dwc2 and s3c_hsotg into a single USB DRD
driver.
drivers/usb/dwc2/Kconfig | 35 +-
drivers/usb/dwc2/Makefile | 2 +
drivers/usb/dwc2/core.c | 1 +
drivers/usb/dwc2/core.h | 173 ++-
drivers/usb/dwc2/core_intr.c | 134 ++-
drivers/usb/dwc2/hcd.c | 7 +-
drivers/usb/dwc2/hcd.h | 1 +
drivers/usb/dwc2/hw.h | 23 +-
drivers/usb/dwc2/platform.c | 49 +-
drivers/usb/{gadget => dwc2}/s3c-hsotg.c | 1835 ++++++++++++------------------
drivers/usb/gadget/Kconfig | 7 -
drivers/usb/gadget/Makefile | 1 -
drivers/usb/gadget/s3c-hsotg.h | 378 ------
13 files changed, 1088 insertions(+), 1558 deletions(-)
rename drivers/usb/{gadget => dwc2}/s3c-hsotg.c (57%)
delete mode 100644 drivers/usb/gadget/s3c-hsotg.h
---
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Paul Zimmerman <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: Matt Porter <[email protected]>
Cc: Kukjin Kim <[email protected]>
Cc: Stephen Warren <[email protected]>
Cc: Matthijs Kooijman <[email protected]>
Cc: Fengguang Wu <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Wei Yongjun <[email protected]>
Cc: Wolfram Sang <[email protected]>
Cc: Yijing Wang <[email protected]>
Cc: Ray Jui <[email protected]>
Cc: Julien Delacou <[email protected]>
Cc: Dom Cobley <[email protected]>
Cc: Rashika Kheria <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Sachin Kamat <[email protected]>
Cc: Robert Baldyga <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html