mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
usb: dwc3: Fix enabling USB_DR_MODE_HOST
The original logic always enables USB_DR_MODE_HOST operation mode in
dwc3_layerscape_bind() in u-boot. Prevent choosing USB_DR_MODE_HOST
operation mode if USB_HOST is not enabled.
Fixes: 2b0b51d0be
("usb: dwc3: add layerscape support")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
This commit is contained in:
parent
da93ea6a9a
commit
7f4b73fe69
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ static int dwc3_layerscape_bind(struct udevice *dev)
|
|||
driver = "dwc3-layerscape-peripheral";
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_SPL_USB_HOST) || !defined(CONFIG_SPL_BUILD)
|
||||
#if CONFIG_IS_ENABLED(USB_HOST)
|
||||
case USB_DR_MODE_HOST:
|
||||
dev_dbg(dev, "Using host mode\n");
|
||||
driver = "dwc3-layerscape-host";
|
||||
|
|
Loading…
Reference in a new issue