public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: a320evb: define mach-type in board config file
@ 2011-11-08  5:40 Andrew Chen
  2011-11-11  4:52 ` Andrew Yan-Pai Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Chen @ 2011-11-08  5:40 UTC (permalink / raw)
  To: u-boot

From: Yan-Pai Chen <ypchen@faraday-tech.com>

MACH_TYPE_FARADAY was dropped from mach-types.h. Add it back to
board config file.

Signed-off-by: Yan-Pai Chen <ypchen@faraday-tech.com>
---
 board/faraday/a320evb/a320evb.c |    1 -
 include/configs/a320evb.h       |    6 ++++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/board/faraday/a320evb/a320evb.c b/board/faraday/a320evb/a320evb.c
index 2578be4..dfd186b 100644
--- a/board/faraday/a320evb/a320evb.c
+++ b/board/faraday/a320evb/a320evb.c
@@ -31,7 +31,6 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_FARADAY;
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
 	ftsmc020_init();	/* initialize Flash */
diff --git a/include/configs/a320evb.h b/include/configs/a320evb.h
index 45a7c53..1fafbed 100644
--- a/include/configs/a320evb.h
+++ b/include/configs/a320evb.h
@@ -25,6 +25,12 @@
 #include <asm/arch/a320.h>
 
 /*
+ * mach-type definition
+ */
+#define MACH_TYPE_FARADAY	758
+#define CONFIG_MACH_TYPE	MACH_TYPE_FARADAY
+
+/*
  * Linux kernel tagged list
  */
 #define CONFIG_CMDLINE_TAG
-- 
1.7.4.1

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

* [U-Boot] [PATCH] arm: a320evb: define mach-type in board config file
  2011-11-08  5:40 [U-Boot] [PATCH] arm: a320evb: define mach-type in board config file Andrew Chen
@ 2011-11-11  4:52 ` Andrew Yan-Pai Chen
  2011-11-11  6:43 ` Igor Grinberg
  2011-11-24 21:31 ` Anatolij Gustschin
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew Yan-Pai Chen @ 2011-11-11  4:52 UTC (permalink / raw)
  To: u-boot

