]> git.sur5r.net Git - u-boot/commitdiff
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 17a25587d6d11f505e36301fa6139abc725eb678..ebca7b6f368cfc07289c6ca26b0112b2f958037c 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 b5c73571b39d5596e78e46ac087f68259b9d1ee1..d95c0ba444cc060ade2d4ae82d376ac33bc5a9e1 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
  */