arm: nvidia and smdk6400: use common code for machine type
authorIgor Grinberg <grinberg@compulab.co.il>
Sun, 3 Jul 2011 23:00:20 +0000 (23:00 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 3 Sep 2011 20:40:45 +0000 (22:40 +0200)
NVIDIA boards and Samsung SMDK6400 already use a local variant of
CONFIG_MACH_TYPE option.
Switch to use the new common code.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
board/nvidia/common/board.c
board/samsung/smdk6400/smdk6400.c
include/configs/smdk6400.h

index 8ab94404d12cf2ffff1f767a5e38f7b04c1d03d4..5eca5eb344b6307518ccef12650e87aa6cc2acf7 100644 (file)
@@ -318,8 +318,6 @@ int board_init(void)
 {
        /* boot param addr */
        gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100);
-       /* board id for Linux */
-       gd->bd->bi_arch_number = CONFIG_MACH_TYPE;
 
        return 0;
 }
index 13c7ed5189a4a473fa323c0cc6c37eae2284676b..c40d1f9b492055f8a9fb1375b1f6c421c64cd17a 100644 (file)
@@ -72,7 +72,6 @@ int board_init(void)
        /* Enable WAIT */
        SROM_BW_REG |= 4 | 8 | 1;
 
-       gd->bd->bi_arch_number = MACH_TYPE;
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
        return 0;
index c9acf5815f1495a49bee207a1117445e76f567fb..d175ed6b36eda8b773958604c1cd5d2eb5dca384 100644 (file)
@@ -65,7 +65,7 @@
 /*
  * Architecture magic and machine type
  */
-#define MACH_TYPE              1270
+#define CONFIG_MACH_TYPE               1270
 
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO