Skip to contentSkip to conversation

configs: zynqmp_kria: Deactivate CONFIG_SPI_FLASH_BAR

PATCH Applied Tejas Bhumkar 2 participants 2 messages Apr 9, 2024 – Apr 10, 2024 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configs: zynqmp_kria: Deactivate CONFIG_SPI_FLASH_BAR

The Kria board features a recovery application that activates when the FW_EN button is pressed.
Upon power-up flash operates in 3B mode, However, the recovery application changes it back to 4B mode.
Currently, after a reset, u-boot activates CONFIG_SPI_FLASH_BAR and assumes the flash is in 3B mode. However, there's no code or reset lines connected to the flash that could return it to 3B mode. To resolve this issue, changes were made to disable CONFIG_SPI_FLASH_BAR, which activates 4-byte opcodes.

---
Changes in v2: Updated commit message.

 configs/xilinx_zynqmp_kria_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/xilinx_zynqmp_kria_defconfig +0 -1
index 7cb8b62d32..7af8b27be9 100644
@@ -155,7 +155,6 @@ CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
 CONFIG_DM_MTD=y
-CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_STMICRO=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_SPI_FLASH_MTD=y
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 22 lines · Tejas Bhumkar

The Kria board features a recovery application that activates when the FW_EN button is pressed.
Upon power-up flash operates in 3B mode, However, the recovery application changes it back to 4B mode.
Currently, after a reset, u-boot activates CONFIG_SPI_FLASH_BAR and assumes the flash is in 3B mode. However, there's no code or reset lines connected to the flash that could return it to 3B mode. To resolve this issue, changes were made to disable CONFIG_SPI_FLASH_BAR, which activates 4-byte opcodes.

---
Changes in v2: Updated commit message.

  configs/xilinx_zynqmp_kria_defconfig | 1 -
  1 file changed, 1 deletion(-)
configs/xilinx_zynqmp_kria_defconfig +0 -0
index 7cb8b62d32..7af8b27be9 100644

configs/xilinx_zynqmp_kria_defconfig CONFIG_MMC_HS200_SUPPORT=y · line 160

Quoted 7 lines
configs/xilinx_zynqmp_kria_defconfig +0 -1
@@ -155,7 +155,6 @@ CONFIG_MMC_HS200_SUPPORT=y
  CONFIG_MMC_SDHCI=y
  CONFIG_MMC_SDHCI_ZYNQ=y
  CONFIG_DM_MTD=y
-CONFIG_SPI_FLASH_BAR=y
  CONFIG_SPI_FLASH_STMICRO=y
  # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
  CONFIG_SPI_FLASH_MTD=y

Applied.
M