Some 80-column cleanups.
Convert printf() to puts() where possible.
Use #include "spd_sdram.h" as needed.
Enhanced reset command usage message a bit.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
printf("Setting registers VCFGEN0, VCFGEN1, VBOOT, and VCTL\n");
puts("Setting registers VCFGEN0, VCFGEN1, VBOOT, and VCTL\n");
set_altbank();
read_from_px_regs(1);
read_from_px_regs_altbank(1);
printf("Enabling watchdog timer on the FPGA and resetting board with values from VSPEED0, VSPEED1, VCLKH, and VCLKL to boot from the other bank ....\n");
puts("Enabling watchdog timer on the FPGA and resetting board with values from VSPEED0, VSPEED1, VCLKH, and VCLKL to boot from the other bank ....\n");
set_px_go_with_watchdog();
}else
gotomy_usage;
@ -315,26 +319,32 @@ mpc8641_reset_board(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
while(1);/* Not reached */
}elseif(argv[2][1]=='d'){
/* Reset from next bank without changing frequencies but with watchdog timer enabled */
/*
*Resetfromalternatebankwithoutchanging
*frequenciesbutwithwatchdogtimerenabled.
*/
read_from_px_regs(0);
read_from_px_regs_altbank(0);
printf("Setting registers VCFGEN1, VBOOT, and VCTL\n");
puts("Setting registers VCFGEN1, VBOOT, and VCTL\n");
set_altbank();
read_from_px_regs_altbank(1);
printf("Enabling watchdog timer on the FPGA and resetting board to boot from the other bank....\n");
puts("Enabling watchdog timer on the FPGA and resetting board to boot from the other bank....\n");
set_px_go_with_watchdog();
while(1);/* Not reached */
}else{
/* Reset from next bank without changing frequency and without watchdog timer enabled */
/*
*Resetfromnextbankwithoutchanging
*frequencyandwithoutwatchdogtimerenabled.
*/
read_from_px_regs(0);
read_from_px_regs_altbank(0);
if(argc>2)
gotomy_usage;
printf("Setting registers VCFGNE1, VBOOT, and VCTL\n");
puts("Setting registers VCFGNE1, VBOOT, and VCTL\n");
set_altbank();
read_from_px_regs_altbank(1);
printf("Resetting board to boot from the other bank....\n");
puts("Resetting board to boot from the other bank....\n");
set_px_go();
}
@ -343,12 +353,9 @@ mpc8641_reset_board(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])