aboutsummaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorSwapna Gurumani <swapna.gurumani@microchip.com>2019-12-02 21:06:10 +0000
committerEugen Hristev <eugen.hristev@microchip.com>2019-12-10 12:43:50 +0200
commite50d238a1ce856d3e16bbc279a6e92a0c2b5fb4f (patch)
tree3d6db51ad2d97f15d290527bd679fe8785323c2e /configs
parentf3510e9754e1163e74e3606880b5698fcaa08a3a (diff)
downloadu-boot-e50d238a1ce856d3e16bbc279a6e92a0c2b5fb4f.zip
u-boot-e50d238a1ce856d3e16bbc279a6e92a0c2b5fb4f.tar.gz
u-boot-e50d238a1ce856d3e16bbc279a6e92a0c2b5fb4f.tar.bz2
configs: sama5d27_som1_ek: Add default config to read ENV from QSPI
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>
Diffstat (limited to 'configs')
-rw-r--r--configs/sama5d27_som1_ek_qspiflash_defconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/configs/sama5d27_som1_ek_qspiflash_defconfig b/configs/sama5d27_som1_ek_qspiflash_defconfig
index a77cc9d..7328566 100644
--- a/configs/sama5d27_som1_ek_qspiflash_defconfig
+++ b/configs/sama5d27_som1_ek_qspiflash_defconfig
@@ -47,6 +47,14 @@ 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_SYS_RELOC_GD_ENV_ADDR=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