mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-13 10:47:00 +02:00
armv8: fsl-layerscape: Change bootcmd update logic
Change bootcmd update logic when CONFIG_ENV_ADDR is not defined Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
This commit is contained in:
parent
4514ccef91
commit
ab748801ef
@ -1,6 +1,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0+
|
// SPDX-License-Identifier: GPL-2.0+
|
||||||
/*
|
/*
|
||||||
* Copyright 2014-2015 Freescale Semiconductor
|
* Copyright 2014-2015 Freescale Semiconductor
|
||||||
|
* Copyright 2019 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
@ -823,7 +824,11 @@ int board_late_init(void)
|
|||||||
* check if gd->env_addr is default_environment; then setenv bootcmd
|
* check if gd->env_addr is default_environment; then setenv bootcmd
|
||||||
* and mcinitcmd.
|
* and mcinitcmd.
|
||||||
*/
|
*/
|
||||||
|
#if !defined(CONFIG_ENV_ADDR) || defined(ENV_IS_EMBEDDED)
|
||||||
|
if (gd->env_addr == (ulong)&default_environment[0]) {
|
||||||
|
#else
|
||||||
if (gd->env_addr + gd->reloc_off == (ulong)&default_environment[0]) {
|
if (gd->env_addr + gd->reloc_off == (ulong)&default_environment[0]) {
|
||||||
|
#endif
|
||||||
fsl_setenv_bootcmd();
|
fsl_setenv_bootcmd();
|
||||||
fsl_setenv_mcinitcmd();
|
fsl_setenv_mcinitcmd();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user