All of lore.kernel.org
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 1/7] arm, davinci: Add lowlevel_init for SoCs other than DM644X
Date: Sun, 19 Feb 2012 10:07:15 +0100	[thread overview]
Message-ID: <4F40BBC3.8050103@aribaud.net> (raw)
In-Reply-To: <1328179482-4344-2-git-send-email-christian.riesch@omicron.at>

Hi Christian,

Le 02/02/2012 11:44, Christian Riesch a ?crit :
> The low level initialization code in
> arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S was written for
> DM644X SoCs only. This patch makes the lowlevel_init function in this
> file a dummy function for SoCs other than DM644X.
>
> Signed-off-by: Christian Riesch<christian.riesch@omicron.at>
> Cc: Tom Rini<trini@ti.com>
> Cc: Sergey Kubushyn<ksi@koi8.net>
> Acked-by: Heiko Schocher<hs@denx.de>
> Tested-by: Heiko Schocher<hs@denx.de>
> ---
>   arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S |    4 ++++
>   1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S b/arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S
> index 7a169b1..5b39484 100644
> --- a/arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S
> +++ b/arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S
> @@ -49,6 +49,7 @@
>
>   .globl	lowlevel_init
>   lowlevel_init:
> +#ifdef CONFIG_SOC_DM644X
>
>   	/*-------------------------------------------------------*
>   	 * Mask all IRQs by setting all bits in the EINT default *
> @@ -707,3 +708,6 @@ DDR2_START_ADDR:
>   	.word	0x80000000
>   DUMMY_VAL:
>   	.word	0xa55aa55a
> +#else /* CONFIG_SOC_DM644X */
> +	mov pc, lr
> +#endif

Nitpicking here, but:

I don't link the "mov pc, lr" added in #else while it already exists in 
the #if part. Can we have a cleaner pair of #if/#else/#endif sections, 
one for code, ending right *before* the 'mov pc,lr' and one for the 
literals that follow it?

Amicalement,
-- 
Albert.

  reply	other threads:[~2012-02-19  9:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-02 10:44 [U-Boot] [PATCH v6 0/7] Change ARM926EJ-S startup code, hawkboard and calimain Christian Riesch
2012-02-02 10:44 ` [U-Boot] [PATCH v6 1/7] arm, davinci: Add lowlevel_init for SoCs other than DM644X Christian Riesch
2012-02-19  9:07   ` Albert ARIBAUD [this message]
2012-02-02 10:44 ` [U-Boot] [PATCH v6 2/7] arm, arm926ejs: Do cpu critical inits only for boards that require it Christian Riesch
2012-02-02 10:44 ` [U-Boot] [PATCH v6 3/7] arm, arm926ejs: Flush the data cache before disabling it Christian Riesch
2012-02-02 10:44 ` [U-Boot] [PATCH v6 4/7] arm, arm926ejs: Add option CONFIG_SYS_EXCEPTION_VECTORS_HIGH Christian Riesch
2012-02-02 10:44 ` [U-Boot] [PATCH v6 5/7] arm, arm926ejs: Enable icache only if CONFIG_SYS_ICACHE_OFF is not defined Christian Riesch
2012-02-02 10:44 ` [U-Boot] [PATCH v6 6/7] Changes to move hawkboard to the new spl infrastructure Christian Riesch
2012-02-02 10:44 ` [U-Boot] [PATCH v6 7/7] arm, davinci: Add support for the Calimain board from OMICRON electronics Christian Riesch
2012-02-19  9:11 ` [U-Boot] [PATCH v6 0/7] Change ARM926EJ-S startup code, hawkboard and calimain Albert ARIBAUD

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=4F40BBC3.8050103@aribaud.net \
    --to=albert.u.boot@aribaud.net \
    --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.