public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/6] arm: remove cpu_init
Date: Sun, 10 May 2009 09:42:36 +0200	[thread overview]
Message-ID: <4A06856C.6050105@googlemail.com> (raw)
In-Reply-To: <1241876118-27469-2-git-send-email-plagnioj@jcrosoft.com>

Jean-Christophe PLAGNIOL-VILLARD wrote:
> move s3c44b0 to arch_cpu_init and as noone use cpu_init remove it
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Cortex-A8 (OMAP3) part

Acked-by: Dirk Behme <dirk.behme@googlemail.com>

Just a minor _question_ for an other board below:

> diff --git a/cpu/s3c44b0/cpu.c b/cpu/s3c44b0/cpu.c
> index 7ef4a1f..bca38f8 100644
> --- a/cpu/s3c44b0/cpu.c
> +++ b/cpu/s3c44b0/cpu.c
> @@ -32,7 +32,7 @@
>  #include <command.h>
>  #include <asm/hardware.h>
>  
> -int cpu_init (void)
> +int arch_cpu_init (void)
>  {
>  	icache_enable();
>  

Would encapsulating this new arch_cpu_init() with an additional 
CONFIG_ARCH_CPU_INIT, e.g.

#if defined(CONFIG_ARCH_CPU_INIT)
int arch_cpu_init (void)
{

(like below) help to avoid issues if cpu/s3c44b0/cpu.c would be 
compiled without CONFIG_ARCH_CPU_INIT enabled?

> diff --git a/include/configs/B2.h b/include/configs/B2.h
> index 35fad5c..e5439f3 100644
> --- a/include/configs/B2.h
> +++ b/include/configs/B2.h
> @@ -39,6 +39,7 @@
>  #define CONFIG_ARM_THUMB	1	/* this is an ARM7TDMI */
>  #undef  CONFIG_ARM7_REVD		/* disable ARM720 REV.D Workarounds */
>  #define CONFIG_SYS_NO_CP15_CACHE
> +#define CONFIG_ARCH_CPU_INIT
>  
>  #define CONFIG_S3C44B0_CLOCK_SPEED	75 /* we have a 75Mhz S3C44B0*/
>  
> diff --git a/lib_arm/board.c b/lib_arm/board.c
> index 344120f..452b177 100644
> --- a/lib_arm/board.c
> +++ b/lib_arm/board.c
> @@ -265,7 +265,6 @@ typedef int (init_fnc_t) (void);
>  int print_cpuinfo (void);
>  
>  init_fnc_t *init_sequence[] = {
> -	cpu_init,		/* basic cpu dependent setup */
>  #if defined(CONFIG_ARCH_CPU_INIT)
>  	arch_cpu_init,		/* basic arch cpu dependent setup */
>  #endif

  parent reply	other threads:[~2009-05-10  7:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-09 13:35 [U-Boot] [PATCH 1/6] arm: unify interrupt init Jean-Christophe PLAGNIOL-VILLARD
2009-05-09 13:35 ` [U-Boot] [PATCH 2/6] arm: remove cpu_init Jean-Christophe PLAGNIOL-VILLARD
2009-05-09 13:35   ` [U-Boot] [PATCH 3/6] s3c4510b: move interrupts code to soc Jean-Christophe PLAGNIOL-VILLARD
2009-05-09 13:35     ` [U-Boot] [PATCH 4/6] lpc2292: " Jean-Christophe PLAGNIOL-VILLARD
2009-05-09 13:35       ` [U-Boot] [PATCH 5/6] arm920t/interrupts: Move conditional compilation to Makefile Jean-Christophe PLAGNIOL-VILLARD
2009-05-09 13:35         ` [U-Boot] [PATCH 6/6] S3C24x0: extract interrupts from timer Jean-Christophe PLAGNIOL-VILLARD
2009-05-09 18:26     ` [U-Boot] [PATCH 3/6] s3c4510b: move interrupts code to soc Wolfgang Denk
2009-05-10 14:40       ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 19:39         ` Wolfgang Denk
2009-05-10 20:49           ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-12  1:18             ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-10  7:42   ` Dirk Behme [this message]
2009-05-10 14:44     ` [U-Boot] [PATCH 2/6] arm: remove cpu_init Jean-Christophe PLAGNIOL-VILLARD
2009-05-10  7:42 ` [U-Boot] [PATCH 1/6] arm: unify interrupt init Dirk Behme
2009-05-10 14:42   ` Jean-Christophe PLAGNIOL-VILLARD

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=4A06856C.6050105@googlemail.com \
    --to=dirk.behme@googlemail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox