From: Dinh Nguyen <dingu...@altera.com>

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 <gre...@linuxfoundation.org>
Cc: Paul Zimmerman <pa...@synopsys.com>
Cc: Felipe Balbi <ba...@ti.com>
Cc: Ben Dooks <ben-li...@fluff.org>
Cc: Matt Porter <mpor...@linaro.org>
Cc: Kukjin Kim <kgene....@samsung.com>
Cc: Stephen Warren <swar...@wwwdotorg.org>
Cc: Matthijs Kooijman <matth...@stdin.nl>
Cc: Fengguang Wu <fengguang...@intel.com>
Cc: Dan Carpenter <dan.carpen...@oracle.com>
Cc: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Cc: Wolfram Sang <w...@the-dreams.de>
Cc: Yijing Wang <wangyij...@huawei.com>
Cc: Ray Jui <r...@broadcom.com>
Cc: Julien Delacou <julien.dela...@stericsson.com>
Cc: Dom Cobley <popcorn...@gmail.com>
Cc: Rashika Kheria <rashika.khe...@gmail.com>
Cc: Jingoo Han <jg1....@samsung.com>
Cc: Sachin Kamat <sachin.ka...@linaro.org>
Cc: Robert Baldyga <r.bald...@samsung.com>
Cc: Kishon Vijay Abraham I <kis...@ti.com>

-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to