From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Date: Mon, 18 Aug 2014 09:37:34 -0500 Subject: [U-Boot] [UBOOT RFC PATCH 04/13] usb: dwc3: Add dwc3 driver In-Reply-To: <1408372115-4570-5-git-send-email-kishon@ti.com> References: <1408372115-4570-1-git-send-email-kishon@ti.com> <1408372115-4570-5-git-send-email-kishon@ti.com> Message-ID: <20140818143734.GE9662@saruman.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Aug 18, 2014 at 07:58:26PM +0530, Kishon Vijay Abraham I wrote: > Ported dwc3 driver from linux kernel to uboot. > > Signed-off-by: Kishon Vijay Abraham I > --- > Makefile | 1 + > drivers/usb/dwc3/Makefile | 7 + > drivers/usb/dwc3/core.c | 640 +++++++++ > drivers/usb/dwc3/core.h | 961 +++++++++++++ > drivers/usb/dwc3/ep0.c | 1045 ++++++++++++++ > drivers/usb/dwc3/gadget.c | 2841 +++++++++++++++++++++++++++++++++++++++ > drivers/usb/dwc3/gadget.h | 163 +++ > drivers/usb/dwc3/io.h | 52 + > drivers/usb/dwc3/linux-compat.h | 132 ++ > include/dwc3-uboot.h | 26 + > 10 files changed, 5868 insertions(+) > create mode 100644 drivers/usb/dwc3/Makefile > create mode 100644 drivers/usb/dwc3/core.c > create mode 100644 drivers/usb/dwc3/core.h > create mode 100644 drivers/usb/dwc3/ep0.c > create mode 100644 drivers/usb/dwc3/gadget.c > create mode 100644 drivers/usb/dwc3/gadget.h > create mode 100644 drivers/usb/dwc3/io.h > create mode 100644 drivers/usb/dwc3/linux-compat.h > create mode 100644 include/dwc3-uboot.h > > diff --git a/Makefile b/Makefile > index cf810a9..c9a18d3 100644 > --- a/Makefile > +++ b/Makefile > @@ -645,6 +645,7 @@ libs-y += drivers/spi/ > libs-$(CONFIG_FMAN_ENET) += drivers/net/fm/ > libs-$(CONFIG_SYS_FSL_DDR) += drivers/ddr/fsl/ > libs-y += drivers/serial/ > +libs-y += drivers/usb/dwc3/ > libs-y += drivers/usb/eth/ > libs-y += drivers/usb/gadget/ > libs-y += drivers/usb/host/ > diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile > new file mode 100644 > index 0000000..fbfa0df > --- /dev/null > +++ b/drivers/usb/dwc3/Makefile > @@ -0,0 +1,7 @@ > +ccflags-$(CONFIG_USB_DWC3_DEBUG) := -DDEBUG > +ccflags-$(CONFIG_USB_DWC3_VERBOSE) += -DVERBOSE_DEBUG > + > +obj-$(CONFIG_USB_DWC3) += dwc3.o > + > +dwc3-y := core.o > +dwc3-$(CONFIG_USB_DWC3_GADGET) += gadget.o ep0.o > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > new file mode 100644 > index 0000000..66bbe92 > --- /dev/null > +++ b/drivers/usb/dwc3/core.c > @@ -0,0 +1,640 @@ > +/** > + * core.c - DesignWare USB3 DRD Controller Core file > + * > + * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com > + * > + * Authors: Felipe Balbi , > + * Sebastian Andrzej Siewior > + * > + * Taken from Linux Kernel v3.16 (drivers/usb/dwc3/core.c) and ported > + * to uboot. > + * > + * SPDX-License-Identifier: GPL-2.0+ same here. Please review all patches to make sure license is correct. -- balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: