[PATCH] Kconfig/ehci/zynq: Add ULPI dependency

Olliver Schinagl oliver at schinagl.nl
Thu Jan 23 09:28:12 CET 2020


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 --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
-- 
2.20.1



More information about the U-Boot mailing list