Patchwork [U-Boot,4/9] ARM: pleb2: re-add MACH_TYPE_PLEB2

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

Comments

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

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 board/pleb2/pleb2.c     |    3 ---
 include/configs/pleb2.h |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
Simon Glass - Nov. 19, 2011, 5:57 p.m.
On Sat, Nov 19, 2011 at 3:59 AM, Anatolij Gustschin <agust@denx.de> wrote:
> MACH_TYPE_PLEB2 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/pleb2/pleb2.c     |    3 ---
>  include/configs/pleb2.h |    3 +++
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/board/pleb2/pleb2.c b/board/pleb2/pleb2.c
> index 5a16cc7..ebb6180 100644
> --- a/board/pleb2/pleb2.c
> +++ b/board/pleb2/pleb2.c
> @@ -40,9 +40,6 @@ int board_init (void)
>        dcache_disable();
>        icache_disable();
>
> -       /* arch number of Lubbock-Board */
> -       gd->bd->bi_arch_number = MACH_TYPE_PLEB2;
> -
>        /* adress of boot parameters */
>        gd->bd->bi_boot_params = 0xa0000100;
>
> diff --git a/include/configs/pleb2.h b/include/configs/pleb2.h
> index 2aeb7fb..4031d61 100644
> --- a/include/configs/pleb2.h
> +++ b/include/configs/pleb2.h
> @@ -43,6 +43,9 @@
>
>  #undef CONFIG_USE_IRQ                  /* we don't need IRQ/FIQ stuff */
>
> +#define MACH_TYPE_PLEB2                587
> +#define CONFIG_MACH_TYPE       MACH_TYPE_PLEB2
> +
>  /* 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
>
Marek Vasut - Nov. 21, 2011, 10:29 p.m.
> MACH_TYPE_PLEB2 was removed from mach-types.h.
> Add it to the board config file.
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  board/pleb2/pleb2.c     |    3 ---
>  include/configs/pleb2.h |    3 +++
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/board/pleb2/pleb2.c b/board/pleb2/pleb2.c
> index 5a16cc7..ebb6180 100644
> --- a/board/pleb2/pleb2.c
> +++ b/board/pleb2/pleb2.c
> @@ -40,9 +40,6 @@ int board_init (void)
>  	dcache_disable();
>  	icache_disable();
> 
> -	/* arch number of Lubbock-Board */
> -	gd->bd->bi_arch_number = MACH_TYPE_PLEB2;
> -
>  	/* adress of boot parameters */
>  	gd->bd->bi_boot_params = 0xa0000100;
> 
> diff --git a/include/configs/pleb2.h b/include/configs/pleb2.h
> index 2aeb7fb..4031d61 100644
> --- a/include/configs/pleb2.h
> +++ b/include/configs/pleb2.h
> @@ -43,6 +43,9 @@
> 
>  #undef CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff 
*/
> 
> +#define MACH_TYPE_PLEB2		587
> +#define CONFIG_MACH_TYPE	MACH_TYPE_PLEB2
> +
>  /* we will never enable dcache, because we have to setup MMU first */
>  #define CONFIG_SYS_DCACHE_OFF

I don't even see maintainer entry for this one ... good bye ?

M

Patch

diff --git a/board/pleb2/pleb2.c b/board/pleb2/pleb2.c
index 5a16cc7..ebb6180 100644
--- a/board/pleb2/pleb2.c
+++ b/board/pleb2/pleb2.c
@@ -40,9 +40,6 @@  int board_init (void)
 	dcache_disable();
 	icache_disable();
 
-	/* arch number of Lubbock-Board */
-	gd->bd->bi_arch_number = MACH_TYPE_PLEB2;
-
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = 0xa0000100;
 
diff --git a/include/configs/pleb2.h b/include/configs/pleb2.h
index 2aeb7fb..4031d61 100644
--- a/include/configs/pleb2.h
+++ b/include/configs/pleb2.h
@@ -43,6 +43,9 @@ 
 
 #undef CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff */
 
+#define MACH_TYPE_PLEB2		587
+#define CONFIG_MACH_TYPE	MACH_TYPE_PLEB2
+
 /* we will never enable dcache, because we have to setup MMU first */
 #define CONFIG_SYS_DCACHE_OFF