summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-09-05 21:44:10 +0300
committerTom Rini <trini@konsulko.com>2023-09-05 21:44:10 +0300
commitc0c08be5468cb26db597932bc69c4eda1129841d (patch)
tree8870ade32200b9e58d897b28b1203ca4dc8837b7
parent34056394ce75cfe02effca5e2127e5caab6df043 (diff)
parent7f4b73fe6939761dd3891b96628efcab47a0570e (diff)
downloadu-boot-c0c08be5468cb26db597932bc69c4eda1129841d.tar.xz
Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-usb
- DWC3 fix on Layerscape
-rw-r--r--drivers/usb/dwc3/dwc3-layerscape.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/dwc3-layerscape.c b/drivers/usb/dwc3/dwc3-layerscape.c
index 79cf71f7a8..c32df2396d 100644
--- a/drivers/usb/dwc3/dwc3-layerscape.c
+++ b/drivers/usb/dwc3/dwc3-layerscape.c
@@ -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 CONFIG_IS_ENABLED(USB_HOST)
case USB_DR_MODE_HOST:
dev_dbg(dev, "Using host mode\n");
driver = "dwc3-layerscape-host";