Patchwork [U-Boot] davinci_schmoogie: define CONFIG_MACH_TYPE for davinci_schmoogie board

login
register
mail settings
Submitter Christian Riesch
Date Nov. 19, 2011, 10:45 a.m.
Message ID <1321699544-2235-1-git-send-email-christian.riesch@omicron.at>
Download mbox | patch
Permalink /patch/126535/
State Accepted
Commit ece91e30265764fe4edd61d8c1852d2248e566be
Delegated to: Anatolij Gustschin
Headers show

Comments

Christian Riesch - Nov. 19, 2011, 10:45 a.m.
This patch fixes the build breakage for the davinci_schmoogie board.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sergey Kubushyn <ksi@koi8.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
---
 board/davinci/schmoogie/schmoogie.c |    3 ---
 include/configs/davinci_schmoogie.h |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
Anatolij Gustschin - Nov. 24, 2011, 9:33 p.m.
On Sat, 19 Nov 2011 11:45:42 +0100
Christian Riesch <christian.riesch@omicron.at> wrote:

> This patch fixes the build breakage for the davinci_schmoogie board.
> 
> Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
> Cc: Sergey Kubushyn <ksi@koi8.net>
> Cc: Sandeep Paulraj <s-paulraj@ti.com>
> ---
>  board/davinci/schmoogie/schmoogie.c |    3 ---
>  include/configs/davinci_schmoogie.h |    3 +++
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied to u-boot-staging agust@denx.de. Thanks!

Anatolij

Patch

diff --git a/board/davinci/schmoogie/schmoogie.c b/board/davinci/schmoogie/schmoogie.c
index 8b615a9..52d00e4 100644
--- a/board/davinci/schmoogie/schmoogie.c
+++ b/board/davinci/schmoogie/schmoogie.c
@@ -33,9 +33,6 @@  DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-	/* arch number of the board */
-	gd->bd->bi_arch_number = MACH_TYPE_SCHMOOGIE;
-
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = LINUX_BOOT_PARAM_ADDR;
 
diff --git a/include/configs/davinci_schmoogie.h b/include/configs/davinci_schmoogie.h
index 5eaa198..f4ddbea 100644
--- a/include/configs/davinci_schmoogie.h
+++ b/include/configs/davinci_schmoogie.h
@@ -27,6 +27,9 @@ 
 #define CONFIG_SYS_NAND_LARGEPAGE
 #define CONFIG_SYS_USE_NAND
 #define CONFIG_DISPLAY_CPUINFO
+#define MACH_TYPE_SCHMOOGIE 1255
+#define CONFIG_MACH_TYPE MACH_TYPE_SCHMOOGIE
+
 /*===================*/
 /* SoC Configuration */
 /*===================*/