]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/freescale/corenet_ds/tlb.c
powerpc: Add P3041DS/P5020DS board support (uses corenet_ds code)
[people/ms/u-boot.git] / board / freescale / corenet_ds / tlb.c
index fe77e798a8c311ff8deb20ff91316b2502e0fbfd..38736b449687b1c750689da61a7e530d32ff57f8 100644 (file)
@@ -117,6 +117,16 @@ struct fsl_e_tlb_entry tlb_table[] = {
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 13, BOOKE_PAGESZ_4M, 1),
 #endif
+#ifdef CONFIG_SYS_NAND_BASE
+       /*
+        * *I*G - NAND
+        * entry 14 and 15 has been used hard coded, they will be disabled
+        * in cpu_init_f, so we use entry 16 for nand.
+        */
+       SET_TLB_ENTRY(1, CONFIG_SYS_NAND_BASE, CONFIG_SYS_NAND_BASE_PHYS,
+                       MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
+                       0, 16, BOOKE_PAGESZ_1M, 1),
+#endif
 };
 
 int num_tlb_entries = ARRAY_SIZE(tlb_table);