fsl_lbc: add printout of LCRR and LBCR to local bus regs
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 15 Dec 2011 15:22:07 +0000 (10:22 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 13 Jan 2012 18:56:06 +0000 (12:56 -0600)
It can be handy to have these in the output when trying to
debug odd behaviour.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
arch/powerpc/include/asm/fsl_lbc.h

index 587576bacf98b066424baf7984010ebcd7665501..023ac9ab30e6fd440728d035b65fcc038b629fc8 100644 (file)
@@ -28,6 +28,8 @@ void print_lbc_regs(void)
                printf("BR%d\t0x%08X\tOR%d\t0x%08X\n",
                       i, get_lbc_br(i), i, get_lbc_or(i));
        }
+       printf("LBCR\t0x%08X\tLCRR\t0x%08X\n",
+                      get_lbc_lbcr(), get_lbc_lcrr());
 }
 
 void init_early_memctl_regs(void)
index bf572b78e1fb528e156afcd5808409884635146f..2a23d84cba5ffd4f2300da684296ac2c791d60bc 100644 (file)
@@ -475,6 +475,8 @@ extern void init_early_memctl_regs(void);
 extern void upmconfig(uint upm, uint *table, uint size);
 
 #define LBC_BASE_ADDR ((fsl_lbc_t *)CONFIG_SYS_LBC_ADDR)
+#define get_lbc_lcrr() (in_be32(&(LBC_BASE_ADDR)->lcrr))
+#define get_lbc_lbcr() (in_be32(&(LBC_BASE_ADDR)->lbcr))
 #define get_lbc_br(i) (in_be32(&(LBC_BASE_ADDR)->bank[i].br))
 #define get_lbc_or(i) (in_be32(&(LBC_BASE_ADDR)->bank[i].or))
 #define set_lbc_br(i, v) (out_be32(&(LBC_BASE_ADDR)->bank[i].br, v))