Skip to contentSkip to conversation

at91: defined mach-types for meesc board in board config file

PATCH New Daniel Gorsulowski 2 participants 2 messages Oct 31, 2011 – Nov 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 at91: defined mach-types for meesc board in board config file

quotation from Albert ARIBAUD:
"Recently the ARM mach-types.h file has been brought in sync with its Linux original, leasing to a number of boards not being listed any more, as the new list only contains boards which have actual Linux support or were declared less than one year ago.

The symptom is a build failure with a message of the form "error:
'MACH_TYPE_XXXXXX' undeclared (first use in this function)".

U-Boot maintainers of such boards (in Cc: of this mail) should provide a patch to re-introduce the MACH_TYPE_XXXXXX definition in their boards' config header file in include/configs/."

---
 include/configs/meesc.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
include/configs/meesc.h +8 -0
index a2b55d5..ea40290 100644
@@ -45,6 +45,14 @@
  */
 #define CONFIG_SYS_TEXT_BASE		0x20002000
 
+/*
+ * since a number of boards are not being listed in linux
+ * arch/arm/tools/mach-types any more, the mach-types have to be
+ * defined here
+ */
+#define MACH_TYPE_MEESC			2165
+#define MACH_TYPE_ETHERCAN2		2407
+
 /* ARM asynchronous clock */
 #define CONFIG_SYS_AT91_SLOW_CLOCK	32768	/* 32.768 kHz crystal */
 #define CONFIG_SYS_AT91_MAIN_CLOCK	16000000/* 16.0 MHz crystal */
Signature · 1 line
1.5.3
#1 lore raw

PATCH 1/2 at91: defined mach-types for meesc board in board config file

Hi Daniel,

Le 31/10/2011 09:52, Daniel Gorsulowski a ?crit :

Quoted 27 lines

quotation from Albert ARIBAUD:
"Recently the ARM mach-types.h file has been brought in sync with its Linux original, leasing to a number of boards not being listed any more, as the new list only contains boards which have actual Linux support or were declared less than one year ago.

The symptom is a build failure with a message of the form "error:
'MACH_TYPE_XXXXXX' undeclared (first use in this function)".

U-Boot maintainers of such boards (in Cc: of this mail) should provide a patch to re-introduce the MACH_TYPE_XXXXXX definition in their boards' config header file in include/configs/."

---
  include/configs/meesc.h |    8 ++++++++
  1 files changed, 8 insertions(+), 0 deletions(-)
include/configs/meesc.h +1 -0
index a2b55d5..ea40290 100644
@@ -45,6 +45,14 @@
   */
  #define CONFIG_SYS_TEXT_BASE		0x20002000
 
+/*

include/configs/meesc.h line 58

Quoted 10 lines
include/configs/meesc.h +7 -0
+ * since a number of boards are not being listed in linux
+ * arch/arm/tools/mach-types any more, the mach-types have to be
+ * defined here
+ */
+#define MACH_TYPE_MEESC			2165
+#define MACH_TYPE_ETHERCAN2		2407
+
  /* ARM asynchronous clock */
  #define CONFIG_SYS_AT91_SLOW_CLOCK	32768	/* 32.768 kHz crystal */
  #define CONFIG_SYS_AT91_MAIN_CLOCK	16000000/* 16.0 MHz crystal */

Applied to u-boot-arm/master, thanks!

Amicalement,

Signature · 1 line
Albert.