[U-Boot] [PATCH 03/16] sunxi: adjust usb bases between H3_H5 vs a64

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


A64 doesn't have USB2 and USB3 so defined them only
for H3_H5

Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
 arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
index 2419062..98728f9 100644
--- a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
+++ b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
@@ -66,8 +66,10 @@
 #define SUNXI_USBPHY_BASE		0x01c19000
 #define SUNXI_USB0_BASE			0x01c1a000
 #define SUNXI_USB1_BASE			0x01c1b000
+# if defined(CONFIG_MACH_SUNXI_H3_H5)
 #define SUNXI_USB2_BASE			0x01c1c000
 #define SUNXI_USB3_BASE			0x01c1d000
+# endif
 #else
 #define SUNXI_USB0_BASE			0x01c19000
 #define SUNXI_USB1_BASE			0x01c1a000
-- 
2.7.4



More information about the U-Boot mailing list