From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] spl_atmel.c: Switch s_init to board_init_f
Date: Sun, 29 Mar 2015 23:59:41 +0200 [thread overview]
Message-ID: <551875CD.2030801@googlemail.com> (raw)
In-Reply-To: <1423613243-21114-1-git-send-email-trini@ti.com>
Hi Tom,
rebased and tried to apply, but unfortuantely this breaks SPL for at91
armv7 boards:
05: spl_atmel.c: Switch s_init to board_init_f
arm: + sama5d3xek_mmc sama5d3xek_nandflash sama5d3xek_spiflash
sama5d4_xplained_mmc sama5d4ek_nandflash
+arch/arm/cpu/armv7/built-in.o: In function `lowlevel_init':
+build/../arch/arm/cpu/armv7/lowlevel_init.S:57: undefined reference to
`s_init'
+make[2]: *** [spl/u-boot-spl] Error 1
+make[1]: *** [spl/u-boot-spl] Error 2
+make: *** [sub-make] Error 2
I have to provide an empty s_init() to compile cleanly. Are you fine
with just adopting your patch or would you like to repost?
Andreas
On 11.02.15 01:07, Tom Rini wrote:
> To facilitate changing lowlevel_init to become s_init, move the current
> contents of s_init into board_init_f and add the rest of what
> board_init_f does here.
>
> Cc: Bo Shen <voice.shen@atmel.com>
> Cc: Andreas Bie?mann <andreas.devel@googlemail.com>
> Tested-by: Matt Porter <mporter@konsulko.com> on sama5d3_xplained
> Signed-off-by: Tom Rini <trini@ti.com>
> ---
> arch/arm/cpu/at91-common/spl_atmel.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/cpu/at91-common/spl_atmel.c b/arch/arm/cpu/at91-common/spl_atmel.c
> index 7297530..d815050 100644
> --- a/arch/arm/cpu/at91-common/spl_atmel.c
> +++ b/arch/arm/cpu/at91-common/spl_atmel.c
> @@ -58,7 +58,7 @@ static void switch_to_main_crystal_osc(void)
> writel(tmp, &pmc->mor);
> }
>
> -void s_init(void)
> +void board_init_f(ulong dummy)
> {
> switch_to_main_crystal_osc();
>
> @@ -77,4 +77,9 @@ void s_init(void)
> preloader_console_init();
>
> mem_init();
> +
> + /* Clear the BSS. */
> + memset(__bss_start, 0, __bss_end - __bss_start);
> +
> + board_init_r(NULL, 0);
> }
>
next prev parent reply other threads:[~2015-03-29 21:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-11 0:07 [U-Boot] [PATCH 1/2] spl_atmel.c: Switch s_init to board_init_f Tom Rini
2015-02-11 0:07 ` [U-Boot] [PATCH 2/2] mx6: Rework s_init to be spl_board_init() and gate_ungate_all_mx6_pfds() Tom Rini
2015-02-11 0:47 ` Marek Vasut
2015-02-11 8:04 ` Igor Grinberg
2015-02-11 11:15 ` Stefano Babic
2015-03-29 21:59 ` Andreas Bießmann [this message]
2015-03-31 23:05 ` [U-Boot] [PATCH] spl_atmel.c: Switch s_init to board_init_f Andreas Bießmann
2015-03-31 23:09 ` Andreas Bießmann
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=551875CD.2030801@googlemail.com \
--to=andreas.devel@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 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.