summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2011-12-15 10:22:07 -0500
committerKumar Gala <galak@kernel.crashing.org>2012-01-13 12:56:06 -0600
commit3dc23c7c3093171d72da37cdefd82a81a5f613f5 (patch)
tree811bd3ab3f25af7832479831a664274eee131c84 /arch/powerpc/include/asm
parente2b363ff534ad943794682c60adf9cab6e3d3192 (diff)
downloadu-boot-imx-3dc23c7c3093171d72da37cdefd82a81a5f613f5.zip
u-boot-imx-3dc23c7c3093171d72da37cdefd82a81a5f613f5.tar.gz
u-boot-imx-3dc23c7c3093171d72da37cdefd82a81a5f613f5.tar.bz2
fsl_lbc: add printout of LCRR and LBCR to local bus regs
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>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/fsl_lbc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_lbc.h b/arch/powerpc/include/asm/fsl_lbc.h
index bf572b7..2a23d84 100644
--- a/arch/powerpc/include/asm/fsl_lbc.h
+++ b/arch/powerpc/include/asm/fsl_lbc.h
@@ -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))