summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2015-03-20 19:28:11 -0700
committerYork Sun <yorksun@freescale.com>2015-04-23 08:55:56 -0700
commit12eaf31c0709840d6448d45ebfaecccadc34afa3 (patch)
tree1f7a0050e84866641c07288410e9f2564a965a37 /common
parent07c6600068da31d0f7c67ac3eb92dfc4270f4c07 (diff)
downloadu-boot-imx-12eaf31c0709840d6448d45ebfaecccadc34afa3.zip
u-boot-imx-12eaf31c0709840d6448d45ebfaecccadc34afa3.tar.gz
u-boot-imx-12eaf31c0709840d6448d45ebfaecccadc34afa3.tar.bz2
armv8/fsl-lsch3: Update early MMU table
During booting, IFC is mapped to low region. After booting up, IFC is remapped to high region for larger space. The environmental variables are also stored at high region. In order to read the variables during booting, a virtual mapping is required. Cache was enabled for entire IFC space before. Actually the first two entries are big enough (4MB) to cover the boot code and environmental variables. Remove extra entries. Move OCRAM entry out of ifdef. Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 42ff18c..307124e 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -702,6 +702,12 @@ init_fnc_t init_sequence_r[] = {
/* TODO: could x86/PPC have this also perhaps? */
#ifdef CONFIG_ARM
initr_caches,
+ /* Note: For Freescale LS2 SoCs, new MMU table is created in DDR.
+ * A temporary mapping of IFC high region is since removed,
+ * so environmental variables in NOR flash is not availble
+ * until board_init() is called below to remap IFC to high
+ * region.
+ */
#endif
initr_reloc_global_data,
#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500)