From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 29 Feb 2016 09:42:17 -0500 Subject: [U-Boot] [PATCH 03/17] drivers: usb: musb: add ti musb misc driver for wrapper In-Reply-To: <56D445DC.7090307@ti.com> References: <1456717460-3132-1-git-send-email-mugunthanvnm@ti.com> <1456717460-3132-4-git-send-email-mugunthanvnm@ti.com> <56D4336A.908@denx.de> <56D445DC.7090307@ti.com> Message-ID: <20160229144217.GN23166@bill-the-cat> 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, Feb 29, 2016 at 06:51:32PM +0530, Mugunthan V N wrote: > On Monday 29 February 2016 05:32 PM, Marek Vasut wrote: > > On 02/29/2016 04:44 AM, Mugunthan V N wrote: > >> Add a misc driver for MUSB wrapper, so that based on dr_mode the > >> USB devices can bind to USB host or USB device drivers. > >> > >> Signed-off-by: Mugunthan V N > >> --- > >> drivers/usb/musb-new/Kconfig | 9 +++++ > >> drivers/usb/musb-new/Makefile | 1 + > >> drivers/usb/musb-new/ti-musb.c | 89 ++++++++++++++++++++++++++++++++++++++++++ > >> 3 files changed, 99 insertions(+) > >> create mode 100644 drivers/usb/musb-new/ti-musb.c > >> > >> diff --git a/drivers/usb/musb-new/Kconfig b/drivers/usb/musb-new/Kconfig > >> index 6a6cb93..2bcc646 100644 > >> --- a/drivers/usb/musb-new/Kconfig > >> +++ b/drivers/usb/musb-new/Kconfig > >> @@ -13,6 +13,15 @@ config USB_MUSB_GADGET > >> help > >> Enables the MUSB USB dual-role controller in gadget mode. > >> > >> +config USB_MUSB_TI > >> + bool "Enable TI OTG USB controller" > >> + depends on DM_USB > >> + default y > >> + help > >> + Say y here to enable support for the TI OTG USB controller > >> + used on TI SoCs. fadsf fa fad af adf adf asf adfa fad fd af > >> + asdf asdf fadsf asf s > >> + > >> if USB_MUSB_HOST || USB_MUSB_GADGET > >> > >> config USB_MUSB_SUNXI > >> diff --git a/drivers/usb/musb-new/Makefile b/drivers/usb/musb-new/Makefile > >> index 072d516..d137044 100644 > >> --- a/drivers/usb/musb-new/Makefile > >> +++ b/drivers/usb/musb-new/Makefile > >> @@ -11,6 +11,7 @@ obj-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o > >> obj-$(CONFIG_USB_MUSB_AM35X) += am35x.o > >> obj-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o > >> obj-$(CONFIG_USB_MUSB_SUNXI) += sunxi.o > >> +obj-$(CONFIG_USB_MUSB_TI) += ti-musb.o > >> > >> ccflags-y := $(call cc-option,-Wno-unused-variable) \ > >> $(call cc-option,-Wno-unused-but-set-variable) \ > >> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c > >> new file mode 100644 > >> index 0000000..c1a4952 > >> --- /dev/null > >> +++ b/drivers/usb/musb-new/ti-musb.c > >> @@ -0,0 +1,89 @@ > >> +/* > >> + * MISC driver for TI MUSB Glue. > >> + * > >> + * (C) Copyright 2012-2016 > >> + * Texas Instruments Incorporated, > >> + * > >> + * SPDX-License-Identifier: GPL-2.0+ > >> + */ > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> + > >> +DECLARE_GLOBAL_DATA_PTR; > >> + > >> +#ifdef CONFIG_DM_USB > >> + > >> +static const char *const usb_dr_modes[] = { > >> + [USB_DR_MODE_UNKNOWN] = "", > > > > This should probably be "unknown" and not empty string. > > I just the followed the Linux way of DT parse implementation. OK, that sounds like a good reason to keep it the way you did it then. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: