diff options
author | Prabhakar Kushwaha <prabhakar@freescale.com> | 2014-07-14 17:15:44 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-09-24 12:33:18 -0700 |
commit | 1b35721f61207c5f3cdf924be3bb64e0ad12887c (patch) | |
tree | ab868dcc56dbf285d0e3a2a856870eca48413f88 /board | |
parent | 47d3debe1ab8315dc9ade22279e02f60eceda25b (diff) |
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 <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/ls2085a/ls2085a.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/freescale/ls2085a/ls2085a.c b/board/freescale/ls2085a/ls2085a.c index a18db1d7149..d19f692e07a 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; } |