summaryrefslogtreecommitdiffstats
path: root/board/freescale/corenet_ds
diff options
context:
space:
mode:
authorStephen George <stephen.george@freescale.com>2011-07-20 09:47:26 -0500
committerKumar Gala <galak@kernel.crashing.org>2011-07-29 08:53:37 -0500
commitf110fe940c7bca04cf0104952555fd931b075fac (patch)
tree5555564fc5bbe499394a8199d134daaa9c57d211 /board/freescale/corenet_ds
parent70bfb032ec592c99f78791305641b22f85fb52db (diff)
downloadblackbird-obmc-uboot-f110fe940c7bca04cf0104952555fd931b075fac.tar.gz
blackbird-obmc-uboot-f110fe940c7bca04cf0104952555fd931b075fac.zip
powerpc/85xx: Adding configuration for DCSRCR to enable 32M access
Configuring DCSRCR to define the DCSR space to be 1G instead of the default 4M. DCSRCR only allows selection of either 4M or 1G. Most DCSR registers are within 4M but the Nexus trace buffer is located at offset 16M within the DCSR. Configuring the LAW to be 32M to allow access to the Nexus trace buffer. No TLB modification is required since accessing the Nexus trace buffer from within u-boot is not required. Signed-off-by: Stephen George <stephen.george@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/corenet_ds')
-rw-r--r--board/freescale/corenet_ds/law.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/corenet_ds/law.c b/board/freescale/corenet_ds/law.c
index dd6f6f7df6..58f23c5a24 100644
--- a/board/freescale/corenet_ds/law.c
+++ b/board/freescale/corenet_ds/law.c
@@ -37,7 +37,8 @@ struct law_entry law_table[] = {
#endif
SET_LAW(PIXIS_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_LBC),
#ifdef CONFIG_SYS_DCSRBAR_PHYS
- SET_LAW(CONFIG_SYS_DCSRBAR_PHYS, LAW_SIZE_4M, LAW_TRGT_IF_DCSR),
+ /* Limit DCSR to 32M to access NPC Trace Buffer */
+ SET_LAW(CONFIG_SYS_DCSRBAR_PHYS, LAW_SIZE_32M, LAW_TRGT_IF_DCSR),
#endif
#ifdef CONFIG_SYS_NAND_BASE_PHYS
SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
OpenPOWER on IntegriCloud