[openwrt/openwrt] ramips: enable variable sector size erasure for all subtarget
LEDE Commits
lede-commits at lists.infradead.org
Thu May 18 07:50:16 PDT 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d343a15314195023c7c77884c86df4629f1bfa76
commit d343a15314195023c7c77884c86df4629f1bfa76
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Sat May 13 21:00:59 2023 +0800
ramips: enable variable sector size erasure for all subtarget
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 at qq.com>
---
target/linux/ramips/mt76x8/config-5.15 | 1 +
target/linux/ramips/rt288x/config-5.15 | 1 +
target/linux/ramips/rt305x/config-5.15 | 2 +-
target/linux/ramips/rt3883/config-5.15 | 2 +-
4 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/target/linux/ramips/mt76x8/config-5.15 b/target/linux/ramips/mt76x8/config-5.15
index 5a82edfb10..7248aa6633 100644
--- a/target/linux/ramips/mt76x8/config-5.15
+++ b/target/linux/ramips/mt76x8/config-5.15
@@ -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
diff --git a/target/linux/ramips/rt288x/config-5.15 b/target/linux/ramips/rt288x/config-5.15
index 19a71d67ea..0e4afe367e 100644
--- a/target/linux/ramips/rt288x/config-5.15
+++ b/target/linux/ramips/rt288x/config-5.15
@@ -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
diff --git a/target/linux/ramips/rt305x/config-5.15 b/target/linux/ramips/rt305x/config-5.15
index 2c2fc37a63..fccc7370a5 100644
--- a/target/linux/ramips/rt305x/config-5.15
+++ b/target/linux/ramips/rt305x/config-5.15
@@ -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
diff --git a/target/linux/ramips/rt3883/config-5.15 b/target/linux/ramips/rt3883/config-5.15
index 70d8797306..3d412e8b9d 100644
--- a/target/linux/ramips/rt3883/config-5.15
+++ b/target/linux/ramips/rt3883/config-5.15
@@ -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
More information about the lede-commits
mailing list