diff mbox series

Kconfig/ehci/zynq: Add ULPI dependency

Message ID 20200123082812.23237-1-oliver@schinagl.nl
State New
Headers show
Series Kconfig/ehci/zynq: Add ULPI dependency | expand

Commit Message

Olliver Schinagl Jan. 23, 2020, 8:28 a.m. UTC
The ZYNQ has an ULPI interface to a USB PHY and thus depends on it.
Prevents the following compilation problem.

	drivers/usb/host/built-in.o: In function `ehci_zynq_probe':
	drivers/usb/host/ehci-zynq.c:53: undefined reference to `ulpi_init'
	drivers/usb/host/ehci-zynq.c:60: undefined reference to `ulpi_write'
	drivers/usb/host/ehci-zynq.c:63: undefined reference to `ulpi_write'
	drivers/usb/host/ehci-zynq.c:66: undefined reference to `ulpi_write'
	drivers/usb/host/ehci-zynq.c:69: undefined reference to `ulpi_write'

Signed-off-by: Olliver Schinagl <oliver at schinagl.nl>
---
 drivers/usb/host/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 0987ff25b1..557264452b 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -196,6 +196,8 @@  config USB_EHCI_TEGRA
 config USB_EHCI_ZYNQ
 	bool "Support for Xilinx Zynq on-chip EHCI USB controller"
 	depends on ARCH_ZYNQ
+	select USB_ULPI
+	select USB_ULPI_VIEWPORT
 	default y
 	---help---
 	  Enable support for Zynq on-chip EHCI USB controller