public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/6] arm: remove cpu_init
Date: Sun, 10 May 2009 16:44:04 +0200	[thread overview]
Message-ID: <20090510144404.GD21079@game.jcrosoft.org> (raw)
In-Reply-To: <4A06856C.6050105@googlemail.com>

On 09:42 Sun 10 May     , Dirk Behme wrote:
> 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.
no as this code is supposed to be always enable
>
> #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?
why?
this is where the s3c44 enable the icache

Best Regards,
J.

  reply	other threads:[~2009-05-10 14:44 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   ` [U-Boot] [PATCH 2/6] arm: remove cpu_init Dirk Behme
2009-05-10 14:44     ` Jean-Christophe PLAGNIOL-VILLARD [this message]
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=20090510144404.GD21079@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.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