public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f
@ 2014-09-30 10:41 Stefan Roese
  2014-09-30 17:17 ` Tim Harvey
  2014-10-01  7:12 ` Stefano Babic
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Roese @ 2014-09-30 10:41 UTC (permalink / raw)
  To: u-boot

Zeroing GD in board_init_f() is not needed any more. As its now done in
crt0.S. The patch that clears the GD in crt0.S is this one:

aae2aef9 [arm: Set up global data before board_init_f()] from Simon.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Stefano Babic <sbabic@denx.de>
---
 board/gateworks/gw_ventana/gw_ventana_spl.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c
index 9fc253b..ca35b3c 100644
--- a/board/gateworks/gw_ventana/gw_ventana_spl.c
+++ b/board/gateworks/gw_ventana/gw_ventana_spl.c
@@ -402,13 +402,6 @@ void board_init_f(ulong dummy)
 	struct ventana_board_info ventana_info;
 	int board_model;
 
-	/*
-	 * Zero out global data:
-	 *  - this shoudl be done by crt0.S
-	 *  - failure to zero it will cause i2c_setup to fail
-	 */
-	memset((void *)gd, 0, sizeof(struct global_data));
-
 	/* setup AIPS and disable watchdog */
 	arch_cpu_init();
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f
  2014-09-30 10:41 [U-Boot] [PATCH] ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f Stefan Roese
@ 2014-09-30 17:17 ` Tim Harvey
  2014-10-01  7:12 ` Stefano Babic
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Harvey @ 2014-09-30 17:17 UTC (permalink / raw)
  To: u-boot

On Tue, Sep 30, 2014 at 3:41 AM, Stefan Roese <sr@denx.de> wrote:
> Zeroing GD in board_init_f() is not needed any more. As its now done in
> crt0.S. The patch that clears the GD in crt0.S is this one:
>
> aae2aef9 [arm: Set up global data before board_init_f()] from Simon.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Tim Harvey <tharvey@gateworks.com>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
>  board/gateworks/gw_ventana/gw_ventana_spl.c | 7 -------
>  1 file changed, 7 deletions(-)
>
> diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c
> index 9fc253b..ca35b3c 100644
> --- a/board/gateworks/gw_ventana/gw_ventana_spl.c
> +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c
> @@ -402,13 +402,6 @@ void board_init_f(ulong dummy)
>         struct ventana_board_info ventana_info;
>         int board_model;
>
> -       /*
> -        * Zero out global data:
> -        *  - this shoudl be done by crt0.S
> -        *  - failure to zero it will cause i2c_setup to fail
> -        */
> -       memset((void *)gd, 0, sizeof(struct global_data));
> -
>         /* setup AIPS and disable watchdog */
>         arch_cpu_init();
>
> --
> 2.1.0
>

Acked-by: Tim Harvey <tharvey@gateworks.com>

Tim

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f
  2014-09-30 10:41 [U-Boot] [PATCH] ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f Stefan Roese
  2014-09-30 17:17 ` Tim Harvey
@ 2014-10-01  7:12 ` Stefano Babic
  1 sibling, 0 replies; 3+ messages in thread
From: Stefano Babic @ 2014-10-01  7:12 UTC (permalink / raw)
  To: u-boot

On 30/09/2014 12:41, Stefan Roese wrote:
> Zeroing GD in board_init_f() is not needed any more. As its now done in
> crt0.S. The patch that clears the GD in crt0.S is this one:
> 
> aae2aef9 [arm: Set up global data before board_init_f()] from Simon.
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Tim Harvey <tharvey@gateworks.com>
> Cc: Stefano Babic <sbabic@denx.de>
> ---


Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-01  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 10:41 [U-Boot] [PATCH] ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f Stefan Roese
2014-09-30 17:17 ` Tim Harvey
2014-10-01  7:12 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox