|
@@ -58,7 +58,8 @@ static int setup_flash_device(void)
|
|
|
|
|
|
/* speed and mode will be read from DT */
|
|
/* speed and mode will be read from DT */
|
|
ret = spi_flash_probe_bus_cs(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS,
|
|
ret = spi_flash_probe_bus_cs(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS,
|
|
- 0, 0, &new);
|
|
|
|
|
|
+ CONFIG_ENV_SPI_MAX_HZ, CONFIG_ENV_SPI_MODE,
|
|
|
|
+ &new);
|
|
if (ret) {
|
|
if (ret) {
|
|
set_default_env("spi_flash_probe_bus_cs() failed", 0);
|
|
set_default_env("spi_flash_probe_bus_cs() failed", 0);
|
|
return ret;
|
|
return ret;
|