summaryrefslogtreecommitdiff
path: root/lib_ppc
diff options
context:
space:
mode:
authorDave Liu <daveliu@freescale.com>2007-06-25 02:41:56 (GMT)
committerKim Phillips <kim.phillips@freescale.com>2007-08-10 06:12:03 (GMT)
commit9be39a67c9f8fef7107f5df09d673005f04d0963 (patch)
tree79b4dd35873605ea93f34b8113d527988919f270 /lib_ppc
parentff9658d7049bf8c8e8e0a05dbe5e9f7e91aa5a5d (diff)
downloadu-boot-fsl-qoriq-9be39a67c9f8fef7107f5df09d673005f04d0963.tar.xz
mpc83xx: Add support for the display of reset status
83xx processor family has many reset sources, such as power on reset, software hard reset, software soft reset, JTAG, bus monitor, software watchdog, check stop reset, external hard reset, external software reset. sometimes, to figure out the fault of system, we need to know the cause of reset early before the prompt of u-boot present. Signed-off-by: Dave Liu <daveliu@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 325f5c2..c87d46c 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -309,7 +309,9 @@ init_fnc_t *init_sequence[] = {
prt_8260_rsr,
prt_8260_clks,
#endif /* CONFIG_8260 */
-
+#if defined(CONFIG_MPC83XX)
+ prt_83xx_rsr,
+#endif
checkcpu,
#if defined(CONFIG_MPC5xxx)
prt_mpc5xxx_clks,
@@ -376,7 +378,7 @@ void board_init_f (ulong bootflag)
/* compiler optimization barrier needed for GCC >= 3.4 */
__asm__ __volatile__("": : :"memory");
-#if !defined(CONFIG_CPM2)
+#if !defined(CONFIG_CPM2) && !defined(CONFIG_MPC83XX)
/* Clear initial global data */
memset ((void *) gd, 0, sizeof (gd_t));
#endif