[U-Boot] [PATCH 09/16] sunxi: usb_phy: Update a64 sunxi_usb_phy base

Jagan Teki jagan at amarulasolutions.com
Tue Dec 12 06:58:24 UTC 2017


a64 has shared PHY#0(for OTG and USB-OTG-HCI) which start at
0x01C19000 which different than other allwinner SOC, so
update the same for sunxi_usb_phy[0] base.

Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
 arch/arm/mach-sunxi/usb_phy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-sunxi/usb_phy.c b/arch/arm/mach-sunxi/usb_phy.c
index 4bc47a1..cc66446 100644
--- a/arch/arm/mach-sunxi/usb_phy.c
+++ b/arch/arm/mach-sunxi/usb_phy.c
@@ -63,7 +63,11 @@ static struct sunxi_usb_phy {
 	{
 		.usb_rst_mask = CCM_USB_CTRL_PHY0_RST | CCM_USB_CTRL_PHY0_CLK,
 		.id = 0,
+#ifdef CONFIG_MACH_SUN50I
+		.base = SUNXI_USBPHY_BASE,
+#else
 		.base = SUNXI_USB0_BASE,
+#endif
 	},
 	{
 		.usb_rst_mask = CCM_USB_CTRL_PHY1_RST | CCM_USB_CTRL_PHY1_CLK,
-- 
2.7.4



More information about the U-Boot mailing list