Skip to content

Commit

Permalink
powerpc/mpc512x: initialize board restart earlier
Browse files Browse the repository at this point in the history
move the MPC512x restart initialization from the shared init routine
to the shared init_early routine

recent problems in the proc(5) filesystem initialization led to the
situation where the platform's restart routine was invoked yet the
registers required for software reset were not yet available, which
made the board hang instead of reboot

Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
  • Loading branch information
Gerhard Sittig authored and Anatolij Gustschin committed May 21, 2013
1 parent 2abbbb6 commit a4f4124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/512x/mpc512x_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ void __init mpc512x_psc_fifo_init(void)

void __init mpc512x_init_early(void)
{
mpc512x_restart_init();
if (IS_ENABLED(CONFIG_FB_FSL_DIU))
mpc512x_init_diu();
}
Expand All @@ -446,7 +447,6 @@ void __init mpc512x_init(void)
{
mpc5121_clk_init();
mpc512x_declare_of_platform_devices();
mpc512x_restart_init();
mpc512x_psc_fifo_init();
}

Expand Down

0 comments on commit a4f4124

Please sign in to comment.