@@ -103,7 +103,7 @@ int misc_init_r (void)
dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
printf ("GUNZIP ERROR - must RESET board to recover\n");
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -136,7 +136,7 @@ int misc_init_r (void)
udelay(1000);
}
putc ('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -219,7 +219,7 @@ int misc_init_r(void)
dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
if (gunzip(dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
printf("GUNZIP ERROR - must RESET board to recover\n");
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -255,7 +255,7 @@ int misc_init_r(void)
udelay(1000);
}
putc('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
/* restore gpio/cs settings */
@@ -112,7 +112,7 @@ int board_early_init_f (void)
udelay (1000);
}
putc ('\n');
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
}
@@ -88,7 +88,7 @@ int misc_init_r (void)
dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
printf ("GUNZIP ERROR - must RESET board to recover\n");
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -121,7 +121,7 @@ int misc_init_r (void)
udelay(1000);
}
putc ('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -108,7 +108,7 @@ int board_early_init_f (void)
udelay (1000);
}
putc ('\n');
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
/*
@@ -160,7 +160,7 @@ int board_early_init_f(void)
udelay(1000);
}
putc('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
}
#endif /* !CONFIG_CPCI405_VER2 */
@@ -288,7 +288,7 @@ int misc_init_r (void)
if (gunzip(dst, CONFIG_SYS_FPGA_MAX_SIZE,
(uchar *)fpgadata, &len) != 0) {
printf("GUNZIP ERROR - must RESET board to recover\n");
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -324,7 +324,7 @@ int misc_init_r (void)
udelay(1000);
}
putc('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
/* restore gpio/cs settings */
@@ -106,7 +106,7 @@ int board_early_init_f (void)
udelay (1000);
}
putc ('\n');
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
/*
@@ -106,7 +106,7 @@ int board_early_init_f (void)
udelay (1000);
}
putc ('\n');
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
/*
@@ -417,7 +417,7 @@ int misc_init_r (void)
dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
printf ("GUNZIP ERROR - must RESET board to recover\n");
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -450,7 +450,7 @@ int misc_init_r (void)
udelay(1000);
}
putc ('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -198,7 +198,7 @@ int misc_init_r (void)
dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
printf ("GUNZIP ERROR - must RESET board to recover\n");
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -231,7 +231,7 @@ int misc_init_r (void)
udelay(1000);
}
putc ('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -121,7 +121,7 @@ int misc_init_r(void)
if (gunzip(dst, CONFIG_SYS_FPGA_MAX_SIZE,
(uchar *)fpgadata, &len) != 0) {
printf("GUNZIP ERROR - must RESET board to recover\n");
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -157,7 +157,7 @@ int misc_init_r(void)
udelay(1000);
}
putc('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -152,7 +152,7 @@ int misc_init_r (void)
dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
printf ("GUNZIP ERROR - must RESET board to recover\n");
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -185,7 +185,7 @@ int misc_init_r (void)
udelay(1000);
}
putc ('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -117,7 +117,7 @@ int misc_init_r (void)
dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
printf ("GUNZIP ERROR - must RESET board to recover\n");
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -150,7 +150,7 @@ int misc_init_r (void)
udelay(1000);
}
putc ('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -85,7 +85,7 @@ int misc_init_r (void)
dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
printf ("GUNZIP ERROR - must RESET board to recover\n");
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
status = fpga_boot(dst, len);
@@ -118,7 +118,7 @@ int misc_init_r (void)
udelay(1000);
}
putc ('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -181,7 +181,7 @@ int do_fpga_boot(unsigned char *fpgadata)
udelay(1000);
}
putc('\n');
- do_reset(NULL, 0, 0, NULL);
+ emergency_restart();
}
puts("FPGA: ");
@@ -826,7 +826,7 @@ void show_boot_progress (int status)
/*
* Reset the board to retry initialization.
*/
- do_reset (NULL, 0, 0, NULL);
+ emergency_restart();
}
}
#endif /* CONFIG_SHOW_BOOT_PROGRESS */
@@ -372,7 +372,7 @@ int do_chkreset(cmd_tbl_t* cmdtp, int flag, int argc, char * const argv[])
/*
* Reset the board for default to become valid
*/
- do_reset(NULL, 0, 0, NULL);
+ system_restart();
return 0;
}
@@ -392,7 +392,7 @@ int do_chkreset(cmd_tbl_t* cmdtp, int flag, int argc, char * const argv[])
*/
logbuff_reset();
- do_reset(NULL, 0, 0, NULL);
+ system_restart();
return 0;
}
All explicit calls to do_reset() should now use either system_restart() or emergency_restart() as appropriate. This should not change any behavior because at present there are no implementations of any arch-specific hooks, making those two functions just minimal wrappers around the existing do_reset() functions. Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com> Cc: Wolfgang Denk <wd@denx.de> --- board/dave/PPChameleonEVB/PPChameleonEVB.c | 4 ++-- board/esd/apc405/apc405.c | 4 ++-- board/esd/ar405/ar405.c | 2 +- board/esd/ash405/ash405.c | 4 ++-- board/esd/canbt/canbt.c | 2 +- board/esd/cpci405/cpci405.c | 6 +++--- board/esd/cpciiser4/cpciiser4.c | 2 +- board/esd/du405/du405.c | 2 +- board/esd/hh405/hh405.c | 4 ++-- board/esd/pci405/pci405.c | 4 ++-- board/esd/plu405/plu405.c | 4 ++-- board/esd/tasreg/tasreg.c | 4 ++-- board/esd/voh405/voh405.c | 4 ++-- board/esd/wuh405/wuh405.c | 4 ++-- board/prodrive/pdnb3/pdnb3.c | 2 +- board/sacsng/sacsng.c | 2 +- board/zeus/zeus.c | 4 ++-- 17 files changed, 29 insertions(+), 29 deletions(-)