summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8572ds/tlb.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-11-08 11:03:54 -0600
committerKumar Gala <galak@kernel.crashing.org>2011-11-08 11:03:54 -0600
commite4382acb1ff1c0686d86f4cac4f2e12f89c534cf (patch)
treedceb928c40f7fd0a874bdf0ec4f43f5a12506a93 /board/freescale/mpc8572ds/tlb.c
parentcfee584eeadbd6141f6729b19b424448599e4e47 (diff)
downloadu-boot-imx-e4382acb1ff1c0686d86f4cac4f2e12f89c534cf.zip
u-boot-imx-e4382acb1ff1c0686d86f4cac4f2e12f89c534cf.tar.gz
u-boot-imx-e4382acb1ff1c0686d86f4cac4f2e12f89c534cf.tar.bz2
powerpc/85xx: Fix MPC8572DS NAND build
Reduce NAND SPL build size by not include TLB entries that arent used by it. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8572ds/tlb.c')
-rw-r--r--board/freescale/mpc8572ds/tlb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/mpc8572ds/tlb.c b/board/freescale/mpc8572ds/tlb.c
index 575bdb5..6d60513 100644
--- a/board/freescale/mpc8572ds/tlb.c
+++ b/board/freescale/mpc8572ds/tlb.c
@@ -58,6 +58,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
MAS3_SX|MAS3_SR, MAS2_W|MAS2_G,
0, 2, BOOKE_PAGESZ_256M, 1),
+#ifndef CONFIG_NAND_SPL
/* *I*G* - PCI */
SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_VIRT, CONFIG_SYS_PCIE3_MEM_PHYS,
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
@@ -76,6 +77,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_IO_VIRT, CONFIG_SYS_PCIE3_IO_PHYS,
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
0, 6, BOOKE_PAGESZ_256K, 1),
+#endif
/* *I*G - NAND */
SET_TLB_ENTRY(1, CONFIG_SYS_NAND_BASE, CONFIG_SYS_NAND_BASE_PHYS,