From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kishon Vijay Abraham I Date: Tue, 19 Aug 2014 20:28:38 +0530 Subject: [U-Boot] [UBOOT RFC PATCH 02/13] usb: gadget: udc-core: Add minimal udc-core from linux kernel In-Reply-To: <20140818143636.GD9662@saruman.home> References: <1408372115-4570-1-git-send-email-kishon@ti.com> <1408372115-4570-3-git-send-email-kishon@ti.com> <20140818143636.GD9662@saruman.home> Message-ID: <53F3661E.20400@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 18 August 2014 08:06 PM, Felipe Balbi wrote: > 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 >> --- >> 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 >> + * >> + * 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. ah.. copy paste error. Will fix it. Thanks Kishon >