]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
zmx25: Place machine ID into board config
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 23 Sep 2011 02:50:50 +0000 (02:50 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 30 Sep 2011 20:01:05 +0000 (22:01 +0200)
Let common code set the machine ID.

Cc: Matthias Weisser <weisserm@arcor.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/syteco/zmx25/zmx25.c
include/configs/zmx25.h

index a49d8314eb3af5acd3cfc9988931e36855d00333..a89ee1a086bae29bd82afb96d424acea3d0deb59 100644 (file)
@@ -117,8 +117,6 @@ int board_init()
        writel(input_select1, &inputselect->i2c3_ipp_sda_in);   /* I2C3 SDA */
        writel(input_select2, &inputselect->i2c3_ipp_scl_in);   /* I2C3 SCL */
 
-       /* board id for linux */
-       gd->bd->bi_arch_number = MACH_TYPE_ZMX25;
        gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
        return 0;
index 374c88a0f4d51654537412747ccec1b08bc762ca..ab7f30f1e86670ce9ad0c83e778f5ad2a7d00e6e 100644 (file)
@@ -32,6 +32,7 @@
 #define CONFIG_SYS_HZ                  1000
 #define CONFIG_SYS_TEXT_BASE           0xA0000000
 
+#define CONFIG_MACH_TYPE       MACH_TYPE_ZMX25
 /*
  * Environment settings
  */