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>
This commit is contained in:
parent
47d3debe1a
commit
1b35721f61
|
|
@ -13,12 +13,18 @@
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <libfdt.h>
|
#include <libfdt.h>
|
||||||
#include <fsl_mc.h>
|
#include <fsl_mc.h>
|
||||||
|
#include <environment.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
init_final_memctl_regs();
|
init_final_memctl_regs();
|
||||||
|
|
||||||
|
#ifdef CONFIG_ENV_IS_NOWHERE
|
||||||
|
gd->env_addr = (ulong)&default_environment[0];
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue