ramips: enable variable sector size erasure for all subtarget
authorShiji Yang <yangshiji66@qq.com>
Sat, 13 May 2023 13:00:59 +0000 (21:00 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 18 May 2023 14:46:16 +0000 (16:46 +0200)
Make use of minor sector size (4k) on supported flash chips to improve
spi read/write performance.

Tested on ramips/mt7628: Motorola MWR03

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/mt76x8/config-5.15
target/linux/ramips/rt288x/config-5.15
target/linux/ramips/rt305x/config-5.15
target/linux/ramips/rt3883/config-5.15

index 5a82edfb1020102e74015db2821a4b909e9826fd..7248aa6633227422018d1c06228734643e1f6a70 100644 (file)
@@ -116,6 +116,7 @@ CONFIG_MTD_CMDLINE_PARTS=y
 CONFIG_MTD_PARSER_TRX=y
 CONFIG_MTD_PHYSMAP=y
 CONFIG_MTD_SPI_NOR=y
+CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y
 CONFIG_MTD_SPLIT_TPLINK_FW=y
 CONFIG_MTD_SPLIT_UIMAGE_FW=y
 CONFIG_MTD_VIRT_CONCAT=y
index 19a71d67ea8a983bb6c72191555f62dd2bd562e4..0e4afe367efdc3b25484f2e77764c84fa4570a38 100644 (file)
@@ -103,6 +103,7 @@ CONFIG_MODULES_USE_ELF_REL=y
 CONFIG_MTD_CMDLINE_PARTS=y
 CONFIG_MTD_PHYSMAP=y
 CONFIG_MTD_SPI_NOR=y
+CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y
 CONFIG_MTD_SPLIT_LZMA_FW=y
 CONFIG_MTD_SPLIT_UIMAGE_FW=y
 CONFIG_MTD_SPLIT_WRGG_FW=y
index 2c2fc37a63256770e0989bc37ffd79e29c4802f9..fccc7370a50304732cf22e60ef600d91eceab575 100644 (file)
@@ -106,7 +106,7 @@ CONFIG_MODULES_USE_ELF_REL=y
 CONFIG_MTD_CMDLINE_PARTS=y
 CONFIG_MTD_PHYSMAP=y
 CONFIG_MTD_SPI_NOR=y
-CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
+CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y
 CONFIG_MTD_SPLIT_JIMAGE_FW=y
 CONFIG_MTD_SPLIT_SEAMA_FW=y
 CONFIG_MTD_SPLIT_UIMAGE_FW=y
index 70d879730679318719bf9a00e53e80fb4850184f..3d412e8b9d958706f5be85a1229b669d5bed1646 100644 (file)
@@ -104,7 +104,7 @@ CONFIG_MODULES_USE_ELF_REL=y
 CONFIG_MTD_CMDLINE_PARTS=y
 CONFIG_MTD_PHYSMAP=y
 CONFIG_MTD_SPI_NOR=y
-CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
+CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y
 CONFIG_MTD_SPLIT_SEAMA_FW=y
 CONFIG_MTD_SPLIT_UIMAGE_FW=y
 CONFIG_NEED_DMA_MAP_STATE=y