Skip to contentSkip to conversation

boards/c29xpcie: Update TLB and LAW size for IFC NAND

PATCH Superseded Prabhakar Kushwaha 1 participant 1 message Sep 24, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boards/c29xpcie: Update TLB and LAW size for IFC NAND

IFC NAND AMASK register is programmed for 64K size.

so Update TLB & LAW size accordingly.

---
Based upon git://git.denx.de/u-boot.git branch master

 board/freescale/c29xpcie/law.c |    2 +-
 board/freescale/c29xpcie/tlb.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
board/freescale/c29xpcie/law.c +1 -1
index cd8fc21..d48ec23 100644
@@ -11,7 +11,7 @@
 struct law_entry law_table[] = {
 	SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_IFC),
 	SET_LAW(CONFIG_SYS_CPLD_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_IFC),
-	SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_16K, LAW_TRGT_IF_IFC),
+	SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_IFC),
 	SET_LAW(CONFIG_SYS_PLATFORM_SRAM_BASE_PHYS, LAW_SIZE_512K,
 					LAW_TRGT_IF_PLATFORM_SRAM),
 };
board/freescale/c29xpcie/tlb.c +1 -1
index ddd1ef8..0fa1dc5 100644
@@ -50,7 +50,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
 	SET_TLB_ENTRY(1, CONFIG_SYS_NAND_BASE, CONFIG_SYS_NAND_BASE_PHYS,
 			MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
-			0, 5, BOOKE_PAGESZ_16K, 1),
+			0, 5, BOOKE_PAGESZ_64K, 1),
 
 	SET_TLB_ENTRY(1, CONFIG_SYS_PLATFORM_SRAM_BASE,
 			CONFIG_SYS_PLATFORM_SRAM_BASE_PHYS,
Signature · 1 line
1.7.9.5