[U-Boot,2/2] at91: defined mach-types for otc570 board in board config file

Submitted by Daniel Gorsulowski on Oct. 31, 2011, 8:52 a.m.

Details

Message ID 13200511501877-git-send-email-Daniel.Gorsulowski@esd.eu
State Accepted
Commit b2f2648d89cd295b328beac2eac91d81ba626291
Delegated to: Albert ARIBAUD
Headers show

Commit Message

Daniel Gorsulowski Oct. 31, 2011, 8:52 a.m.
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/."

Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
---
 include/configs/otc570.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Comments

Albert ARIBAUD Nov. 5, 2011, 11:13 a.m.
Hi Daniel,

Le 31/10/2011 09:52, Daniel Gorsulowski a écrit :
> 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/."
>
> Signed-off-by: Daniel Gorsulowski<Daniel.Gorsulowski@esd.eu>
> ---
>   include/configs/otc570.h |    7 +++++++
>   1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/include/configs/otc570.h b/include/configs/otc570.h
> index e2c2eda..c068aa0 100644
> --- a/include/configs/otc570.h
> +++ b/include/configs/otc570.h
> @@ -45,6 +45,13 @@
>    */
>   #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_OTC570		2166
> +
>   /* 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,

Patch hide | download patch | download mbox

diff --git a/include/configs/otc570.h b/include/configs/otc570.h
index e2c2eda..c068aa0 100644
--- a/include/configs/otc570.h
+++ b/include/configs/otc570.h
@@ -45,6 +45,13 @@ 
  */
 #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_OTC570		2166
+
 /* 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 */