diff mbox

[U-Boot] at91: simplify spl board_init_f function

Message ID 1445592238-2129-1-git-send-email-josh.wu@atmel.com
State Accepted, archived
Delegated to: Andreas Bießmann
Headers show

Commit Message

Josh Wu Oct. 23, 2015, 9:23 a.m. UTC
crt0.S do both memset the bss section and call board_init_r for us, so
remove them from board_init_f().

Signed-off-by: Josh Wu <josh.wu@atmel.com>
---

 arch/arm/mach-at91/spl_atmel.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Simon Glass Oct. 23, 2015, 3:40 p.m. UTC | #1
On 23 October 2015 at 03:23, Josh Wu <josh.wu@atmel.com> wrote:
> crt0.S do both memset the bss section and call board_init_r for us, so
> remove them from board_init_f().
>
> Signed-off-by: Josh Wu <josh.wu@atmel.com>
> ---
>
>  arch/arm/mach-at91/spl_atmel.c | 5 -----
>  1 file changed, 5 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Andreas Bießmann Oct. 23, 2015, 10:46 p.m. UTC | #2
On 23.10.15 11:23, Josh Wu wrote:
> crt0.S do both memset the bss section and call board_init_r for us, so
> remove them from board_init_f().
> 
> Signed-off-by: Josh Wu <josh.wu@atmel.com>

Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>

> ---
> 
>  arch/arm/mach-at91/spl_atmel.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c
> index 8ac5335..b2fb51d 100644
> --- a/arch/arm/mach-at91/spl_atmel.c
> +++ b/arch/arm/mach-at91/spl_atmel.c
> @@ -98,9 +98,4 @@ void board_init_f(ulong dummy)
>  	preloader_console_init();
>  
>  	mem_init();
> -
> -	/* Clear the BSS. */
> -	memset(__bss_start, 0, __bss_end - __bss_start);
> -
> -	board_init_r(NULL, 0);
>  }
>
Andreas Bießmann Nov. 1, 2015, 9:02 p.m. UTC | #3
Dear Josh Wu,

Josh Wu <josh.wu@atmel.com> writes:
>crt0.S do both memset the bss section and call board_init_r for us, so
>remove them from board_init_f().
>
>Signed-off-by: Josh Wu <josh.wu@atmel.com>
>Reviewed-by: Simon Glass <sjg@chromium.org>
>Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
>---
>
> arch/arm/mach-at91/spl_atmel.c | 5 -----
> 1 file changed, 5 deletions(-)

applied to u-boot-atmel/master, thanks!

Best regards,
Andreas Bießmann
diff mbox

Patch

diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c
index 8ac5335..b2fb51d 100644
--- a/arch/arm/mach-at91/spl_atmel.c
+++ b/arch/arm/mach-at91/spl_atmel.c
@@ -98,9 +98,4 @@  void board_init_f(ulong dummy)
 	preloader_console_init();
 
 	mem_init();
-
-	/* Clear the BSS. */
-	memset(__bss_start, 0, __bss_end - __bss_start);
-
-	board_init_r(NULL, 0);
 }