Hi.
2016-05-13 21:17 GMT+09:00 Roger Quadros <[email protected]>: > DWC3 can be used in host only or gadget only mode. > > Signed-off-by: Roger Quadros <[email protected]> > --- > drivers/usb/dwc3/Kconfig | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig > index e93398f..caf695b 100644 > --- a/drivers/usb/dwc3/Kconfig > +++ b/drivers/usb/dwc3/Kconfig > @@ -1,15 +1,16 @@ > config USB_DWC3 > bool "DesignWare USB3 DRD Core Support" > - depends on (USB && USB_GADGET) > - select USB_GADGET_DUALSPEED > + depends on (USB || USB_GADGET) > + select USB_GADGET_DUALSPEED if USB_GADGET > help > - Say Y here if your system has a Dual Role SuperSpeed > - USB controller based on the DesignWare USB3 IP Core. > + Say Y here if your system has DesignWare USB3 IP Core. > > if USB_DWC3 > > choice > bool "DWC3 Mode Selection" > + default USB_DWC3_HOST if (USB && !USB_GADGET) > + default USB_DWC3_GADGET if (!USB && USB_GADGET) > > config USB_DWC3_HOST > bool "Host only mode" > -- > 2.7.4 > > _______________________________________________ > U-Boot mailing list > [email protected] > http://lists.denx.de/mailman/listinfo/u-boot Please note the following commit changed the meaning of CONFIG_USB. commit 68f7c5db2d1e714c15b49b0759ddef8f8344f184 Author: Paul Kocialkowski <[email protected]> AuthorDate: Tue Aug 4 17:04:05 2015 +0200 Commit: Marek Vasut <[email protected]> CommitDate: Wed Aug 5 17:20:34 2015 +0200 usb: Generic USB Kconfig option, that fits both host and gadget and comments There is no particular reason why the USB Kconfig option should be specific host mode. In prevision of adding MUSB host and gadget to Kconfig, this move the title and help message of the USB Kconfig option to a more generic forma Adding comments to the usb Kconfig allows for a better separation and more readability in generated configs and in menuconfig. Signed-off-by: Paul Kocialkowski <[email protected]> In Linux, CONFIG_USB enables the host mode of USB. So, "depends on (USB || USB_GADGET)" makes sense. In U-Boot, since the commit above, CONFIG_USB enables the whole of USB frame-work, including host, gadget. USB_DWC3 already resides inside of if USB ... endif so, depends on (USB || USB_GADGET) does not make sense. -- Best Regards Masahiro Yamada _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

