Patchwork [U-Boot,2/4] zmx25: Place machine ID into board config

login
register
mail settings
Submitter Fabio Estevam
Date Sept. 23, 2011, 12:50 p.m.
Message ID <1316782252-29098-2-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/116058/
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Comments

Fabio Estevam - Sept. 23, 2011, 12:50 p.m.
Let common code set the machine ID.

Cc: Matthias Weisser <weisserm@arcor.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/syteco/zmx25/zmx25.c |    2 --
 include/configs/zmx25.h    |    1 +
 2 files changed, 1 insertions(+), 2 deletions(-)

Patch

diff --git a/board/syteco/zmx25/zmx25.c b/board/syteco/zmx25/zmx25.c
index a49d831..a89ee1a 100644
--- a/board/syteco/zmx25/zmx25.c
+++ b/board/syteco/zmx25/zmx25.c
@@ -117,8 +117,6 @@  int board_init()
 	writel(input_select1, &inputselect->i2c3_ipp_sda_in);	/* I2C3 SDA */
 	writel(input_select2, &inputselect->i2c3_ipp_scl_in);	/* I2C3 SCL */
 
-	/* board id for linux */
-	gd->bd->bi_arch_number = MACH_TYPE_ZMX25;
 	gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
 	return 0;
diff --git a/include/configs/zmx25.h b/include/configs/zmx25.h
index 0c217b8..70c85ac 100644
--- a/include/configs/zmx25.h
+++ b/include/configs/zmx25.h
@@ -34,6 +34,7 @@ 
 
 #define CONFIG_DISPLAY_CPUINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_ZMX25
 /*
  * Environment settings
  */