]> git.dujemihanovic.xyz Git - u-boot.git/commit
configs: stratix10: Enable CONFIG_SPI_FLASH_USE_4K_SECTORS
authorLey Foon Tan <ley.foon.tan@intel.com>
Wed, 8 May 2019 03:07:37 +0000 (11:07 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 10 May 2019 20:48:11 +0000 (22:48 +0200)
commit8ede7515fe50f670f7a7835a24e0cff7596b6c16
treeb4089084b4566e559ea2f450f028252e3ae0c8e0
parentda0d5f6f731d44b66eb645920f7a9e6735b490cf
configs: stratix10: Enable CONFIG_SPI_FLASH_USE_4K_SECTORS

Fix SPI flash environment erase size error.

CONFIG_ENV_SECT_SIZE is set to 4KB. Enable CONFIG_SPI_FLASH_USE_4K_SECTORS
to allow erase one environment sector.

Fix error below:

SOCFPGA_STRATIX10 # saveenv
Saving Environment to SPI Flash...
SF: Detected mt25qu02g with page size 256 Bytes, erase size 64 KiB, total 256 MiB
Erasing SPI flash...SF: Erase offset/length not multiple of erase size
Failed (-22)

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
configs/socfpga_stratix10_defconfig