Skip to contentSkip to conversation

arm: a320evb: define mach-type in board config file

PATCH New Andrew Chen 3 participants 4 messages Nov 8, 2011 – Nov 24, 2011

lore
Share & tools
lore
#0 lore raw

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
index 2578be4..dfd186b 100644
@@ -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
index 45a7c53..1fafbed 100644
@@ -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
#1 lore raw

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_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
index 2578be4..dfd186b 100644
@@ -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
index 45a7c53..1fafbed 100644
@@ -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
?*/
?#define CONFIG_CMDLINE_TAG
--
1.7.4.1

Hi All,

Is this OK?

Signature · 2 lines
BR,
Andrew
#2 lore raw

PATCH 1/1 arm: a320evb: define mach-type in board config file

In reply to Andrew Chen
Quoted 6 lines · Andrew Chen

From: Yan-Pai Chen <[email protected]>

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

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
index 2578be4..dfd186b 100644
@@ -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
index 45a7c53..1fafbed 100644
@@ -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.
#3 lore raw

PATCH 1/1 arm: a320evb: define mach-type in board config file

In reply to Andrew Chen
Quoted 10 lines · On Tue, 8 Nov 2011 13:40:25 +0800 Andrew Chen <[email protected]> wrote:

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(-)

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

Anatolij