diff mbox series

[U-Boot] configs: sama5d27_som1_ek: Add default config to read ENV from QSPI

Message ID 20191202210554.4646-1-swapna.gurumani@microchip.com
State Accepted
Delegated to: Eugen Hristev
Headers show
Series [U-Boot] configs: sama5d27_som1_ek: Add default config to read ENV from QSPI | expand

Commit Message

Swapna.Gurumani@microchip.com Dec. 2, 2019, 9:06 p.m. UTC
From: Swapna Gurumani <swapna.gurumani@microchip.com>

In the initial SPI flash setup, the default bus mode being used was 3,
which is incorrect, causing a CRC error when the ENV was being read from
QSPI. Setting the default bus mode to 0 which is the correct mode.

Signed-off-by: Swapna Gurumani <swapna.gurumani@microchip.com>
---
 configs/sama5d27_som1_ek_qspiflash_defconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Eugen Hristev Dec. 10, 2019, 10:47 a.m. UTC | #1
On 02.12.2019 23:06, Swapna Gurumani - C40450 wrote:
> From: Swapna Gurumani <swapna.gurumani@microchip.com>
> 
> In the initial SPI flash setup, the default bus mode being used was 3,
> which is incorrect, causing a CRC error when the ENV was being read from
> QSPI. Setting the default bus mode to 0 which is the correct mode.
> 
> Signed-off-by: Swapna Gurumani <swapna.gurumani@microchip.com>


Applied to u-boot-atmel/master, thanks !
diff mbox series

Patch

diff --git a/configs/sama5d27_som1_ek_qspiflash_defconfig b/configs/sama5d27_som1_ek_qspiflash_defconfig
index 128b6645f6..2b11ec5974 100644
--- a/configs/sama5d27_som1_ek_qspiflash_defconfig
+++ b/configs/sama5d27_som1_ek_qspiflash_defconfig
@@ -45,6 +45,14 @@  CONFIG_SPL_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="at91-sama5d27_som1_ek"
 CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-parent dmas dma-names"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_USE_ENV_SPI_BUS=y
+CONFIG_ENV_SPI_BUS=0
+CONFIG_USE_ENV_SPI_CS=y
+CONFIG_ENV_SPI_CS=0
+CONFIG_USE_ENV_SPI_MAX_HZ=y
+CONFIG_ENV_SPI_MAX_HZ=50000000
+CONFIG_USE_ENV_SPI_MODE=y
+CONFIG_ENV_SPI_MODE=0x0
 CONFIG_DM=y
 CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y