Skip to content
Snippets Groups Projects
Commit 82826d54 authored by Detlev Zundel's avatar Detlev Zundel Committed by Wolfgang Denk
Browse files

mpc512x: Add display of reset status register


Content of the RSR is put into gd early so we can output it together
with the CPU info.  The clearing of gd in board_init_f is redundant for
this architecture as it is done in cpu_init_f so we remove it.

Signed-off-by: default avatarDetlev Zundel <dzu@denx.de>
parent a84b655f
No related branches found
No related tags found
No related merge requests found
...@@ -66,9 +66,10 @@ int checkcpu (void) ...@@ -66,9 +66,10 @@ int checkcpu (void)
default: default:
puts ("unknown "); puts ("unknown ");
} }
printf ("at %s MHz, CSB at %s MHz\n", printf ("at %s MHz, CSB at %s MHz (RSR=0x%04lx)\n",
strmhz(buf1, clock), strmhz(buf1, clock),
strmhz(buf2, gd->csb_clk) ); strmhz(buf2, gd->csb_clk),
gd->reset_status & 0xffff);
return 0; return 0;
} }
......
/* /*
* (C) Copyright 2000-2006 * (C) Copyright 2000-2010
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
* *
* See file CREDITS for list of people who contributed to this * See file CREDITS for list of people who contributed to this
...@@ -378,8 +378,9 @@ void board_init_f (ulong bootflag) ...@@ -378,8 +378,9 @@ void board_init_f (ulong bootflag)
/* compiler optimization barrier needed for GCC >= 3.4 */ /* compiler optimization barrier needed for GCC >= 3.4 */
__asm__ __volatile__("": : :"memory"); __asm__ __volatile__("": : :"memory");
#if !defined(CONFIG_CPM2) && !defined(CONFIG_MPC83xx) && \ #if !defined(CONFIG_CPM2) && !defined(CONFIG_MPC512X) && \
!defined(CONFIG_MPC85xx) && !defined(CONFIG_MPC86xx) !defined(CONFIG_MPC83xx) && !defined(CONFIG_MPC85xx) && \
!defined(CONFIG_MPC86xx)
/* Clear initial global data */ /* Clear initial global data */
memset ((void *) gd, 0, sizeof (gd_t)); memset ((void *) gd, 0, sizeof (gd_t));
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment