public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] armv8: fsl-layerscape: Fix early MMU table for nand boot
@ 2015-11-26  4:41 York Sun
  2015-11-30 19:31 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: York Sun @ 2015-11-26  4:41 UTC (permalink / raw)
  To: u-boot

The early MMU table doesn't enable all addresses. Unused addresses
are marked as invalid, as introduced by commit 9979922. An entry
was missing for NAND flash space, causing nand boot failure.

Signed-off-by: York Sun <yorksun@freescale.com>
CC: Alison Wang <alison.wang@freescale.com>
CC: Prabhakar Kushwaha <prabhakar@freescale.com>

---

Changes in v2:
  Reduce the IFC mapped for early MMU, up to NOR flash base to
  avoid conflict
  Tested on LS2085AQDS

 arch/arm/include/asm/arch-fsl-layerscape/cpu.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/include/asm/arch-fsl-layerscape/cpu.h b/arch/arm/include/asm/arch-fsl-layerscape/cpu.h
index 727fd24..4544094 100644
--- a/arch/arm/include/asm/arch-fsl-layerscape/cpu.h
+++ b/arch/arm/include/asm/arch-fsl-layerscape/cpu.h
@@ -130,6 +130,10 @@ static const struct sys_mmu_table early_mmu_table[] = {
 	  CONFIG_SYS_FSL_IFC_SIZE1, MT_DEVICE_NGNRNE, PMD_SECT_NON_SHARE },
 	{ CONFIG_SYS_FSL_DRAM_BASE1, CONFIG_SYS_FSL_DRAM_BASE1,
 	  CONFIG_SYS_FSL_DRAM_SIZE1, MT_NORMAL, PMD_SECT_OUTER_SHARE },
+	/* Map IFC region #2 up to CONFIG_SYS_FLASH_BASE for NAND boot */
+	{ CONFIG_SYS_FSL_IFC_BASE2, CONFIG_SYS_FSL_IFC_BASE2,
+	  CONFIG_SYS_FLASH_BASE - CONFIG_SYS_FSL_IFC_BASE2,
+	  MT_DEVICE_NGNRNE, PMD_SECT_NON_SHARE },
 	{ CONFIG_SYS_FSL_DCSR_BASE, CONFIG_SYS_FSL_DCSR_BASE,
 	  CONFIG_SYS_FSL_DCSR_SIZE, MT_DEVICE_NGNRNE,
 	  PMD_SECT_NON_SHARE | PMD_SECT_PXN | PMD_SECT_UXN },
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH v2] armv8: fsl-layerscape: Fix early MMU table for nand boot
  2015-11-26  4:41 [U-Boot] [PATCH v2] armv8: fsl-layerscape: Fix early MMU table for nand boot York Sun
@ 2015-11-30 19:31 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2015-11-30 19:31 UTC (permalink / raw)
  To: u-boot



On 11/25/2015 08:41 PM, York Sun wrote:
> The early MMU table doesn't enable all addresses. Unused addresses
> are marked as invalid, as introduced by commit 9979922. An entry
> was missing for NAND flash space, causing nand boot failure.
> 
> Signed-off-by: York Sun <yorksun@freescale.com>
> CC: Alison Wang <alison.wang@freescale.com>
> CC: Prabhakar Kushwaha <prabhakar@freescale.com>
> 
> ---
> 
> Changes in v2:
>   Reduce the IFC mapped for early MMU, up to NOR flash base to
>   avoid conflict
>   Tested on LS2085AQDS
> 
>  arch/arm/include/asm/arch-fsl-layerscape/cpu.h |    4 ++++
>  1 file changed, 4 insertions(+)

Applied to fsl-qoriq master.

York

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-30 19:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26  4:41 [U-Boot] [PATCH v2] armv8: fsl-layerscape: Fix early MMU table for nand boot York Sun
2015-11-30 19:31 ` York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox