Skip to contentSkip to conversation

board/ls2085a: Update env_addr after NOR flash relocation

PATCH New Prabhakar Kushwaha 2 participants 2 messages Jul 14, 2014 – Sep 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board/ls2085a: Update env_addr after NOR flash relocation

LS2085a has 2 regions in system memory map. Region1 is default map from where system boots. Once u-boot is moved to DDR, IFC is re-mapped to Region2.

So, update gd->env_addr to reflect correct address.

---
 board/freescale/ls2085a/ls2085a.c |    6 ++++++
 1 file changed, 6 insertions(+)
board/freescale/ls2085a/ls2085a.c +6 -0
index a18db1d..d19f692 100644
@@ -13,12 +13,18 @@
 #include <fdt_support.h>
 #include <libfdt.h>
 #include <fsl_mc.h>
+#include <environment.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
 	init_final_memctl_regs();
+
+#ifdef CONFIG_ENV_IS_NOWHERE
+	gd->env_addr = (ulong)&default_environment[0];
+#endif
+
 	return 0;
 }
 
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 board/ls2085a: Update env_addr after NOR flash relocation

Quoted 8 lines · Prabhakar Kushwaha

LS2085a has 2 regions in system memory map. Region1 is default map from where system boots. Once u-boot is moved to DDR, IFC is re-mapped to Region2.

So, update gd->env_addr to reflect correct address.

---

Applied to u-boot-fsl-qoriq, awaiting upstream.

York