From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] ARM: lib: Remove CONFIG_ARCH_CPU_INIT dependency
Date: Sat, 03 Mar 2012 11:01:34 +0100 [thread overview]
Message-ID: <4F51EBFE.9020102@denx.de> (raw)
In-Reply-To: <1330610560-15978-1-git-send-email-fabio.estevam@freescale.com>
On 01/03/2012 15:02, Fabio Estevam wrote:
> Create a weak-aliased arch_cpu_init, so that we can get rid of CONFIG_ARCH_CPU_INIT
> and always call arch_cpu_init.
>
> This way we do not need to define CONFIG_ARCH_CPU_INIT in every board file, since
> arch_cpu_init() is supposed to handle common CPU level code.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> arch/arm/lib/board.c | 10 ++++++++--
> 1 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
> index 500e216..6463db5 100644
> --- a/arch/arm/lib/board.c
> +++ b/arch/arm/lib/board.c
> @@ -224,10 +224,16 @@ void __dram_init_banksize(void)
> void dram_init_banksize(void)
> __attribute__((weak, alias("__dram_init_banksize")));
>
> +int __arch_cpu_init(void)
> +{
> + return 0;
> +}
> +int arch_cpu_init(void)
> + __attribute__((weak, alias("__arch_cpu_init")));
> +
> init_fnc_t *init_sequence[] = {
> -#if defined(CONFIG_ARCH_CPU_INIT)
> arch_cpu_init, /* basic arch cpu dependent setup */
> -#endif
> +
> #if defined(CONFIG_BOARD_EARLY_INIT_F)
> board_early_init_f,
> #endif
Acked-by: Stefano Babic <sbabic@denx.de>
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2012-03-03 10:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 14:02 [U-Boot] [PATCH 1/3] ARM: lib: Remove CONFIG_ARCH_CPU_INIT dependency Fabio Estevam
2012-03-01 14:02 ` [U-Boot] [PATCH 2/3] ARM: mx6: Remove CONFIG_ARCH_CPU_INIT Fabio Estevam
2012-03-01 18:31 ` Marek Vasut
2012-07-07 11:25 ` Albert ARIBAUD
2012-03-01 14:02 ` [U-Boot] [PATCH 3/3] ARM: mx28: " Fabio Estevam
2012-03-01 18:31 ` Marek Vasut
2012-07-07 11:31 ` Albert ARIBAUD
2012-07-19 17:28 ` Marek Vasut
2012-03-01 18:31 ` [U-Boot] [PATCH 1/3] ARM: lib: Remove CONFIG_ARCH_CPU_INIT dependency Marek Vasut
2012-03-01 20:51 ` Albert ARIBAUD
2012-03-01 20:57 ` Fabio Estevam
2012-03-01 21:44 ` Albert ARIBAUD
2012-03-05 17:56 ` Tom Rini
2012-03-06 7:26 ` Albert ARIBAUD
2012-03-03 10:01 ` Stefano Babic [this message]
2012-03-05 17:52 ` Tom Rini
2012-03-05 17:58 ` Fabio Estevam
2012-03-05 18:12 ` Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F51EBFE.9020102@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.