Skip to contentSkip to conversation

board: zynqmp: allow env in fat/ext when booting out of qspi

PATCH Applied Neal Frager 2 participants 2 messages Jan 6 – Jan 12 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: zynqmp: allow env in fat/ext when booting out of qspi

Allow saving the environment in fat and in ext4 when bootmode is qspi.

---
 board/xilinx/zynqmp/zynqmp.c | 4 ++++
 1 file changed, 4 insertions(+)
board/xilinx/zynqmp/zynqmp.c +4 -0
index 3b28ba62374..769e52bcfb5 100644
@@ -628,6 +628,10 @@ enum env_location env_get_location(enum env_operation op, int prio)
 	case QSPI_MODE_32BIT:
 		if (IS_ENABLED(CONFIG_ENV_IS_IN_SPI_FLASH))
 			return ENVL_SPI_FLASH;
+		if (IS_ENABLED(CONFIG_ENV_IS_IN_FAT))
+			return ENVL_FAT;
+		if (IS_ENABLED(CONFIG_ENV_IS_IN_EXT4))
+			return ENVL_EXT4;
 		return ENVL_NOWHERE;
 	case JTAG_MODE:
 	default:
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 13 lines · Neal Frager

Allow saving the environment in fat and in ext4 when bootmode is qspi.

---
  board/xilinx/zynqmp/zynqmp.c | 4 ++++
  1 file changed, 4 insertions(+)
board/xilinx/zynqmp/zynqmp.c +0 -0
index 3b28ba62374..769e52bcfb5 100644

board/xilinx/zynqmp/zynqmp.c enum env_location env_get_location(enum env_operation op, int prio) · line 637

Quoted 10 lines
board/xilinx/zynqmp/zynqmp.c +4 -0
@@ -628,6 +628,10 @@ enum env_location env_get_location(enum env_operation op, int prio)
  	case QSPI_MODE_32BIT:
  		if (IS_ENABLED(CONFIG_ENV_IS_IN_SPI_FLASH))
  			return ENVL_SPI_FLASH;
+		if (IS_ENABLED(CONFIG_ENV_IS_IN_FAT))
+			return ENVL_FAT;
+		if (IS_ENABLED(CONFIG_ENV_IS_IN_EXT4))
+			return ENVL_EXT4;
  		return ENVL_NOWHERE;
  	case JTAG_MODE:
  	default:

Applied.
M