[U-Boot] [PATCH] arch/arm: Add individual TLB size support.

Xiubo Li Li.Xiubo at freescale.com
Mon Jul 7 07:19:11 CEST 2014


This adds CONFIG_TLB_SIZE for individual board, whose TLB size maybe
larger than PGTABLE_SIZE.

Signed-off-by: Xiubo Li <Li.Xiubo at freescale.com>
---
 arch/arm/lib/board.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index dc34190..b7327ce 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -353,7 +353,11 @@ void board_init_f(ulong bootflag)
 
 #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
 	/* reserve TLB table */
+#ifdef CONFIG_TLB_SIZE
+	gd->arch.tlb_size = CONFIG_TLB_SIZE;
+#else
 	gd->arch.tlb_size = PGTABLE_SIZE;
+#endif
 	addr -= gd->arch.tlb_size;
 
 	/* round down to next 64 kB limit */
-- 
1.8.5



More information about the U-Boot mailing list