diff options
author | Qianyu Gong <qianyu.gong@nxp.com> | 2016-04-26 04:51:42 (GMT) |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-05-18 15:51:45 (GMT) |
commit | ec93abe6f722e6e0103f96ee01bcd376e246f111 (patch) | |
tree | d14fe4a9a6fe12cd22ecad5f5130973d5464f86f /board | |
parent | 1297cdb452fcdc6e7149c6761e43629f9c732010 (diff) | |
download | u-boot-ec93abe6f722e6e0103f96ee01bcd376e246f111.tar.xz |
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/ls1043aqds/ls1043aqds.c | 4 | ||||
-rw-r--r-- | board/freescale/ls1043ardb/ls1043ardb.c | 5 |
2 files changed, 0 insertions, 9 deletions
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c index fc097d9..ca393e8 100644 --- a/board/freescale/ls1043aqds/ls1043aqds.c +++ b/board/freescale/ls1043aqds/ls1043aqds.c @@ -317,10 +317,6 @@ int board_init(void) #ifdef CONFIG_LAYERSCAPE_NS_ACCESS enable_layerscape_ns_access(); #endif - -#ifdef CONFIG_ENV_IS_NOWHERE - gd->env_addr = (ulong)&default_environment[0]; -#endif return 0; } diff --git a/board/freescale/ls1043ardb/ls1043ardb.c b/board/freescale/ls1043ardb/ls1043ardb.c index 8d80135..2ed5ce1 100644 --- a/board/freescale/ls1043ardb/ls1043ardb.c +++ b/board/freescale/ls1043ardb/ls1043ardb.c @@ -19,7 +19,6 @@ #include <fsl_csu.h> #include <fsl_esdhc.h> #include <fsl_ifc.h> -#include <environment.h> #include <fsl_sec.h> #include "cpld.h" #ifdef CONFIG_U_QE @@ -87,10 +86,6 @@ int board_init(void) init_final_memctl_regs(); #endif -#ifdef CONFIG_ENV_IS_NOWHERE - gd->env_addr = (ulong)&default_environment[0]; -#endif - #ifdef CONFIG_LAYERSCAPE_NS_ACCESS enable_layerscape_ns_access(); #endif |