summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJi Sheng Teoh <jisheng.teoh@starfivetech.com>2024-03-06 14:44:32 +0300
committerJi Sheng Teoh <jisheng.teoh@starfivetech.com>2024-03-06 14:44:35 +0300
commit82f1ff56576585d3e9c76e901a6d0e0d6dd9cc25 (patch)
tree30ee557d22be672e9a09ed5baaceca6853ff834c
parent5781a9106cac05447e65f191662232165d5f3e88 (diff)
downloadlinux-82f1ff56576585d3e9c76e901a6d0e0d6dd9cc25.tar.xz
riscv: configs: dubhe: Enable 4K erase sector for QSPI
Dubhe QSPI uses 64KB erase sector by default and causes MTD driver to warn about "partition doesn't start on an erase/write block boundary -- force read-only", changing r/w partition to read only to avoid unintended access to adjacent partition. Update the erase sector size to 4KB to ensure the partition size is multiple of flash block-size to meet the flash block boundary requirement, and allowing r/w access to the QSPI partition. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
-rw-r--r--arch/riscv/configs/starfive_dubhe_defconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/configs/starfive_dubhe_defconfig b/arch/riscv/configs/starfive_dubhe_defconfig
index 6023f5d3085b..a606ad404f45 100644
--- a/arch/riscv/configs/starfive_dubhe_defconfig
+++ b/arch/riscv/configs/starfive_dubhe_defconfig
@@ -126,7 +126,7 @@ CONFIG_MTDRAM_TOTAL_SIZE=262144
CONFIG_MTDRAM_ERASE_SIZE=64
CONFIG_MTD_BLOCK2MTD=y
CONFIG_MTD_SPI_NOR=y
-# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_BLOCK=y
CONFIG_BLK_DEV_LOOP=y