[U-Boot] [PATCH 1/4] usb: dwc3: fix kconfig

Masahiro Yamada yamada.masahiro at socionext.com
Tue May 17 12:37:03 CEST 2016


2016-05-13 21:23 GMT+09:00 Marek Vasut <marex at denx.de>:
> On 05/13/2016 02:17 PM, Roger Quadros wrote:
>> DWC3 can be used in host only or gadget only mode.
>>
>> Signed-off-by: Roger Quadros <rogerq at ti.com>
>> ---
>>  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)
>
> What happens if I select both USB and USB_GADGET ?
>

Unlike Linux, CONFIG_USB_GADGET depends on CONFIG_USB in U-Boot.

So, (!USB && USB_GADGET) never happens.


-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list