[U-Boot,v1,3/5] usb, ohci-hcd: set OHCI_USE_NPS if DM_PCI
diff mbox series

Message ID 20190716084907.1568340-4-hs@denx.de
State Accepted
Commit dc4e48d845d9971d2b21f99c12f874dd06cedc0a
Delegated to: Marek Vasut
Headers show
Series
  • usb, ohci-hcd: add usb ohci pci DM driver
Related show

Commit Message

Heiko Schocher July 16, 2019, 8:49 a.m. UTC
set OHCI_USE_NPS if DM_PCI is enabled.

Signed-off-by: Heiko Schocher <hs@denx.de>
---

 drivers/usb/host/ohci-hcd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index bd498da096..23ea2af5d7 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -50,8 +50,9 @@ 
 #endif
 
 #if defined(CONFIG_CPU_ARM920T) || \
-    defined(CONFIG_PCI_OHCI) || \
-    defined(CONFIG_SYS_OHCI_USE_NPS)
+	defined(CONFIG_PCI_OHCI) || \
+	defined(CONFIG_DM_PCI) || \
+	defined(CONFIG_SYS_OHCI_USE_NPS)
 # define OHCI_USE_NPS		/* force NoPowerSwitching mode */
 #endif