1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 28ac326fcSBrian Norrismenuconfig MTD_SPI_NOR 38ac326fcSBrian Norris tristate "SPI-NOR device support" 4b199489dSHuang Shijie depends on MTD 5*b35b9a10SBoris Brezillon depends on MTD && SPI_MASTER 6*b35b9a10SBoris Brezillon select SPI_MEM 7b199489dSHuang Shijie help 8b199489dSHuang Shijie This is the framework for the SPI NOR which can be used by the SPI 9b199489dSHuang Shijie 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 27ceb720c7SCédric Le Goaterconfig SPI_ASPEED_SMC 28ceb720c7SCédric Le Goater tristate "Aspeed flash controllers in SPI mode" 29ceb720c7SCédric Le Goater depends on ARCH_ASPEED || COMPILE_TEST 30ceb720c7SCédric Le Goater depends on HAS_IOMEM && OF 31ceb720c7SCédric Le Goater help 32ceb720c7SCédric Le Goater This enables support for the Firmware Memory controller (FMC) 33e56beebbSCédric Le Goater in the Aspeed AST2500/AST2400 SoCs when attached to SPI NOR chips, 34ceb720c7SCédric Le Goater and support for the SPI flash memory controller (SPI) for 35ceb720c7SCédric Le Goater the host firmware. The implementation only supports SPI NOR. 36ceb720c7SCédric Le Goater 3714062341SGraham Mooreconfig SPI_CADENCE_QUADSPI 3814062341SGraham Moore tristate "Cadence Quad SPI controller" 3970597eecSThor Thayer depends on OF && (ARM || ARM64 || COMPILE_TEST) 4014062341SGraham Moore help 4114062341SGraham Moore Enable support for the Cadence Quad SPI Flash controller. 4214062341SGraham Moore 4314062341SGraham Moore Cadence QSPI is a specialized controller for connecting an SPI 4414062341SGraham Moore Flash over 1/2/4-bit wide bus. Enable this option if you have a 4514062341SGraham Moore device with a Cadence QSPI controller and want to access the 4614062341SGraham Moore Flash as an MTD device. 4714062341SGraham Moore 48e523f111SJiancheng Xueconfig SPI_HISI_SFC 49e523f111SJiancheng Xue tristate "Hisilicon SPI-NOR Flash Controller(SFC)" 50e523f111SJiancheng Xue depends on ARCH_HISI || COMPILE_TEST 517db782bcSGeert Uytterhoeven depends on HAS_IOMEM 52e523f111SJiancheng Xue help 53e523f111SJiancheng Xue This enables support for hisilicon SPI-NOR flash controller. 54e523f111SJiancheng Xue 55356dd9ceSRyder Leeconfig SPI_MTK_QUADSPI 56356dd9ceSRyder Lee tristate "MediaTek Quad SPI controller" 57356dd9ceSRyder Lee depends on HAS_IOMEM 58356dd9ceSRyder Lee help 59356dd9ceSRyder Lee This enables support for the Quad SPI controller in master mode. 60356dd9ceSRyder Lee This controller does not support generic SPI. It only supports 61356dd9ceSRyder Lee SPI NOR. 62356dd9ceSRyder Lee 63f617b958SJoachim Eastwoodconfig SPI_NXP_SPIFI 64f617b958SJoachim Eastwood tristate "NXP SPI Flash Interface (SPIFI)" 65f617b958SJoachim Eastwood depends on OF && (ARCH_LPC18XX || COMPILE_TEST) 66f617b958SJoachim Eastwood depends on HAS_IOMEM 67f617b958SJoachim Eastwood help 68f617b958SJoachim Eastwood Enable support for the NXP LPC SPI Flash Interface controller. 69f617b958SJoachim Eastwood 70f617b958SJoachim Eastwood SPIFI is a specialized controller for connecting serial SPI 71f617b958SJoachim Eastwood Flash. Enable this option if you have a device with a SPIFI 72f617b958SJoachim Eastwood controller and want to access the Flash as a mtd device. 73f617b958SJoachim Eastwood 748afda8b2SMika Westerbergconfig SPI_INTEL_SPI 758afda8b2SMika Westerberg tristate 768afda8b2SMika Westerberg 77fe602838SMika Westerbergconfig SPI_INTEL_SPI_PCI 781f37033fSMika Westerberg tristate "Intel PCH/PCU SPI flash PCI driver (DANGEROUS)" 79fe602838SMika Westerberg depends on X86 && PCI 80fe602838SMika Westerberg select SPI_INTEL_SPI 81fe602838SMika Westerberg help 82fe602838SMika Westerberg This enables PCI support for the Intel PCH/PCU SPI controller in 83fe602838SMika Westerberg master mode. This controller is present in modern Intel hardware 84fe602838SMika Westerberg and is used to hold BIOS and other persistent settings. Using 85fe602838SMika Westerberg this driver it is possible to upgrade BIOS directly from Linux. 86fe602838SMika Westerberg 87fe602838SMika Westerberg Say N here unless you know what you are doing. Overwriting the 88fe602838SMika Westerberg SPI flash may render the system unbootable. 89fe602838SMika Westerberg 90fe602838SMika Westerberg To compile this driver as a module, choose M here: the module 91fe602838SMika Westerberg will be called intel-spi-pci. 92fe602838SMika Westerberg 938afda8b2SMika Westerbergconfig SPI_INTEL_SPI_PLATFORM 941f37033fSMika Westerberg tristate "Intel PCH/PCU SPI flash platform driver (DANGEROUS)" 958afda8b2SMika Westerberg depends on X86 968afda8b2SMika Westerberg select SPI_INTEL_SPI 978afda8b2SMika Westerberg help 988afda8b2SMika Westerberg This enables platform support for the Intel PCH/PCU SPI 998afda8b2SMika Westerberg controller in master mode. This controller is present in modern 1008afda8b2SMika Westerberg Intel hardware and is used to hold BIOS and other persistent 1018afda8b2SMika Westerberg settings. Using this driver it is possible to upgrade BIOS 1028afda8b2SMika Westerberg directly from Linux. 1038afda8b2SMika Westerberg 1048afda8b2SMika Westerberg Say N here unless you know what you are doing. Overwriting the 1058afda8b2SMika Westerberg SPI flash may render the system unbootable. 1068afda8b2SMika Westerberg 1078afda8b2SMika Westerberg To compile this driver as a module, choose M here: the module 1088afda8b2SMika Westerberg will be called intel-spi-platform. 1098afda8b2SMika Westerberg 110e43b2061SBrian Norrisendif # MTD_SPI_NOR 111