arm: a320evb: define mach-type in board config file
PATCH 1/1 arm: a320evb: define mach-type in board config file
From: Yan-Pai Chen <[email protected]>
MACH_TYPE_FARADAY was dropped from mach-types.h. Add it back to board config file.
--- board/faraday/a320evb/a320evb.c | 1 - include/configs/a320evb.h | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletions(-)
board/faraday/a320evb/a320evb.c +0 -1
@@ -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 */
include/configs/a320evb.h +6 -0
@@ -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
Signature · 1 line
1.7.4.1
PATCH 1/1 arm: a320evb: define mach-type in board config file
Quoted 37 lines · Andrew Chen
From: Yan-Pai Chen <[email protected]>
MACH_TYPE_FARADAYwas dropped frommach-types.h. Add it back to board config file.Signed-off-by Yan-Pai Chen <[email protected]>---
?board/faraday/a320evb/a320evb.c | ? ?1 -
?include/configs/a320evb.h ? ? ? | ? ?6 ++++++
?2 files changed, 6 insertions(+), 1 deletions(-)board/faraday/a320evb/a320evb.c +0
-1@@ -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 */
include/configs/a320evb.h +0
-0@@ -25,6 +25,12 @@?#include <
asm/arch/a320.h>?/*
+ * mach-type definition
+ */include/configs/a320evb.h +4
-0+#define MACH_TYPE_FARADAY ? ? ?758 +#define CONFIG_MACH_TYPE ? ? ? MACH_TYPE_FARADAY + +/*
Quoted 7 lines
?* Linux kernel tagged list
?*/
?#defineCONFIG_CMDLINE_TAG
--
1.7.4.1
Hi All,
Is this OK?
Signature · 2 lines
BR, Andrew
PATCH 1/1 arm: a320evb: define mach-type in board config file
In reply to Andrew ChenQuoted 6 lines · Andrew Chen
From: Yan-Pai Chen <[email protected]>
MACH_TYPE_FARADAYwas dropped frommach-types.h. Add it back to board config file.Signed-off-by Yan-Pai Chen <[email protected]>
Quoted 34 lines
--- board/faraday/a320evb/a320evb.c | 1 - include/configs/a320evb.h | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletions(-)board/faraday/a320evb/a320evb.c +0
-1@@ -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 */ include/configs/a320evb.h +6
-0@@ -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
Signature · 2 lines
Regards, Igor.
PATCH 1/1 arm: a320evb: define mach-type in board config file
In reply to Andrew ChenQuoted 10 lines · On Tue, 8 Nov 2011 13:40:25 +0800 Andrew Chen <[email protected]> wrote:
From: Yan-Pai Chen <[email protected]>
MACH_TYPE_FARADAYwas dropped frommach-types.h. Add it back to board config file.Signed-off-by Yan-Pai Chen <[email protected]>--- 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