On Tue, Nov 8, 2011 at 1:40 PM, Andrew Chen <yanpai.chen@gmail.com> wrote:
> From: Yan-Pai Chen <ypchen@faraday-tech.com>
>
> MACH_TYPE_FARADAY was dropped from mach-types.h. Add it back to
> board config file.
>
> Signed-off-by: Yan-Pai Chen <ypchen@faraday-tech.com>
> ---
> ?board/faraday/a320evb/a320evb.c | ? ?1 -
> ?include/configs/a320evb.h ? ? ? | ? ?6 ++++++
> ?2 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/board/faraday/a320evb/a320evb.c b/board/faraday/a320evb/a320evb.c
> index 2578be4..dfd186b 100644
> --- a/board/faraday/a320evb/a320evb.c
> +++ b/board/faraday/a320evb/a320evb.c
> @@ -31,7 +31,6 @@ DECLARE_GLOBAL_DATA_PTR;
>
> ?int board_init(void)
> ?{
> - ? ? ? gd->bd->bi_arch_number = MACH_TYPE_FARADAY;
> ? ? ? ?gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
>
> ? ? ? ?ftsmc020_init(); ? ? ? ?/* initialize Flash */
> diff --git a/include/configs/a320evb.h b/include/configs/a320evb.h
> index 45a7c53..1fafbed 100644
> --- a/include/configs/a320evb.h
> +++ b/include/configs/a320evb.h
> @@ -25,6 +25,12 @@
> ?#include <asm/arch/a320.h>
>
> ?/*
> + * mach-type definition
> + */
> +#define MACH_TYPE_FARADAY ? ? ?758
> +#define CONFIG_MACH_TYPE ? ? ? MACH_TYPE_FARADAY
> +
> +/*
> ?* Linux kernel tagged list
> ?*/
> ?#define CONFIG_CMDLINE_TAG
> --
> 1.7.4.1
>
>

Hi All,

Is this OK?


-- 
BR,
Andrew

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

* [U-Boot] [PATCH] arm: a320evb: define mach-type in board config file
  2011-11-08  5:40 [U-Boot] [PATCH] arm: a320evb: define mach-type in board config file Andrew Chen
  2011-11-11  4:52 ` Andrew Yan-Pai Chen
@ 2011-11-11  6:43 ` Igor Grinberg
  2011-11-24 21:31 ` Anatolij Gustschin
  2 siblings, 0 replies; 4+ messages in thread
From: Igor Grinberg @ 2011-11-11  6:43 UTC (permalink / raw)
  To: u-boot

On 11/08/11 07:40, Andrew Chen wrote:
> From: Yan-Pai Chen <ypchen@faraday-tech.com>
> 
> MACH_TYPE_FARADAY was dropped from mach-types.h. Add it back to
> board config file.
> 
> Signed-off-by: Yan-Pai Chen <ypchen@faraday-tech.com>

Acked-by: Igor Grinberg <grinberg@compulab.co.il>

> ---
>  board/faraday/a320evb/a320evb.c |    1 -
>  include/configs/a320evb.h       |    6 ++++++
>  2 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/board/faraday/a320evb/a320evb.c b/board/faraday/a320evb/a320evb.c
> index 2578be4..dfd186b 100644
> --- a/board/faraday/a320evb/a320evb.c
> +++ b/board/faraday/a320evb/a320evb.c
> @@ -31,7 +31,6 @@ DECLARE_GLOBAL_DATA_PTR;
>  
>  int board_init(void)
>  {
> -	gd->bd->bi_arch_number = MACH_TYPE_FARADAY;
>  	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
>  
>  	ftsmc020_init();	/* initialize Flash */
> diff --git a/include/configs/a320evb.h b/include/configs/a320evb.h
> index 45a7c53..1fafbed 100644
> --- a/include/configs/a320evb.h
> +++ b/include/configs/a320evb.h
> @@ -25,6 +25,12 @@
>  #include <asm/arch/a320.h>
>  
>  /*
> + * mach-type definition
> + */
> +#define MACH_TYPE_FARADAY	758
> +#define CONFIG_MACH_TYPE	MACH_TYPE_FARADAY
> +
> +/*
>   * Linux kernel tagged list
>   */
>  #define CONFIG_CMDLINE_TAG

-- 
Regards,
Igor.

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

* [U-Boot] [PATCH] arm: a320evb: define mach-type in board config file
  2011-11-08  5:40 [U-Boot] [PATCH] arm: a320evb: define mach-type in board config file Andrew Chen
  2011-11-11  4:52 ` Andrew Yan-Pai Chen
  2011-11-11  6:43 ` Igor Grinberg
@ 2011-11-24 21:31 ` Anatolij Gustschin
  2 siblings, 0 replies; 4+ messages in thread
From: Anatolij Gustschin @ 2011-11-24 21:31 UTC (permalink / raw)
  To: u-boot

On Tue,  8 Nov 2011 13:40:25 +0800
Andrew Chen <yanpai.chen@gmail.com> wrote:

> From: Yan-Pai Chen <ypchen@faraday-tech.com>
> 
> MACH_TYPE_FARADAY was dropped from mach-types.h. Add it back to
> board config file.
> 
> Signed-off-by: Yan-Pai Chen <ypchen@faraday-tech.com>
> ---
>  board/faraday/a320evb/a320evb.c |    1 -
>  include/configs/a320evb.h       |    6 ++++++
>  2 files changed, 6 insertions(+), 1 deletions(-)

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

Anatolij

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

end of thread, other threads:[~2011-11-24 21:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08  5:40 [U-Boot] [PATCH] arm: a320evb: define mach-type in board config file Andrew Chen
2011-11-11  4:52 ` Andrew Yan-Pai Chen
2011-11-11  6:43 ` Igor Grinberg
2011-11-24 21:31 ` Anatolij Gustschin

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