sunxi: Add CONFIG_MACH_TYPE defines to sun4i, sun5i and sun7i
authorHans de Goede <hdegoede@redhat.com>
Mon, 13 Oct 2014 05:41:16 +0000 (07:41 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 24 Oct 2014 07:35:38 +0000 (09:35 +0200)
Many people are still using old linux-sunxi-3.4 kernels on sunxi devices,
adding the proper MACH_TYPE defines for this allows people to switch to
upstream u-boot, so that we can stop maintaining the linux-sunxi u-boot fork.

These machine-ids are all properly registered at:

http://www.arm.linux.org.uk/developer/machines/

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
include/configs/sun4i.h
include/configs/sun5i.h
include/configs/sun7i.h

index 5611ecc85f22bf3f3d949211c54cabc3eb54db92..d0191a32b1a6d99807cf75becf4821f2e6879cfd 100644 (file)
@@ -15,6 +15,7 @@
 #define CONFIG_CLK_FULL_SPEED          1008000000
 
 #define CONFIG_SYS_PROMPT              "sun4i# "
+#define CONFIG_MACH_TYPE               4104
 
 #ifdef CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_SUNXI
index 6066371a17d8d172c62d00cff4f4a508c5de53ee..7b683e9c8908394e56072d545f873d0e5f798c6a 100644 (file)
@@ -15,6 +15,7 @@
 #define CONFIG_CLK_FULL_SPEED          1008000000
 
 #define CONFIG_SYS_PROMPT              "sun5i# "
+#define CONFIG_MACH_TYPE               4138
 
 #ifdef CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_SUNXI
index a902b845744707e64fb5a064c6039bc93b0150d9..966cbd8e83f6cb2659f64798cfeb502a1b5e6aa4 100644 (file)
@@ -16,6 +16,7 @@
 #define CONFIG_CLK_FULL_SPEED          912000000
 
 #define CONFIG_SYS_PROMPT              "sun7i# "
+#define CONFIG_MACH_TYPE               4283
 
 #ifdef CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_SUNXI