mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-15 11:46:59 +02:00
armv8: ls1043a: remove redundant code in board files
gd->env_addr will be initialized in env_init() in common/env_nowhere.c if CONFIG_ENV_IS_NOWHERE is defined. So no need to do it again. Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
1297cdb452
commit
ec93abe6f7
@ -317,10 +317,6 @@ int board_init(void)
|
|||||||
#ifdef CONFIG_LAYERSCAPE_NS_ACCESS
|
#ifdef CONFIG_LAYERSCAPE_NS_ACCESS
|
||||||
enable_layerscape_ns_access();
|
enable_layerscape_ns_access();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ENV_IS_NOWHERE
|
|
||||||
gd->env_addr = (ulong)&default_environment[0];
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#include <fsl_csu.h>
|
#include <fsl_csu.h>
|
||||||
#include <fsl_esdhc.h>
|
#include <fsl_esdhc.h>
|
||||||
#include <fsl_ifc.h>
|
#include <fsl_ifc.h>
|
||||||
#include <environment.h>
|
|
||||||
#include <fsl_sec.h>
|
#include <fsl_sec.h>
|
||||||
#include "cpld.h"
|
#include "cpld.h"
|
||||||
#ifdef CONFIG_U_QE
|
#ifdef CONFIG_U_QE
|
||||||
@ -87,10 +86,6 @@ int board_init(void)
|
|||||||
init_final_memctl_regs();
|
init_final_memctl_regs();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ENV_IS_NOWHERE
|
|
||||||
gd->env_addr = (ulong)&default_environment[0];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LAYERSCAPE_NS_ACCESS
|
#ifdef CONFIG_LAYERSCAPE_NS_ACCESS
|
||||||
enable_layerscape_ns_access();
|
enable_layerscape_ns_access();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user