]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mpc512x: Add display of reset status register
authorDetlev Zundel <dzu@denx.de>
Fri, 22 Jan 2010 13:47:59 +0000 (14:47 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 24 Jan 2010 14:29:29 +0000 (15:29 +0100)
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>
cpu/mpc512x/cpu.c
lib_ppc/board.c

index f96a4c8112e7b406d0b2c67241c8ede77d859780..09cbd2024db3b040a06012981d4a915a29c96181 100644 (file)
@@ -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;
 }
 
index dd22f99c67983f4585260ed0f0a31c545e87a60f..2889b2c2c516af21f444a54f10d0fe926bf8062c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2006
+ * (C) Copyright 2000-2010
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
@@ -378,8 +378,9 @@ void board_init_f (ulong bootflag)
        /* compiler optimization barrier needed for GCC >= 3.4 */
        __asm__ __volatile__("": : :"memory");
 
-#if !defined(CONFIG_CPM2) && !defined(CONFIG_MPC83xx) && \
-    !defined(CONFIG_MPC85xx) && !defined(CONFIG_MPC86xx)
+#if !defined(CONFIG_CPM2) && !defined(CONFIG_MPC512X) && \
+    !defined(CONFIG_MPC83xx) && !defined(CONFIG_MPC85xx) && \
+    !defined(CONFIG_MPC86xx)
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
 #endif