mx53loco: Place machine ID into board config
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 22 Sep 2011 08:07:19 +0000 (08:07 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 30 Sep 2011 20:01:04 +0000 (22:01 +0200)
Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu <jason.hui@linaro.org>
board/freescale/mx53loco/mx53loco.c
include/configs/mx53loco.h

index ade100608d1cb69f3ad2238e6cb094c3051bf02c..156f8b5a3aca81c070cac58baa7746d9d08d2526 100644 (file)
@@ -288,7 +288,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-       gd->bd->bi_arch_number = MACH_TYPE_MX53_LOCO;
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
        return 0;
index cfb38a5673ab93ae1d650e6fa389e9f11034ed86..4091703732ed63da5d29be7ddd312196ffb6e856 100644 (file)
@@ -30,6 +30,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE       MACH_TYPE_MX53_LOCO
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG