ath79: enable variable sector size erasure for generic subtarget
authorShiji Yang <yangshiji66@qq.com>
Tue, 30 May 2023 08:50:09 +0000 (16:50 +0800)
committerDavid Bauer <mail@david-bauer.net>
Fri, 8 Sep 2023 16:06:30 +0000 (18:06 +0200)
Make use of minor sector size (4k) erasure on supported flash chips
to improve spi read/write performance.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ath79/generic/config-default

index d8c674cba7e0545fa25b19af7e656b6c64841abc..57cc9447d835ac3920bc310eb12c999ef0c991f5 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_LEDS_RESET=y
 CONFIG_MARVELL_PHY=y
 CONFIG_MICREL_PHY=y
 CONFIG_MTD_REDBOOT_PARTS=y
+CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y
 CONFIG_MTD_SPLIT_EVA_FW=y
 CONFIG_NVMEM_SYSFS=y
 CONFIG_NVMEM_U_BOOT_ENV=y