[U-Boot] [PATCH v3 13/30] configs: sun50i: Set proper USB PHY count for H5
Jagan Teki
jagannadh.teki at gmail.com
Sun Jan 28 16:19:34 UTC 2018
Like Allwinner H3 even H5 as integrates with 4 USB PHYs
which are connected as:
PHY#0: shared between USB-OTG_DEVICE and USB_OTG_EHCI0/OHCI0
PHY#1: USB-HCI1(EHCI1/OHCI1)
PHY#2: USB-HCI2(EHCI2/OHCI2)
PHY#3: USB-HCI3(EHCI3/OHCI3)
Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
include/configs/sun50i.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/configs/sun50i.h b/include/configs/sun50i.h
index 870cab8..c9dd5f7 100644
--- a/include/configs/sun50i.h
+++ b/include/configs/sun50i.h
@@ -15,7 +15,11 @@
#define CONFIG_USB_EHCI_SUNXI
#endif
-#define CONFIG_SUNXI_USB_PHYS 1
+#ifdef CONFIG_MACH_SUNXI_H3_H5
+# define CONFIG_SUNXI_USB_PHYS 4
+#else
+# define CONFIG_SUNXI_USB_PHYS 1
+#endif
#define GICD_BASE 0x1c81000
#define GICC_BASE 0x1c82000
--
2.7.4
More information about the U-Boot
mailing list