From: Marek Vasut Date: Tue, 14 Sep 2021 03:25:32 +0000 (+0200) Subject: arm: socfpga: vining: Set default SPI NOR mode and frequency X-Git-Tag: baikal/mips/sdk5.9~15^2^2~102^2~6^2~59 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=7724b717e4b663d1d7fefc528cb06c4763110951;p=uboot.git arm: socfpga: vining: Set default SPI NOR mode and frequency The SPI NOR bus mode is 0 on this system, update it accordingly. Increase frequency to 40 MHz and enable SFDP parsing, since the flashes on this system support that and it is a huge performance improvement. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- diff --git a/configs/socfpga_vining_fpga_defconfig b/configs/socfpga_vining_fpga_defconfig index 5d8970e57c..4dcf4f7bf9 100644 --- a/configs/socfpga_vining_fpga_defconfig +++ b/configs/socfpga_vining_fpga_defconfig @@ -74,6 +74,9 @@ CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=3 CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=70 CONFIG_MMC_DW=y CONFIG_MTD=y +CONFIG_SF_DEFAULT_MODE=0x0 +CONFIG_SF_DEFAULT_SPEED=40000000 +CONFIG_SPI_FLASH_SFDP_SUPPORT=y CONFIG_SPI_FLASH_SPANSION=y CONFIG_SPI_FLASH_STMICRO=y # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set