projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4514cce
)
armv8: fsl-layerscape: Change bootcmd update logic
author
Pankit Garg
<
[email protected]
>
Thu, 30 May 2019 12:04:15 +0000
(12:04 +0000)
committer
Prabhakar Kushwaha
<
[email protected]
>
Wed, 19 Jun 2019 07:24:57 +0000
(12:54 +0530)
Change bootcmd update logic when CONFIG_ENV_ADDR is not defined
Signed-off-by: Pankit Garg <
[email protected]
>
Reviewed-by: Prabhakar Kushwaha <
[email protected]
>
arch/arm/cpu/armv8/fsl-layerscape/soc.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv8/fsl-layerscape/soc.c
b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
index c53131f74af27bd0b6757a92aa6128d4abfade35..7414215208cba49e8271fbb8d9db5de0b447c319 100644
(file)
--- a/
arch/arm/cpu/armv8/fsl-layerscape/soc.c
+++ b/
arch/arm/cpu/armv8/fsl-layerscape/soc.c
@@
-1,6
+1,7
@@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2014-2015 Freescale Semiconductor
+ * Copyright 2019 NXP
*/
#include <common.h>
@@
-823,7
+824,11
@@
int board_late_init(void)
* check if gd->env_addr is default_environment; then setenv bootcmd
* 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]) {
+#endif
fsl_setenv_bootcmd();
fsl_setenv_mcinitcmd();
}