[U-Boot] [PATCH 4/4] efikamx: Place machine ID into board config

Fabio Estevam fabio.estevam at freescale.com
Fri Sep 23 14:50:52 CEST 2011


Let common code set the machine ID.

Cc: Marek Vasut <marek.vasut at gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 board/efikamx/efikamx.c   |    1 -
 include/configs/efikamx.h |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/board/efikamx/efikamx.c b/board/efikamx/efikamx.c
index 5be1f6c..be2a9a1 100644
--- a/board/efikamx/efikamx.c
+++ b/board/efikamx/efikamx.c
@@ -607,7 +607,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX51_EFIKAMX;
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
 	return 0;
diff --git a/include/configs/efikamx.h b/include/configs/efikamx.h
index fdd0a14..0b5d2dc 100644
--- a/include/configs/efikamx.h
+++ b/include/configs/efikamx.h
@@ -40,6 +40,8 @@
 
 #define CONFIG_SYS_TEXT_BASE		0x97800000
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX51_EFIKAMX
+
 /*
  * Bootloader Components Configuration
  */
-- 
1.6.0.4




More information about the U-Boot mailing list