]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: da8xxevm: Fix Environmental CRC error
authorAdam Ford <aford173@gmail.com>
Tue, 20 Nov 2018 14:43:13 +0000 (08:43 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 27 Nov 2018 03:52:12 +0000 (22:52 -0500)
When the spi_flash_probe_bus_cs() was previously called, it was
called using 0's for two values where CONFIG_ENV_SPI_MAX_HZ and
CONFIG_ENV_SPI_MODE are now used.  When changed this
caused the environment to fail the CRC check and the default
was used.  This patch defines both of these values back 0.

Fixes: 25a17652c9c2 ("fix: env: Fix the SPI flash device setup
for DM mode")

Signed-off-by: Adam Ford <aford173@gmail.com>
include/configs/da850evm.h

index ba878eb13be1693266527f03e93af5adebc6f75a..14a3046f19e33e10eda60c2d876aeb3d42913714 100644 (file)
 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_SYS_SPI_BASE            DAVINCI_SPI1_BASE
 #define CONFIG_SF_DEFAULT_SPEED                30000000
-#define CONFIG_ENV_SPI_MAX_HZ  CONFIG_SF_DEFAULT_SPEED
 #endif
+#define CONFIG_ENV_SPI_MAX_HZ  0
+#define CONFIG_ENV_SPI_MODE    0
 
 #ifdef CONFIG_USE_SPIFLASH
 #define CONFIG_SYS_SPI_U_BOOT_OFFS     0x8000