mediatek: mt7622: use variable sector size for spi-nor
authorDaniel Golle <daniel@makrotopia.org>
Sun, 28 Aug 2022 15:05:30 +0000 (16:05 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 3 Sep 2022 01:00:16 +0000 (02:00 +0100)
Make use of minor sector size (4k) on supported SPI-NOR flash chips.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 51f4c8417819bc0ba6bc1808328478503e179fc4)

target/linux/mediatek/mt7622/config-5.10

index 0c71b39cf06d0045e834367c6ac5092ece3c8130..6037f1ba68802f9dbec9d211d00d235dbffbfc97 100644 (file)
@@ -257,6 +257,7 @@ CONFIG_MTD_PARSER_TRX=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_MTD_SPI_NAND=y
 CONFIG_MTD_SPI_NOR=y
+CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y
 CONFIG_MTD_SPLIT_FIRMWARE=y
 CONFIG_MTD_SPLIT_FIT_FW=y
 CONFIG_MTD_UBI=y