All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] configs: zynqmp_kria: Deactivate CONFIG_SPI_FLASH_BAR
@ 2024-04-09  9:48 Tejas Bhumkar
  2024-04-10  6:12 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Tejas Bhumkar @ 2024-04-09  9:48 UTC (permalink / raw
  To: u-boot; +Cc: michal.simek, trini, venkatesh.abbarapu, git

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.

Signed-off-by: Tejas Bhumkar <tejas.arvind.bhumkar@amd.com>
---
Changes in v2: Updated commit message.

 configs/xilinx_zynqmp_kria_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configs/xilinx_zynqmp_kria_defconfig b/configs/xilinx_zynqmp_kria_defconfig
index 7cb8b62d32..7af8b27be9 100644
--- a/configs/xilinx_zynqmp_kria_defconfig
+++ b/configs/xilinx_zynqmp_kria_defconfig
@@ -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
-- 
2.27.0


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

* Re: [PATCH v2] configs: zynqmp_kria: Deactivate CONFIG_SPI_FLASH_BAR
  2024-04-09  9:48 [PATCH v2] configs: zynqmp_kria: Deactivate CONFIG_SPI_FLASH_BAR Tejas Bhumkar
@ 2024-04-10  6:12 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2024-04-10  6:12 UTC (permalink / raw
  To: Tejas Bhumkar, u-boot; +Cc: trini, venkatesh.abbarapu, git



On 4/9/24 11:48, Tejas Bhumkar wrote:
> 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.
> 
> Signed-off-by: Tejas Bhumkar <tejas.arvind.bhumkar@amd.com>
> ---
> Changes in v2: Updated commit message.
> 
>   configs/xilinx_zynqmp_kria_defconfig | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/configs/xilinx_zynqmp_kria_defconfig b/configs/xilinx_zynqmp_kria_defconfig
> index 7cb8b62d32..7af8b27be9 100644
> --- a/configs/xilinx_zynqmp_kria_defconfig
> +++ b/configs/xilinx_zynqmp_kria_defconfig
> @@ -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

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

end of thread, other threads:[~2024-04-10  6:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-09  9:48 [PATCH v2] configs: zynqmp_kria: Deactivate CONFIG_SPI_FLASH_BAR Tejas Bhumkar
2024-04-10  6:12 ` Michal Simek

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.