ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f
PATCH 1/1 ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f
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.
--- board/gateworks/gw_ventana/gw_ventana_spl.c | 7 ------- 1 file changed, 7 deletions(-)
board/gateworks/gw_ventana/gw_ventana_spl.c +0 -7
@@ -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 ();
Signature · 1 line
2.1.0
PATCH 1/1 ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f
Quoted 31 lines · Stefan Roese
Zeroing GD in
board_init_f()is not needed any more. As its now done incrt0.S. The patch that clears the GD incrt0.Sis this one:
aae2aef9[arm: Set up global data beforeboard_init_f()] from Simon.Signed-off-by Stefan Roese <[email protected]>Cc Tim Harvey <[email protected]>Cc Stefano Babic <[email protected]>--- board/gateworks/gw_ventana/gw_ventana_spl.c | 7 ------- 1 file changed, 7 deletions(-)board/gateworks/gw_ventana/gw_ventana_spl.c +0
-8@@ -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 (); --
Quoted 2 lines
2.1.0
Tim
PATCH 1/1 ARM: mx6: gw_ventana: Remove superfluous memset of GD in board_init_f
In reply to Stefan RoeseQuoted 9 lines · Stefan Roese
Zeroing GD in
board_init_f()is not needed any more. As its now done incrt0.S. The patch that clears the GD incrt0.Sis this one:
aae2aef9[arm: Set up global data beforeboard_init_f()] from Simon.Signed-off-by Stefan Roese <[email protected]>Cc Tim Harvey <[email protected]>Cc Stefano Babic <[email protected]>---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== 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 =====================================================================