[U-Boot] [UBOOT RFC PATCH 02/13] usb: gadget: udc-core: Add minimal udc-core from linux kernel
Felipe Balbi
balbi at ti.com
Mon Aug 18 16:36:37 CEST 2014
On Mon, Aug 18, 2014 at 07:58:24PM +0530, Kishon Vijay Abraham I wrote:
> In order to support multiple USB device controllers in uboot,
> udc-core is needed. udc-core also helps to cleanly link the USB peripheral
> driver with the gadget driver. Hence Ported minimal udc-core from
> linux kernel.
>
> Signed-off-by: Kishon Vijay Abraham I <kishon at ti.com>
> ---
> drivers/usb/gadget/Makefile | 1 +
> drivers/usb/gadget/udc-core.c | 229 ++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 230 insertions(+)
> create mode 100644 drivers/usb/gadget/udc-core.c
>
> diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile
> index 66becdc..74875a2 100644
> --- a/drivers/usb/gadget/Makefile
> +++ b/drivers/usb/gadget/Makefile
> @@ -19,6 +19,7 @@ obj-$(CONFIG_USBDOWNLOAD_GADGET) += g_dnl.o
> obj-$(CONFIG_DFU_FUNCTION) += f_dfu.o
> obj-$(CONFIG_USB_GADGET_MASS_STORAGE) += f_mass_storage.o
> obj-$(CONFIG_CMD_FASTBOOT) += f_fastboot.o
> +obj-y += udc-core.o
> endif
> ifdef CONFIG_USB_ETHER
> obj-y += ether.o
> diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c
> new file mode 100644
> index 0000000..bbe919c
> --- /dev/null
> +++ b/drivers/usb/gadget/udc-core.c
> @@ -0,0 +1,229 @@
> +/**
> + * udc-core.c - Core UDC Framework
> + *
> + * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com
> + *
> + * Author: Felipe Balbi <balbi at ti.com>
> + *
> + * Taken from Linux Kernel v3.16 (drivers/usb/gadget/udc-core.c) and ported
> + * to uboot.
> + *
> + * SPDX-License-Identifier: GPL-2.0+
why are you relicensing this file ? In kernel this is gpl v2 only.
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140818/a7bcc94b/attachment.pgp>
More information about the U-Boot
mailing list