Skip to contentSkip to conversation

armv8: ls1046afrwy: Define CONFIG_ENV_ADDR for QSPI Boot

PATCH New Alison Wang 2 participants 2 messages Jul 22, 2019 – Aug 22, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 armv8: ls1046afrwy: Define CONFIG_ENV_ADDR for QSPI Boot

This patch defines CONFIG_ENV_ADDR for QSPI Boot which specifies the start address of the flash sector containing the environment. It fixes the issue that bootcmd is always set as default at bootup.

---
 include/configs/ls1046afrwy.h | 3 +++
 1 file changed, 3 insertions(+)
include/configs/ls1046afrwy.h +3 -0
index 791bb8dc47..8609ebfecc 100644
@@ -103,6 +103,9 @@
 #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)
 
 /* FMan */
 #ifdef CONFIG_SYS_DPAA_FMAN
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 armv8: ls1046afrwy: Define CONFIG_ENV_ADDR for QSPI Boot

Quoted 10 lines

-----Original Message-----
From: Alison Wang
Sent: Monday, July 22, 2019 12:47 PM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: Alison Wang <[email protected]>
Subject: [PATCH] armv8: ls1046afrwy: Define CONFIG_ENV_ADDR for QSPI Boot

Quoted 6 lines

This patch defines CONFIG_ENV_ADDR for QSPI Boot which specifies the start address of the flash sector containing the environment. It fixes the issue that bootcmd is always set as default at bootup.

---

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

--pk