summaryrefslogtreecommitdiff
path: root/board/freescale/ls1028a/ls1028a.c
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-10-22 15:47:23 +0200
committerSimon Glass <sjg@chromium.org>2021-10-31 12:26:44 -0600
commitb26334824b58150e82a8b202380169a9276cd161 (patch)
tree286eb808aa56853f829c0b85406ee94ef70d7e84 /board/freescale/ls1028a/ls1028a.c
parent535870f3b0fb09ee9b2885409f05304111464643 (diff)
downloadu-boot-b26334824b58150e82a8b202380169a9276cd161.tar.gz
u-boot-b26334824b58150e82a8b202380169a9276cd161.tar.bz2
u-boot-b26334824b58150e82a8b202380169a9276cd161.zip
board: freescale: various boards: Let env subsystem set gd->env_addr
Various freescale boards set gd->env_addr to default_environment in board_init(), conditional on CONFIG_ENV_IS_NOWHERE, but this is redundant, since it is done by env_init() before board_init() is called. Let the env subsystem handle this. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Cc: Ramon Fried <rfried.dev@gmail.com> Cc: Priyanka Jain <priyanka.jain@nxp.com> Cc: Mian Yousaf Kaukab <ykaukab@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/freescale/ls1028a/ls1028a.c')
-rw-r--r--board/freescale/ls1028a/ls1028a.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/board/freescale/ls1028a/ls1028a.c b/board/freescale/ls1028a/ls1028a.c
index 461c571b36..486a544d35 100644
--- a/board/freescale/ls1028a/ls1028a.c
+++ b/board/freescale/ls1028a/ls1028a.c
@@ -73,10 +73,6 @@ u32 get_lpuart_clk(void)
int board_init(void)
{
-#ifdef CONFIG_ENV_IS_NOWHERE
- gd->env_addr = (ulong)&default_environment[0];
-#endif
-
#ifdef CONFIG_FSL_CAAM
sec_init();
#endif