]> git.sur5r.net Git - u-boot/commitdiff
mx31ads: Place machine ID into board config
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 22 Sep 2011 08:07:16 +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>
board/freescale/mx31ads/mx31ads.c
include/configs/mx31ads.h

index 4d99f491b7b50a52dc857171405541913cd2bbf1..4dd1e63a839d186c2240aadfa174922920351fa2 100644 (file)
@@ -99,7 +99,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-       gd->bd->bi_arch_number = MACH_TYPE_MX31ADS;     /* board id for linux */
        gd->bd->bi_boot_params = 0x80000100;    /* adress of boot parameters */
 
        return 0;
index adb2ee1ce9a8dc630fb7640dd027ffd15ac723a8..0bea8589b6cdbde30a8e8f933621f5beb0ca19a1 100644 (file)
@@ -35,6 +35,8 @@
 
 #define CONFIG_SYS_TEXT_BASE           0xA0000000
 
+#define CONFIG_MACH_TYPE       MACH_TYPE_MX31ADS
+
 /*
  * Disabled for now due to build problems under Debian and a significant increase
  * in the final file size: 144260 vs. 109536 Bytes.