mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 23:21:58 +00:00
usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST
In the usb/dwc3-layerscape driver the first option should be renamed
to the latter as well. Do it.
Fix original logic in dwc3_layerscape_bind() - do not enable
Fixes: 333e4a621d
("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
This commit is contained in:
parent
8999257f21
commit
da93ea6a9a
1 changed files with 2 additions and 3 deletions
|
@ -134,8 +134,7 @@ U_BOOT_DRIVER(dwc3_layerscape_peripheral) = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || \
|
||||
!defined(CONFIG_SPL_BUILD) && defined(CONFIG_USB_HOST)
|
||||
#if CONFIG_IS_ENABLED(USB_HOST)
|
||||
static int dwc3_layerscape_host_probe(struct udevice *dev)
|
||||
{
|
||||
struct xhci_hcor *hcor;
|
||||
|
@ -194,7 +193,7 @@ static int dwc3_layerscape_bind(struct udevice *dev)
|
|||
driver = "dwc3-layerscape-peripheral";
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || !defined(CONFIG_SPL_BUILD)
|
||||
#if defined(CONFIG_SPL_USB_HOST) || !defined(CONFIG_SPL_BUILD)
|
||||
case USB_DR_MODE_HOST:
|
||||
dev_dbg(dev, "Using host mode\n");
|
||||
driver = "dwc3-layerscape-host";
|
||||
|
|
Loading…
Reference in a new issue