[U-Boot] [UBOOT RFC PATCH 04/13] usb: dwc3: Add dwc3 driver

Kishon Vijay Abraham I kishon at ti.com
Tue Aug 19 17:19:04 CEST 2014



On Monday 18 August 2014 08:07 PM, Felipe Balbi wrote:
> 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 <kishon at ti.com>
>> ---
>>  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 <balbi at ti.com>,
>> + *	    Sebastian Andrzej Siewior <bigeasy at linutronix.de>
>> + *
>> + * 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.

sure.

Thanks
Kishon
> 


More information about the U-Boot mailing list