mpc85xx: Add reginfo command
[oweals/u-boot.git] / arch / powerpc / cpu / mpc85xx / cpu.c
index 9cf2ef9c762f9f4a4056c4c8d981ab0e4662733c..790a6a4a4501c5b5453343663b889baaa651f4fe 100644 (file)
@@ -32,6 +32,8 @@
 #include <fsl_esdhc.h>
 #include <asm/cache.h>
 #include <asm/io.h>
+#include <asm/mmu.h>
+#include <asm/fsl_law.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -322,3 +324,14 @@ int cpu_mmc_init(bd_t *bis)
        return 0;
 #endif
 }
+
+/*
+ * Print out the state of various machine registers.
+ * Currently prints out LAWs, BR0/OR0, and TLBs
+ */
+void mpc85xx_reginfo(void)
+{
+       print_tlbcam();
+       print_laws();
+       print_lbc_regs();
+}