1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 28ac326fcSBrian Norrismenuconfig MTD_SPI_NOR 3*1ac71ec0STudor Ambarus tristate "SPI NOR device support" 4b199489dSHuang Shijie depends on MTD 5b35b9a10SBoris Brezillon depends on MTD && SPI_MASTER 6b35b9a10SBoris Brezillon select SPI_MEM 7b199489dSHuang Shijie help 8b199489dSHuang Shijie This is the framework for the SPI NOR which can be used by the SPI 9*1ac71ec0STudor Ambarus device drivers and the SPI NOR device driver. 10e43b2061SBrian Norris 11e43b2061SBrian Norrisif MTD_SPI_NOR 12e43b2061SBrian Norris 1357cf26c1SRafał Miłeckiconfig MTD_SPI_NOR_USE_4K_SECTORS 1457cf26c1SRafał Miłecki bool "Use small 4096 B erase sectors" 1557cf26c1SRafał Miłecki default y 1657cf26c1SRafał Miłecki help 1757cf26c1SRafał Miłecki Many flash memories support erasing small (4096 B) sectors. Depending 1857cf26c1SRafał Miłecki on the usage this feature may provide performance gain in comparison 1957cf26c1SRafał Miłecki to erasing whole blocks (32/64 KiB). 2057cf26c1SRafał Miłecki Changing a small part of the flash's contents is usually faster with 2157cf26c1SRafał Miłecki small sectors. On the other hand erasing should be faster when using 2257cf26c1SRafał Miłecki 64 KiB block instead of 16 × 4 KiB sectors. 2357cf26c1SRafał Miłecki 2457cf26c1SRafał Miłecki Please note that some tools/drivers/filesystems may not work with 2557cf26c1SRafał Miłecki 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum). 2657cf26c1SRafał Miłecki 27a0900d01SBoris Brezillonsource "drivers/mtd/spi-nor/controllers/Kconfig" 288afda8b2SMika Westerberg 29e43b2061SBrian Norrisendif # MTD_SPI_NOR 30