vision2: Place machine ID into board config
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 23 Sep 2011 02:50:51 +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: Stefano Babic <sbabic@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
board/ttcontrol/vision2/vision2.c
include/configs/vision2.h

index 17a2558..ebca7b6 100644 (file)
@@ -653,7 +653,6 @@ void lcd_enable(void)
 
 int board_init(void)
 {
-       gd->bd->bi_arch_number = MACH_TYPE_TTC_VISION2; /* board id for linux */
        /* address of boot parameters */
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
index b5c7357..d95c0ba 100644 (file)
@@ -41,6 +41,8 @@
 #define CONFIG_INITRD_TAG
 #define BOARD_LATE_INIT
 
+#define CONFIG_MACH_TYPE       MACH_TYPE_TTC_VISION2
+
 /*
  * Size of malloc() pool
  */