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 1/2] ARM: introduce arch_early_init_r()
Date: Sat, 7 Jul 2012 13:53:02 +0200	[thread overview]
Message-ID: <20120707135302.4b099700@lilith> (raw)
In-Reply-To: <1333401586-24032-1-git-send-email-fabio.estevam@freescale.com>

Hi Fabio,

On Mon, 2 Apr 2012 18:19:45 -0300, Fabio Estevam
<fabio.estevam@freescale.com> wrote:

> Introduce arch_early_init_r() function, which can be useful for doing
> early initialization after relocation has happened.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  arch/arm/include/asm/u-boot-arm.h |    1 +
>  arch/arm/lib/board.c              |    4 ++++
>  2 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/include/asm/u-boot-arm.h
> b/arch/arm/include/asm/u-boot-arm.h index 4ca75f9..9f3cae5 100644
> --- a/arch/arm/include/asm/u-boot-arm.h
> +++ b/arch/arm/include/asm/u-boot-arm.h
> @@ -52,6 +52,7 @@ void	cpu_init_cp15(void);
>  /* cpu/.../arch/cpu.c */
>  int	arch_cpu_init(void);
>  int	arch_misc_init(void);
> +int	arch_early_init_r(void);
>  
>  /* board/.../... */
>  int	board_init(void);
> diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
> index 5270c11..025d6ca 100644
> --- a/arch/arm/lib/board.c
> +++ b/arch/arm/lib/board.c
> @@ -500,6 +500,10 @@ void board_init_r(gd_t *id, ulong dest_addr)
>  	malloc_start = dest_addr - TOTAL_MALLOC_LEN;
>  	mem_malloc_init (malloc_start, TOTAL_MALLOC_LEN);
>  
> +#ifdef CONFIG_ARCH_EARLY_INIT_R
> +	arch_early_init_r();
> +#endif
> +
>  #if !defined(CONFIG_SYS_NO_FLASH)
>  	puts("Flash: ");
>  

Applied to u-boot-arm (with an addmittedly very slow sensitivity to
prodding), thanks.

Amicalement,
-- 
Albert.

      parent reply	other threads:[~2012-07-07 11:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02 21:19 [U-Boot] [PATCH 1/2] ARM: introduce arch_early_init_r() Fabio Estevam
2012-04-02 21:19 ` [U-Boot] [PATCH 2/2] mmc: mxsmmc: Fix operation with DMA Fabio Estevam
2012-04-02 21:42 ` [U-Boot] [PATCH 1/2] ARM: introduce arch_early_init_r() Tom Rini
2012-04-02 22:00   ` Marek Vasut
2012-04-02 22:01     ` Tom Rini
2012-04-02 22:08       ` Marek Vasut
2012-04-02 22:13         ` Tom Rini
2012-04-02 22:15 ` Tom Rini
2012-04-02 23:05   ` Graeme Russ
2012-04-06  0:30 ` Marek Vasut
2012-04-06  0:33   ` Fabio Estevam
2012-04-06  1:04     ` Marek Vasut
2012-07-07 11:53 ` Albert ARIBAUD [this message]

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=20120707135302.4b099700@lilith \
    --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.