From: Prabhakar Kushwaha Date: Mon, 14 Jul 2014 11:45:44 +0000 (+0530) Subject: board/ls2085a: Update env_addr after NOR flash relocation X-Git-Tag: v2014.10-rc3~13^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b35721f61207c5f3cdf924be3bb64e0ad12887c;p=platform%2Fkernel%2Fu-boot.git 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. Signed-off-by: Prabhakar Kushwaha Reviewed-by: York Sun --- 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 #include #include +#include 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; }