Patchwork [U-Boot,7/9] ARM: xm250: re-add MACH_TYPE_XM250

login
register
mail settings
Submitter Anatolij Gustschin
Date Nov. 19, 2011, 11:59 a.m.
Message ID <1321703956-4224-8-git-send-email-agust@denx.de>
Download mbox | patch
Permalink /patch/126544/
State Rejected
Delegated to: Albert ARIBAUD
Headers show

Comments

Anatolij Gustschin - Nov. 19, 2011, 11:59 a.m.
MACH_TYPE_XM250 was removed from mach-types.h.
Add it to the board config file.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 board/xm250/xm250.c     |    3 ---
 include/configs/xm250.h |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
Simon Glass - Nov. 19, 2011, 6:01 p.m.
On Sat, Nov 19, 2011 at 3:59 AM, Anatolij Gustschin <agust@denx.de> wrote:
> MACH_TYPE_XM250 was removed from mach-types.h.
> Add it to the board config file.
>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>

I built this and it fixes the failure. I did not test on hardware.

Acked-by: Simon Glass <sjg@chromium.org>

> ---
>  board/xm250/xm250.c     |    3 ---
>  include/configs/xm250.h |    3 +++
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/board/xm250/xm250.c b/board/xm250/xm250.c
> index 3188cf2..ac32176 100644
> --- a/board/xm250/xm250.c
> +++ b/board/xm250/xm250.c
> @@ -60,9 +60,6 @@ board_init (void)
>        dcache_disable();
>        icache_disable();
>
> -       /* arch number of MicroSys XM250 */
> -       gd->bd->bi_arch_number = MACH_TYPE_XM250;
> -
>        /* adress of boot parameters */
>        gd->bd->bi_boot_params = 0xa0000100;
>
> diff --git a/include/configs/xm250.h b/include/configs/xm250.h
> index a35bce3..59a8e69 100644
> --- a/include/configs/xm250.h
> +++ b/include/configs/xm250.h
> @@ -37,6 +37,9 @@
>  #undef CONFIG_USE_IRQ                  /* we don't need IRQ/FIQ stuff  */
>  #define        CONFIG_SYS_TEXT_BASE    0x0
>
> +#define MACH_TYPE_XM250                444
> +#define CONFIG_MACH_TYPE       MACH_TYPE_XM250
> +
>  /* we will never enable dcache, because we have to setup MMU first */
>  #define CONFIG_SYS_DCACHE_OFF
>
> --
> 1.7.5.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>

Patch

diff --git a/board/xm250/xm250.c b/board/xm250/xm250.c
index 3188cf2..ac32176 100644
--- a/board/xm250/xm250.c
+++ b/board/xm250/xm250.c
@@ -60,9 +60,6 @@  board_init (void)
 	dcache_disable();
 	icache_disable();
 
-	/* arch number of MicroSys XM250 */
-	gd->bd->bi_arch_number = MACH_TYPE_XM250;
-
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = 0xa0000100;
 
diff --git a/include/configs/xm250.h b/include/configs/xm250.h
index a35bce3..59a8e69 100644
--- a/include/configs/xm250.h
+++ b/include/configs/xm250.h
@@ -37,6 +37,9 @@ 
 #undef CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff	*/
 #define	CONFIG_SYS_TEXT_BASE	0x0
 
+#define MACH_TYPE_XM250		444
+#define CONFIG_MACH_TYPE	MACH_TYPE_XM250
+
 /* we will never enable dcache, because we have to setup MMU first */
 #define CONFIG_SYS_DCACHE_OFF