]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
SMDKV310: Initialize board id using CONFIG_MACH_TYPE
authorChander Kashyap <chander.kashyap@linaro.org>
Tue, 20 Sep 2011 21:25:01 +0000 (21:25 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:20 +0000 (22:56 +0100)
Use CONFIG_MACH_TYPE generic macro to initialize board id.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/smdkv310/smdkv310.c
include/configs/smdkv310.h

index e0b89dd55b429199c7594c640078b062f7a8e6df..4478b0b3e501de76a1a487c3c7e21b5e133cc4cd 100644 (file)
@@ -57,7 +57,6 @@ int board_init(void)
 
        smc9115_pre_init();
 
-       gd->bd->bi_arch_number = MACH_TYPE_SMDKV310;
        gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
        return 0;
 }
index 59c9fdb1958d183817188aa864df76adb00a162e..d59c784e94682f74f97c6895c82160a9467696e4 100644 (file)
@@ -37,6 +37,9 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+/* Mach Type */
+#define CONFIG_MACH_TYPE               MACH_TYPE_SMDKV310
+
 /* Keep L2 Cache Disabled */
 #define CONFIG_L2_OFF                  1