All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot
@ 2019-05-30 12:04 Pankit Garg
  2019-05-30 12:04 ` [U-Boot] [PATCH 2/2] armv8: fsl-layerscape: Change bootcmd update logic Pankit Garg
  2019-06-19 11:43 ` [U-Boot] [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot Prabhakar Kushwaha
  0 siblings, 2 replies; 5+ messages in thread
From: Pankit Garg @ 2019-05-30 12:04 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Pankit Garg <pankit.garg@nxp.com>
---
Changes for v2:
 - add NXP copyright

 include/configs/ls1046ardb.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/configs/ls1046ardb.h b/include/configs/ls1046ardb.h
index f22e863..fa90953 100644
--- a/include/configs/ls1046ardb.h
+++ b/include/configs/ls1046ardb.h
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright 2016 Freescale Semiconductor
+ * Copyright 2019 NXP
  */
 
 #ifndef __LS1046ARDB_H__
@@ -162,6 +163,8 @@
 #define CONFIG_ENV_SIZE			0x2000		/* 8KB */
 #define CONFIG_ENV_OFFSET		0x500000	/* 5MB */
 #define CONFIG_ENV_SECT_SIZE		0x40000		/* 256KB */
+#define CONFIG_SYS_FSL_QSPI_BASE        0x40000000
+#define CONFIG_ENV_ADDR CONFIG_SYS_FSL_QSPI_BASE + CONFIG_ENV_OFFSET
 #else
 #if defined(CONFIG_SD_BOOT)
 #define CONFIG_SYS_MMC_ENV_DEV		0
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] armv8: fsl-layerscape: Change bootcmd update logic
  2019-05-30 12:04 [U-Boot] [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot Pankit Garg
@ 2019-05-30 12:04 ` Pankit Garg
  2019-06-19 11:43   ` Prabhakar Kushwaha
  2019-06-19 11:43 ` [U-Boot] [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot Prabhakar Kushwaha
  1 sibling, 1 reply; 5+ messages in thread
From: Pankit Garg @ 2019-05-30 12:04 UTC (permalink / raw)
  To: u-boot

Change bootcmd update logic when CONFIG_ENV_ADDR is not defined

Signed-off-by: Pankit Garg <pankit.garg@nxp.com>
---
Changes for v2:
 - add NXP copyright

 arch/arm/cpu/armv8/fsl-layerscape/soc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
index aeaf7b8..a4b6faf 100644
--- 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>
@@ -874,7 +875,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();
 	}
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] armv8: fsl-layerscape: Change bootcmd update logic
  2019-05-30 12:04 ` [U-Boot] [PATCH 2/2] armv8: fsl-layerscape: Change bootcmd update logic Pankit Garg
@ 2019-06-19 11:43   ` Prabhakar Kushwaha
  0 siblings, 0 replies; 5+ messages in thread
From: Prabhakar Kushwaha @ 2019-06-19 11:43 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: Pankit Garg
> Sent: Thursday, May 30, 2019 5:34 PM
> To: u-boot at lists.denx.de
> Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Jagdish Gediya
> <jagdish.gediya@nxp.com>
> Subject: [PATCH 2/2] 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>
> ---
This patch has been applied to fsl-qoriq master, awaiting upstream.

--pk

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot
  2019-05-30 12:04 [U-Boot] [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot Pankit Garg
  2019-05-30 12:04 ` [U-Boot] [PATCH 2/2] armv8: fsl-layerscape: Change bootcmd update logic Pankit Garg
@ 2019-06-19 11:43 ` Prabhakar Kushwaha
  1 sibling, 0 replies; 5+ messages in thread
From: Prabhakar Kushwaha @ 2019-06-19 11:43 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: Pankit Garg
> Sent: Thursday, May 30, 2019 5:34 PM
> To: u-boot at lists.denx.de
> Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Jagdish Gediya
> <jagdish.gediya@nxp.com>
> Subject: [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi
> boot
> 
> Signed-off-by: Pankit Garg <pankit.garg@nxp.com>
> ---

This patch has been applied to fsl-qoriq master, awaiting upstream.

--pk

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] armv8: fsl-layerscape: Change bootcmd update logic
  2019-05-27 12:24 Pankit Garg
@ 2019-05-27 12:24 ` Pankit Garg
  0 siblings, 0 replies; 5+ messages in thread
From: Pankit Garg @ 2019-05-27 12:24 UTC (permalink / raw)
  To: u-boot

Change bootcmd update logic when CONFIG_ENV_ADDR is not defined

Signed-off-by: Pankit Garg <pankit.garg@nxp.com>
---
 arch/arm/cpu/armv8/fsl-layerscape/soc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
index aeaf7b8..09f6413 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
@@ -874,7 +874,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();
 	}
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-19 11:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30 12:04 [U-Boot] [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot Pankit Garg
2019-05-30 12:04 ` [U-Boot] [PATCH 2/2] armv8: fsl-layerscape: Change bootcmd update logic Pankit Garg
2019-06-19 11:43   ` Prabhakar Kushwaha
2019-06-19 11:43 ` [U-Boot] [PATCH 1/2] ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot Prabhakar Kushwaha
  -- strict thread matches above, loose matches on Subject: below --
2019-05-27 12:24 Pankit Garg
2019-05-27 12:24 ` [U-Boot] [PATCH 2/2] armv8: fsl-layerscape: Change bootcmd update logic Pankit Garg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.