[U-Boot] [PATCH] at91: board specific lowlevel_init.S
Wolfgang Denk
wd at denx.de
Tue Oct 21 15:58:53 CEST 2008
Dear Ilko Iliev,
In message <48FDDC1C.2080808 at ronetix.at> you wrote:
> This patch allows to have an at91 board specific lowlevel_init.S
>
> Signed-off-by: Ilko Iliev <iliev at ronetix.at>
>
> index ec6ad5d..7882e89 100644
> --- a/cpu/arm926ejs/at91/lowlevel_init.S
> +++ b/cpu/arm926ejs/at91/lowlevel_init.S
> @@ -27,7 +27,7 @@
> #include <config.h>
> #include <version.h>
>
> -#ifndef CONFIG_SKIP_LOWLEVEL_INIT
> +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) &&
> !defined(CONFIG_USER_LOWLEVEL_INIT)
>
> .globl lowlevel_init
> lowlevel_init:
> @@ -39,5 +39,5 @@ lowlevel_init:
> mov pc, lr
>
> .ltorg
> -
> -#endif /* CONFIG_SKIP_LOWLEVEL_INIT */
> +
> +#endif /* !CONFIG_SKIP_LOWLEVEL_INIT && !CONFIG_USER_LOWLEVEL_INIT */
Maybe instead of adding mor #ifdef'ery here, we can turn
lowlevel_init() into a "weak" function that can be redefined by board
specific code?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Karl's version of Parkinson's Law: Work expands to exceed the time
alloted it.
More information about the U-Boot
mailing list