public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [u-boot][RFC v1] sdp4430: Initialize board id using CONFIG_MACH_TYPE
@ 2013-08-06 11:03 Oleksandr Tyshchenko
  2013-08-28 18:25 ` [U-Boot] [U-Boot, u-boot, RFC, " Tom Rini
  0 siblings, 1 reply; 4+ messages in thread
From: Oleksandr Tyshchenko @ 2013-08-06 11:03 UTC (permalink / raw)
  To: u-boot

Use CONFIG_MACH_TYPE generic macro to set the machine type
number in the common arm code instead of setting it in the
board code.

Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
---
 board/ti/sdp4430/sdp.c          |    1 -
 include/configs/omap4_sdp4430.h |    1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c
index 5dd1ba3..9f457e7 100644
--- a/board/ti/sdp4430/sdp.c
+++ b/board/ti/sdp4430/sdp.c
@@ -44,7 +44,6 @@ int board_init(void)
 {
 	gpmc_init();
 
-	gd->bd->bi_arch_number = MACH_TYPE_OMAP_4430SDP;
 	gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */
 
 	return 0;
diff --git a/include/configs/omap4_sdp4430.h b/include/configs/omap4_sdp4430.h
index 9e03291..9a4dea0 100644
--- a/include/configs/omap4_sdp4430.h
+++ b/include/configs/omap4_sdp4430.h
@@ -33,6 +33,7 @@
  * High Level Configuration Options
  */
 #define CONFIG_4430SDP		1	/* working with SDP */
+#define CONFIG_MACH_TYPE	MACH_TYPE_OMAP_4430SDP
 
 #include <configs/omap4_common.h>
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-03 21:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-06 11:03 [U-Boot] [u-boot][RFC v1] sdp4430: Initialize board id using CONFIG_MACH_TYPE Oleksandr Tyshchenko
2013-08-28 18:25 ` [U-Boot] [U-Boot, u-boot, RFC, " Tom Rini
2013-10-03 21:15   ` Albert ARIBAUD
2013-10-03 21:57     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox