summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorDetlev Zundel <dzu@denx.de>2010-01-22 13:47:59 (GMT)
committerWolfgang Denk <wd@denx.de>2010-01-24 14:29:29 (GMT)
commit82826d5422331e9c99e5408dcf0348c8e0c257a6 (patch)
treee1604684fe1919c1069494a8e1fec0253c840404 /cpu
parenta84b655fab2bc021fdafa91d1196cf826474cdd8 (diff)
downloadu-boot-82826d5422331e9c99e5408dcf0348c8e0c257a6.tar.xz
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: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc512x/cpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpu/mpc512x/cpu.c b/cpu/mpc512x/cpu.c
index f96a4c8..09cbd20 100644
--- a/cpu/mpc512x/cpu.c
+++ b/cpu/mpc512x/cpu.c
@@ -66,9 +66,10 @@ int checkcpu (void)
default:
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(buf2, gd->csb_clk) );
+ strmhz(buf2, gd->csb_clk),
+ gd->reset_status & 0xffff);
return 0;
}