public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] board/ls2085a: Update env_addr after NOR flash relocation
@ 2014-07-14 11:45 Prabhakar Kushwaha
  2014-09-25 20:59 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Prabhakar Kushwaha @ 2014-07-14 11:45 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
---
 board/freescale/ls2085a/ls2085a.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/board/freescale/ls2085a/ls2085a.c b/board/freescale/ls2085a/ls2085a.c
index a18db1d..d19f692 100644
--- a/board/freescale/ls2085a/ls2085a.c
+++ b/board/freescale/ls2085a/ls2085a.c
@@ -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;
 }
 
-- 
1.7.9.5

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

* [U-Boot] [PATCH] board/ls2085a: Update env_addr after NOR flash relocation
  2014-07-14 11:45 [U-Boot] [PATCH] board/ls2085a: Update env_addr after NOR flash relocation Prabhakar Kushwaha
@ 2014-09-25 20:59 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2014-09-25 20:59 UTC (permalink / raw)
  To: u-boot

On 07/14/2014 04:45 AM, Prabhakar Kushwaha wrote:
> 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.
> 
> Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
> ---

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

York

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

end of thread, other threads:[~2014-09-25 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-14 11:45 [U-Boot] [PATCH] board/ls2085a: Update env_addr after NOR flash relocation Prabhakar Kushwaha
2014-09-25 20:59 ` York Sun

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