summaryrefslogtreecommitdiffstats
path: root/board/freescale/p1_p2_rdb/tlb.c
diff options
context:
space:
mode:
authorDipen Dudhat <dipen.dudhat@freescale.com>2009-10-08 13:33:18 +0530
committerKumar Gala <galak@kernel.crashing.org>2009-10-16 10:21:39 -0500
commitf7780ec977e545b83bc5068e0957d640f1d98f13 (patch)
tree9a63f9a66c4c66e2a23c85bbc94c29d9c10bc789 /board/freescale/p1_p2_rdb/tlb.c
parentd11823ca3cb551814ffcd926402c8bcf3a7eff35 (diff)
downloadblackbird-obmc-uboot-f7780ec977e545b83bc5068e0957d640f1d98f13.tar.gz
blackbird-obmc-uboot-f7780ec977e545b83bc5068e0957d640f1d98f13.zip
ppc/P1_P2_RDB: NAND Boot Support
NAND Boot support for P1 and P2 series RDB platforms. This patch is derived from NAND Boot support on MPC8536DS. Signed-off-by: Dipen Dudhat <dipen.dudhat@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/p1_p2_rdb/tlb.c')
-rw-r--r--board/freescale/p1_p2_rdb/tlb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/p1_p2_rdb/tlb.c b/board/freescale/p1_p2_rdb/tlb.c
index cf9bffed5f..0009913eaa 100644
--- a/board/freescale/p1_p2_rdb/tlb.c
+++ b/board/freescale/p1_p2_rdb/tlb.c
@@ -78,6 +78,16 @@ struct fsl_e_tlb_entry tlb_table[] = {
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
0, 6, BOOKE_PAGESZ_1M, 1),
+#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SYS_INIT_L2_ADDR)
+ /* *I*G - L2SRAM */
+ SET_TLB_ENTRY(1, CONFIG_SYS_INIT_L2_ADDR, CONFIG_SYS_INIT_L2_ADDR_PHYS,
+ MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
+ 0, 7, BOOKE_PAGESZ_256K, 1),
+ SET_TLB_ENTRY(1, CONFIG_SYS_INIT_L2_ADDR + 0x40000,
+ CONFIG_SYS_INIT_L2_ADDR_PHYS + 0x40000,
+ MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
+ 0, 8, BOOKE_PAGESZ_256K, 1),
+#endif
};
int num_tlb_entries = ARRAY_SIZE(tlb_table);
OpenPOWER on IntegriCloud