diff options
author | Becky Bruce <beckyb@kernel.crashing.org> | 2010-06-17 11:37:24 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-07-16 10:55:09 -0500 |
commit | 11a3de469723a6edde776008acfccabc1fc98cac (patch) | |
tree | 2d4462d445ef9bad7fa4796b930a259e12e6c202 | |
parent | e71755f887ca03a27641947a97210ac273e146ee (diff) | |
download | u-boot-imx-11a3de469723a6edde776008acfccabc1fc98cac.zip u-boot-imx-11a3de469723a6edde776008acfccabc1fc98cac.tar.gz u-boot-imx-11a3de469723a6edde776008acfccabc1fc98cac.tar.bz2 |
fsl_law.c: Add print_laws() for FSL_CORENET platforms.
Add printing of LAWBARH/LAWBARL for FSL_CORENET platforms.
Signed-off-by: Becky Bruce <Beckyb@kernel.crashing.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r-- | drivers/misc/fsl_law.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/misc/fsl_law.c b/drivers/misc/fsl_law.c index 9688888..628bd59 100644 --- a/drivers/misc/fsl_law.c +++ b/drivers/misc/fsl_law.c @@ -193,7 +193,13 @@ void print_laws(void) printf("\nLocal Access Window Configuration\n"); for (i = 0; i < FSL_HW_NUM_LAWS; i++) { lawar = in_be32(LAWAR_ADDR(i)); +#ifdef CONFIG_FSL_CORENET + printf("LAWBARH%02d: 0x%08x LAWBARL%02d: 0x%08x", + i, in_be32(LAWBARH_ADDR(i)), + i, in_be32(LAWBARL_ADDR(i))); +#else printf("LAWBAR%02d: 0x%08x", i, in_be32(LAWBAR_ADDR(i))); +#endif printf(" LAWAR0x%02d: 0x%08x\n", i, lawar); printf("\t(EN: %d TGT: 0x%02x SIZE: ", (lawar & LAW_EN) ? 1 : 0, (lawar >> 20) & 0xff); |