imx31_litekit: Place machine ID into board config
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 22 Sep 2011 08:07:17 +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/logicpd/imx31_litekit/imx31_litekit.c
include/configs/imx31_litekit.h

index 0402a0b..7214008 100644 (file)
@@ -70,7 +70,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-       gd->bd->bi_arch_number = MACH_TYPE_MX31LITE; /* board id for linux */
        gd->bd->bi_boot_params = (0x80000100);  /* adress of boot parameters */
 
        return 0;
index 2a02b3d..5e976bc 100644 (file)
@@ -41,6 +41,8 @@
 
 #define CONFIG_SYS_TEXT_BASE   0xa0000000
 
+#define CONFIG_MACH_TYPE       MACH_TYPE_MX31LITE
+
 /* Temporarily disabled */
 #if 0
 #define CONFIG_OF_LIBFDT               1