1# SPDX-License-Identifier: GPL-2.0-only 2# 3# SPI driver configuration 4# 5menuconfig SPI 6 bool "SPI support" 7 depends on HAS_IOMEM 8 help 9 The "Serial Peripheral Interface" is a low level synchronous 10 protocol. Chips that support SPI can have data transfer rates 11 up to several tens of Mbit/sec. Chips are addressed with a 12 controller and a chipselect. Most SPI slaves don't support 13 dynamic device discovery; some are even write-only or read-only. 14 15 SPI is widely used by microcontrollers to talk with sensors, 16 eeprom and flash memory, codecs and various other controller 17 chips, analog to digital (and d-to-a) converters, and more. 18 MMC and SD cards can be accessed using SPI protocol; and for 19 DataFlash cards used in MMC sockets, SPI must always be used. 20 21 SPI is one of a family of similar protocols using a four wire 22 interface (select, clock, data in, data out) including Microwire 23 (half duplex), SSP, SSI, and PSP. This driver framework should 24 work with most such devices and controllers. 25 26if SPI 27 28config SPI_DEBUG 29 bool "Debug support for SPI drivers" 30 depends on DEBUG_KERNEL 31 help 32 Say "yes" to enable debug messaging (like dev_dbg and pr_debug), 33 sysfs, and debugfs support in SPI controller and protocol drivers. 34 35# 36# MASTER side ... talking to discrete SPI slave chips including microcontrollers 37# 38 39config SPI_MASTER 40# bool "SPI Master Support" 41 bool 42 default SPI 43 help 44 If your system has an master-capable SPI controller (which 45 provides the clock and chipselect), you can enable that 46 controller and the protocol drivers for the SPI slave chips 47 that are connected. 48 49if SPI_MASTER 50 51config SPI_MEM 52 bool "SPI memory extension" 53 help 54 Enable this option if you want to enable the SPI memory extension. 55 This extension is meant to simplify interaction with SPI memories 56 by providing a high-level interface to send memory-like commands. 57 58config SPI_OFFLOAD 59 bool 60 61comment "SPI Master Controller Drivers" 62 63config SPI_AIROHA_SNFI 64 tristate "Airoha SPI NAND Flash Interface" 65 depends on ARCH_AIROHA || COMPILE_TEST 66 depends on SPI_MASTER 67 select REGMAP_MMIO 68 help 69 This enables support for SPI-NAND mode on the Airoha NAND 70 Flash Interface found on Airoha ARM SoCs. This controller 71 is implemented as a SPI-MEM controller. 72 73config SPI_ALTERA 74 tristate "Altera SPI Controller platform driver" 75 select SPI_ALTERA_CORE 76 select REGMAP_MMIO 77 help 78 This is the driver for the Altera SPI Controller. 79 80config SPI_ALTERA_CORE 81 tristate "Altera SPI Controller core code" if COMPILE_TEST 82 select REGMAP 83 help 84 "The core code for the Altera SPI Controller" 85 86config SPI_ALTERA_DFL 87 tristate "DFL bus driver for Altera SPI Controller" 88 depends on FPGA_DFL 89 select SPI_ALTERA_CORE 90 help 91 This is a Device Feature List (DFL) bus driver for the 92 Altera SPI master controller. The SPI master is connected 93 to a SPI slave to Avalon bridge in a Intel MAX BMC. 94 95config SPI_AMLOGIC_SPIFC_A1 96 tristate "Amlogic A1 SPIFC controller" 97 depends on ARCH_MESON || COMPILE_TEST 98 help 99 This enables master mode support for the SPIFC (SPI flash 100 controller) available in Amlogic A1 (A113L SoC). 101 102config SPI_AMLOGIC_SPIFC_A4 103 tristate "Amlogic A4 SPI Flash controller" 104 depends on ARCH_MESON || COMPILE_TEST 105 select REGMAP_MMIO 106 help 107 This enables SPI mode on the NAND Flash Controller of Amlogic 108 ARM SoCs. It supports SPI Nor Flash and SPI NAND Flash (Could 109 enable Host ECC HW engine). The controller implements the 110 SPI-MEM interface, it doesn't support generic SPI. 111 112config SPI_AMLOGIC_SPISG 113 tristate "Amlogic SPISG controller" 114 depends on COMMON_CLK 115 depends on ARCH_MESON || COMPILE_TEST 116 help 117 This enables master mode support for the SPISG (SPI scatter-gather 118 communication controller), which is available on platforms such as 119 Amlogic A4 SoCs. 120 121config SPI_APPLE 122 tristate "Apple SoC SPI Controller platform driver" 123 depends on ARCH_APPLE || COMPILE_TEST 124 help 125 This enables support for the SPI controller present on 126 many Apple SoCs, including the t8103 (M1), t8112 (M2) 127 and t600x (M1 Pro/Max/Ultra). Multiple SPI controller 128 instances are present on the SoC and each connects usually 129 to a single device like spi-nor (nvram), input device controller 130 or fingerprint sensor. 131 132config SPI_AR934X 133 tristate "Qualcomm Atheros AR934X/QCA95XX SPI controller driver" 134 depends on ATH79 || COMPILE_TEST 135 help 136 This enables support for the SPI controller present on the 137 Qualcomm Atheros AR934X/QCA95XX SoCs. 138 139config SPI_ATCSPI200 140 tristate "Andes ATCSPI200 SPI controller" 141 depends on ARCH_ANDES || COMPILE_TEST 142 help 143 SPI driver for Andes ATCSPI200 SPI controller. 144 ATCSPI200 controller supports DMA and PIO modes. When DMA 145 is not available, the driver automatically falls back to 146 PIO mode. 147 148config SPI_ATH79 149 tristate "Atheros AR71XX/AR724X/AR913X SPI controller driver" 150 depends on ATH79 || COMPILE_TEST 151 select SPI_BITBANG 152 help 153 This enables support for the SPI controller present on the 154 Atheros AR71XX/AR724X/AR913X SoCs. 155 156config SPI_ARMADA_3700 157 tristate "Marvell Armada 3700 SPI Controller" 158 depends on (ARCH_MVEBU && OF) || COMPILE_TEST 159 help 160 This enables support for the SPI controller present on the 161 Marvell Armada 3700 SoCs. 162 163config SPI_ASPEED_SMC 164 tristate "Aspeed flash controllers in SPI mode" 165 depends on ARCH_ASPEED || COMPILE_TEST 166 depends on OF 167 help 168 This enables support for the Firmware Memory controller (FMC) 169 in the Aspeed AST2600, AST2500 and AST2400 SoCs when attached 170 to SPI NOR chips, and support for the SPI flash memory 171 controller (SPI) for the host firmware. The implementation 172 only supports SPI NOR. 173 174config SPI_ATMEL 175 tristate "Atmel SPI Controller" 176 depends on ARCH_MICROCHIP || COMPILE_TEST 177 depends on OF 178 help 179 This selects a driver for the Atmel SPI Controller, present on 180 many AT91 ARM chips. 181 182config SPI_AT91_USART 183 tristate "Atmel USART Controller SPI driver" 184 depends on (ARCH_AT91 || COMPILE_TEST) 185 depends on MFD_AT91_USART 186 help 187 This selects a driver for the AT91 USART Controller as SPI Master, 188 present on AT91 and SAMA5 SoC series. 189 190config SPI_ATMEL_QUADSPI 191 tristate "Atmel Quad SPI Controller" 192 depends on ARCH_MICROCHIP || COMPILE_TEST 193 depends on OF && HAS_IOMEM 194 help 195 This enables support for the Quad SPI controller in master mode. 196 This driver does not support generic SPI. The implementation only 197 supports spi-mem interface. 198 199config SPI_AU1550 200 tristate "Au1550/Au1200/Au1300 SPI Controller" 201 depends on MIPS_ALCHEMY 202 select SPI_BITBANG 203 help 204 If you say yes to this option, support will be included for the 205 PSC SPI controller found on Au1550, Au1200 and Au1300 series. 206 207config SPI_AXI_SPI_ENGINE 208 tristate "Analog Devices AXI SPI Engine controller" 209 depends on HAS_IOMEM 210 select SPI_OFFLOAD 211 help 212 This enables support for the Analog Devices AXI SPI Engine SPI controller. 213 It is part of the SPI Engine framework that is used in some Analog Devices 214 reference designs for FPGAs. 215 216config SPI_AXIADO 217 tristate "Axiado DB-H SPI controller" 218 depends on SPI_MEM 219 depends on ARCH_AXIADO || COMPILE_TEST 220 help 221 Enable support for the SPI controller present on Axiado AX3000 SoCs. 222 223 The implementation supports host-only mode and does not provide target 224 functionality. It is intended for use cases where the SoC acts as the SPI 225 host, communicating with peripheral devices such as flash memory. 226 227config SPI_BCM2835 228 tristate "BCM2835 SPI controller" 229 depends on GPIOLIB 230 depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST 231 help 232 This selects a driver for the Broadcom BCM2835 SPI master. 233 234 The BCM2835 contains two types of SPI master controller; the 235 "universal SPI master", and the regular SPI controller. This driver 236 is for the regular SPI controller. Slave mode operation is not also 237 not supported. 238 239config SPI_BCM2835AUX 240 tristate "BCM2835 SPI auxiliary controller" 241 depends on ((ARCH_BCM2835 || ARCH_BRCMSTB) && GPIOLIB) || COMPILE_TEST 242 help 243 This selects a driver for the Broadcom BCM2835 SPI aux master. 244 245 The BCM2835 contains two types of SPI master controller; the 246 "universal SPI master", and the regular SPI controller. 247 This driver is for the universal/auxiliary SPI controller. 248 249config SPI_BCM63XX 250 tristate "Broadcom BCM63xx SPI controller" 251 depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST 252 help 253 Enable support for the SPI controller on the Broadcom BCM63xx SoCs. 254 255config SPI_BCM63XX_HSSPI 256 tristate "Broadcom BCM63XX HS SPI controller driver" 257 depends on BCM63XX || BMIPS_GENERIC || ARCH_BCMBCA || COMPILE_TEST 258 help 259 This enables support for the High Speed SPI controller present on 260 newer Broadcom BCM63XX SoCs. 261 262config SPI_BCM_QSPI 263 tristate "Broadcom BSPI and MSPI controller support" 264 depends on ARCH_BRCMSTB || ARCH_BCM || ARCH_BCM_IPROC || \ 265 BMIPS_GENERIC || COMPILE_TEST 266 default ARCH_BCM_IPROC 267 help 268 Enables support for the Broadcom SPI flash and MSPI controller. 269 Select this option for any one of BRCMSTB, iProc NSP and NS2 SoCs 270 based platforms. This driver works for both SPI master for SPI NOR 271 flash device as well as MSPI device. 272 273config SPI_BCMBCA_HSSPI 274 tristate "Broadcom BCMBCA HS SPI controller driver" 275 depends on ARCH_BCMBCA || COMPILE_TEST 276 help 277 This enables support for the High Speed SPI controller present on 278 newer Broadcom BCMBCA SoCs. These SoCs include an updated SPI controller 279 that adds the capability to allow the driver to control chip select 280 explicitly. 281 282config SPI_BITBANG 283 tristate "Utilities for Bitbanging SPI host controllers" 284 help 285 With a few GPIO pins, your system can bitbang the SPI protocol. 286 Select this to get SPI support through I/O pins (GPIO, parallel 287 port, etc). Or, some systems' SPI host controller drivers use 288 this code to manage the per-word or per-transfer accesses to the 289 hardware shift registers. 290 291 This is library code, and is automatically selected by drivers that 292 need it. You only need to select this explicitly to support driver 293 modules that aren't part of this kernel tree. 294 295config SPI_BUTTERFLY 296 tristate "Parallel port adapter for AVR Butterfly (DEVELOPMENT)" 297 depends on PARPORT 298 select SPI_BITBANG 299 help 300 This uses a custom parallel port cable to connect to an AVR 301 Butterfly <http://www.atmel.com/products/avr/butterfly>, an 302 inexpensive battery powered microcontroller evaluation board. 303 This same cable can be used to flash new firmware. 304 305config SPI_CADENCE 306 tristate "Cadence SPI controller" 307 help 308 This selects the Cadence SPI controller master driver 309 used by Xilinx Zynq and ZynqMP. 310 311config SPI_CADENCE_QUADSPI 312 tristate "Cadence Quad SPI controller" 313 depends on OF && (ARM || ARM64 || X86 || RISCV || MIPS || COMPILE_TEST) 314 help 315 Enable support for the Cadence Quad SPI Flash controller. 316 317 Cadence QSPI is a specialized controller for connecting an SPI 318 Flash over 1/2/4-bit wide bus. Enable this option if you have a 319 device with a Cadence QSPI controller and want to access the 320 Flash as an MTD device. 321 322config SPI_CADENCE_XSPI 323 tristate "Cadence XSPI controller" 324 depends on OF && HAS_IOMEM 325 depends on SPI_MEM 326 help 327 Enable support for the Cadence XSPI Flash controller. 328 329 Cadence XSPI is a specialized controller for connecting an SPI 330 Flash over up to 8-bit wide bus. Enable this option if you have a 331 device with a Cadence XSPI controller and want to access the 332 Flash as an MTD device. 333 334config SPI_CH341 335 tristate "CH341 USB2SPI adapter" 336 depends on SPI_MASTER && USB 337 help 338 Enables the SPI controller on the CH341a USB to serial chip 339 340config SPI_CLPS711X 341 tristate "CLPS711X host SPI controller" 342 depends on ARCH_CLPS711X || COMPILE_TEST 343 help 344 This enables dedicated general purpose SPI/Microwire1-compatible 345 master mode interface (SSI1) for CLPS711X-based CPUs. 346 347config SPI_COLDFIRE_QSPI 348 tristate "Freescale Coldfire QSPI controller" 349 depends on (M520x || M523x || M5249 || M525x || M527x || M528x || M532x) 350 help 351 This enables support for the Coldfire QSPI controller in master 352 mode. 353 354config SPI_CS42L43 355 tristate "Cirrus Logic CS42L43 SPI controller" 356 depends on MFD_CS42L43 && PINCTRL_CS42L43 357 select GPIO_SWNODE_UNDEFINED 358 help 359 This enables support for the SPI controller inside the Cirrus Logic 360 CS42L43 audio codec. 361 362config SPI_DAVINCI 363 tristate "Texas Instruments DaVinci/DA8x/OMAP-L/AM1x SoC SPI controller" 364 depends on ARCH_DAVINCI || ARCH_KEYSTONE || COMPILE_TEST 365 select SPI_BITBANG 366 help 367 SPI master controller for DaVinci/DA8x/OMAP-L/AM1x SPI modules. 368 369config SPI_DESIGNWARE 370 tristate "DesignWare SPI controller core support" 371 imply SPI_MEM 372 help 373 general driver for SPI controller core from DesignWare 374 375if SPI_DESIGNWARE 376 377config SPI_DW_DMA 378 bool "DMA support for DW SPI controller" 379 380config SPI_DW_PCI 381 tristate "PCI interface driver for DW SPI core" 382 depends on PCI 383 384config SPI_DW_MMIO 385 tristate "Memory-mapped io interface driver for DW SPI core" 386 depends on HAS_IOMEM 387 388endif 389 390config SPI_DLN2 391 tristate "Diolan DLN-2 USB SPI adapter" 392 depends on MFD_DLN2 393 help 394 If you say yes to this option, support will be included for Diolan 395 DLN2, a USB to SPI interface. 396 397 This driver can also be built as a module. If so, the module 398 will be called spi-dln2. 399 400config SPI_EP93XX 401 tristate "Cirrus Logic EP93xx SPI controller" 402 depends on ARCH_EP93XX || COMPILE_TEST 403 help 404 This enables using the Cirrus EP93xx SPI controller in master 405 mode. 406 407config SPI_FALCON 408 bool "Falcon SPI controller support" 409 depends on SOC_FALCON 410 help 411 The external bus unit (EBU) found on the FALC-ON SoC has SPI 412 emulation that is designed for serial flash access. This driver 413 has only been tested with m25p80 type chips. The hardware has no 414 support for other types of SPI peripherals. 415 416config SPI_FSI 417 tristate "FSI SPI driver" 418 depends on FSI 419 help 420 This enables support for the driver for FSI bus attached SPI 421 controllers. 422 423config SPI_FSL_LPSPI 424 tristate "Freescale i.MX LPSPI controller" 425 depends on ARCH_MXC || COMPILE_TEST 426 help 427 This enables Freescale i.MX LPSPI controllers in master mode. 428 429config SPI_FSL_QUADSPI 430 tristate "Freescale QSPI controller" 431 depends on ARCH_MXC || SOC_LS1021A || ARCH_LAYERSCAPE || \ 432 ARCH_SPACEMIT || COMPILE_TEST 433 depends on HAS_IOMEM 434 help 435 This enables support for the Quad SPI controller in master mode. 436 Up to four flash chips can be connected on two buses with two 437 chipselects each. 438 This controller does not support generic SPI messages. It only 439 supports the high-level SPI memory interface. 440 441config SPI_GXP 442 tristate "GXP SPI driver" 443 depends on ARCH_HPE || COMPILE_TEST 444 help 445 This enables support for the driver for GXP bus attached SPI 446 controllers. 447 448config SPI_HISI_KUNPENG 449 tristate "HiSilicon SPI Controller for Kunpeng SoCs" 450 depends on (ARM64 && ACPI) || COMPILE_TEST 451 help 452 This enables support for HiSilicon SPI controller found on 453 Kunpeng SoCs. 454 455 This driver can also be built as a module. If so, the module 456 will be called hisi-kunpeng-spi. 457 458config SPI_HISI_SFC_V3XX 459 tristate "HiSilicon SPI NOR Flash Controller for Hi16XX chipsets" 460 depends on (ARM64 && ACPI) || COMPILE_TEST 461 depends on HAS_IOMEM 462 help 463 This enables support for HiSilicon v3xx SPI NOR flash controller 464 found in hi16xx chipsets. 465 466config SPI_NXP_FLEXSPI 467 tristate "NXP Flex SPI controller" 468 depends on ARCH_LAYERSCAPE || ARCH_MXC || COMPILE_TEST 469 depends on HAS_IOMEM 470 help 471 This enables support for the Flex SPI controller in master mode. 472 Up to four slave devices can be connected on two buses with two 473 chipselects each. 474 This controller does not support generic SPI messages and only 475 supports the high-level SPI memory interface. 476 477config SPI_NXP_XSPI 478 tristate "NXP xSPI controller" 479 depends on ARCH_MXC || COMPILE_TEST 480 depends on HAS_IOMEM 481 help 482 This enables support for the xSPI controller. Up to two devices 483 can be connected to one host. 484 This controller does not support generic SPI messages and only 485 supports the high-level SPI memory interface. 486 487config SPI_GPIO 488 tristate "GPIO-based bitbanging SPI Master" 489 depends on GPIOLIB || COMPILE_TEST 490 select SPI_BITBANG 491 help 492 This simple GPIO bitbanging SPI master uses the arch-neutral GPIO 493 interface to manage MOSI, MISO, SCK, and chipselect signals. SPI 494 slaves connected to a bus using this driver are configured as usual, 495 except that the spi_board_info.controller_data holds the GPIO number 496 for the chipselect used by this controller driver. 497 498 Note that this driver often won't achieve even 1 Mbit/sec speeds, 499 making it unusually slow for SPI. If your platform can inline 500 GPIO operations, you should be able to leverage that for better 501 speed with a custom version of this driver; see the source code. 502 503config SPI_IMG_SPFI 504 tristate "IMG SPFI controller" 505 depends on MIPS || COMPILE_TEST 506 help 507 This enables support for the SPFI master controller found on 508 IMG SoCs. 509 510config SPI_IMX 511 tristate "Freescale i.MX SPI controllers" 512 depends on ARCH_MXC || COMPILE_TEST 513 help 514 This enables support for the Freescale i.MX SPI controllers. 515 516config SPI_INGENIC 517 tristate "Ingenic SoCs SPI controller" 518 depends on MACH_INGENIC || COMPILE_TEST 519 help 520 This enables support for the Ingenic SoCs SPI controller. 521 522 To compile this driver as a module, choose M here: the module 523 will be called spi-ingenic. 524 525config SPI_INTEL 526 tristate 527 528config SPI_INTEL_PCI 529 tristate "Intel PCH/PCU SPI flash PCI driver" 530 depends on PCI 531 depends on X86 || COMPILE_TEST 532 depends on SPI_MEM 533 select SPI_INTEL 534 help 535 This enables PCI support for the Intel PCH/PCU SPI controller in 536 master mode. This controller is used to hold BIOS and other 537 persistent settings. Controllers present in modern Intel hardware 538 only work in hardware sequencing mode, this means that the 539 controller exposes a subset of operations that makes it safer to 540 use. Using this driver it is possible to upgrade BIOS directly 541 from Linux. 542 543 To compile this driver as a module, choose M here: the module 544 will be called spi-intel-pci. 545 546config SPI_INTEL_PLATFORM 547 tristate "Intel PCH/PCU SPI flash platform driver (DANGEROUS)" 548 depends on X86 || COMPILE_TEST 549 depends on SPI_MEM 550 select SPI_INTEL 551 help 552 This enables platform support for the Intel PCH/PCU SPI 553 controller in master mode that is used to hold BIOS and other 554 persistent settings. Most of these controllers work in 555 software sequencing mode, which means that the controller 556 exposes the low level SPI-NOR opcodes to the software. Using 557 this driver it is possible to upgrade BIOS directly from Linux. 558 559 Say N here unless you know what you are doing. Overwriting the 560 SPI flash may render the system unbootable. 561 562 To compile this driver as a module, choose M here: the module 563 will be called spi-intel-platform. 564 565config SPI_JCORE 566 tristate "J-Core SPI Master" 567 depends on OF && (SUPERH || COMPILE_TEST) 568 help 569 This enables support for the SPI master controller in the J-Core 570 synthesizable, open source SoC. 571 572config SPI_KSPI2 573 tristate "Support for KEBA SPI master type 2 hardware" 574 depends on HAS_IOMEM 575 depends on KEBA_CP500 || COMPILE_TEST 576 select AUXILIARY_BUS 577 help 578 This driver supports KEBA SPI master type 2 FPGA implementation, 579 as found on CP500 devices for example. 580 581 This driver can also be built as a module. If so, the module 582 will be called spi-kspi2. 583 584config SPI_LM70_LLP 585 tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)" 586 depends on PARPORT 587 select SPI_BITBANG 588 help 589 This driver supports the NS LM70 LLP Evaluation Board, 590 which interfaces to an LM70 temperature sensor using 591 a parallel port. 592 593config SPI_LOONGSON_CORE 594 tristate 595 depends on LOONGARCH || COMPILE_TEST 596 597config SPI_LOONGSON_PCI 598 tristate "Loongson SPI Controller PCI Driver Support" 599 select SPI_LOONGSON_CORE 600 depends on PCI && (LOONGARCH || COMPILE_TEST) 601 help 602 This bus driver supports the Loongson SPI hardware controller in 603 the Loongson platforms and supports to use PCI framework to 604 register SPI device resources. 605 Say Y or M here if you want to use the SPI controller on 606 Loongson platform. 607 608config SPI_LOONGSON_PLATFORM 609 tristate "Loongson SPI Controller Platform Driver Support" 610 select SPI_LOONGSON_CORE 611 depends on OF && (LOONGARCH || COMPILE_TEST) 612 help 613 This bus driver supports the Loongson SPI hardware controller in 614 the Loongson platforms and supports to use DTS framework to 615 register SPI device resources. 616 Say Y or M here if you want to use the SPI controller on 617 Loongson platform. 618 619config SPI_LP8841_RTC 620 tristate "ICP DAS LP-8841 SPI Controller for RTC" 621 depends on MACH_PXA27X_DT || COMPILE_TEST 622 help 623 This driver provides an SPI master device to drive Maxim 624 DS-1302 real time clock. 625 626 Say N here unless you plan to run the kernel on an ICP DAS 627 LP-8x4x industrial computer. 628 629config SPI_MPC52xx 630 tristate "Freescale MPC52xx SPI (non-PSC) controller support" 631 depends on PPC_MPC52xx 632 help 633 This drivers supports the MPC52xx SPI controller in master SPI 634 mode. 635 636config SPI_MPC52xx_PSC 637 tristate "Freescale MPC52xx PSC SPI controller" 638 depends on PPC_MPC52xx 639 help 640 This enables using the Freescale MPC52xx Programmable Serial 641 Controller in master SPI mode. 642 643config SPI_MPC512x_PSC 644 tristate "Freescale MPC512x PSC SPI controller" 645 depends on PPC_MPC512x 646 help 647 This enables using the Freescale MPC5121 Programmable Serial 648 Controller in SPI master mode. 649 650config SPI_FSL_LIB 651 tristate 652 depends on OF 653 654config SPI_FSL_CPM 655 tristate 656 depends on FSL_SOC 657 658config SPI_FSL_SPI 659 tristate "Freescale SPI controller and Aeroflex Gaisler GRLIB SPI controller" 660 depends on OF 661 select SPI_FSL_LIB 662 select SPI_FSL_CPM if FSL_SOC 663 help 664 This enables using the Freescale SPI controllers in master mode. 665 MPC83xx platform uses the controller in cpu mode or CPM/QE mode. 666 MPC8569 uses the controller in QE mode, MPC8610 in cpu mode. 667 This also enables using the Aeroflex Gaisler GRLIB SPI controller in 668 master mode. 669 670config SPI_FSL_DSPI 671 tristate "Freescale DSPI controller" 672 select REGMAP_MMIO 673 depends on ARCH_MXC || ARCH_NXP || M5441x || COMPILE_TEST 674 help 675 This enables support for the Freescale DSPI controller in master 676 mode. S32, VF610, LS1021A and ColdFire platforms uses the controller. 677 678config SPI_FSL_ESPI 679 tristate "Freescale eSPI controller" 680 depends on FSL_SOC 681 help 682 This enables using the Freescale eSPI controllers in master mode. 683 From MPC8536, 85xx platform uses the controller, and all P10xx, 684 P20xx, P30xx,P40xx, P50xx uses this controller. 685 686config SPI_LJCA 687 tristate "Intel La Jolla Cove Adapter SPI support" 688 depends on USB_LJCA 689 default USB_LJCA 690 help 691 Select this option to enable SPI driver for the Intel 692 La Jolla Cove Adapter (LJCA) board. 693 694 This driver can also be built as a module. If so, the module 695 will be called spi-ljca. 696 697config SPI_MA35D1_QSPI 698 tristate "Nuvoton MA35D1 QSPI controller" 699 depends on ARCH_MA35 || COMPILE_TEST 700 help 701 This enables support for the Quad SPI controller found in 702 Nuvoton MA35D1 SoCs. 703 704 The controller supports SPI memory devices such as SPI NOR and 705 SPI NAND flashes in single, dual and quad I/O modes. 706 707config SPI_MESON_SPICC 708 tristate "Amlogic Meson SPICC controller" 709 depends on COMMON_CLK 710 depends on ARCH_MESON || COMPILE_TEST 711 help 712 This enables master mode support for the SPICC (SPI communication 713 controller) available in Amlogic Meson SoCs. 714 715config SPI_MESON_SPIFC 716 tristate "Amlogic Meson SPIFC controller" 717 depends on ARCH_MESON || COMPILE_TEST 718 select REGMAP_MMIO 719 help 720 This enables master mode support for the SPIFC (SPI flash 721 controller) available in Amlogic Meson SoCs. 722 723config SPI_MICROCHIP_CORE_QSPI 724 tristate "Microchip FPGA QSPI controllers" 725 depends on SPI_MASTER 726 help 727 This enables the QSPI driver for Microchip FPGA QSPI controllers. 728 Say Y or M here if you want to use the QSPI controllers on 729 PolarFire SoC. 730 If built as a module, it will be called spi-microchip-core-qspi. 731 732config SPI_MICROCHIP_CORE_SPI 733 tristate "Microchip FPGA CoreSPI controller" 734 depends on SPI_MASTER 735 help 736 This enables the SPI driver for Microchip FPGA CoreSPI controller. 737 Say Y or M here if you want to use the "soft" controllers on 738 PolarFire SoC. 739 If built as a module, it will be called spi-microchip-core-spi. 740 741config SPI_MT65XX 742 tristate "MediaTek SPI controller" 743 depends on ARCH_MEDIATEK || COMPILE_TEST 744 help 745 This selects the MediaTek(R) SPI bus driver. 746 If you want to use MediaTek(R) SPI interface, 747 say Y or M here.If you are not sure, say N. 748 SPI drivers for Mediatek MT65XX and MT81XX series ARM SoCs. 749 750config SPI_MT7621 751 tristate "MediaTek MT7621 SPI Controller" 752 depends on RALINK || COMPILE_TEST 753 help 754 This selects a driver for the MediaTek MT7621 SPI Controller. 755 756config SPI_MTK_NOR 757 tristate "MediaTek SPI NOR controller" 758 depends on ARCH_MEDIATEK || COMPILE_TEST 759 help 760 This enables support for SPI NOR controller found on MediaTek 761 ARM SoCs. This is a controller specifically for SPI NOR flash. 762 It can perform generic SPI transfers up to 6 bytes via generic 763 SPI interface as well as several SPI NOR specific instructions 764 via SPI MEM interface. 765 766config SPI_MTK_SNFI 767 tristate "MediaTek SPI NAND Flash Interface" 768 depends on ARCH_MEDIATEK || COMPILE_TEST 769 depends on MTD_NAND_ECC_MEDIATEK 770 help 771 This enables support for SPI-NAND mode on the MediaTek NAND 772 Flash Interface found on MediaTek ARM SoCs. This controller 773 is implemented as a SPI-MEM controller with pipelined ECC 774 capability. 775 776config SPI_WPCM_FIU 777 tristate "Nuvoton WPCM450 Flash Interface Unit" 778 depends on ARCH_NPCM || COMPILE_TEST 779 select REGMAP 780 help 781 This enables support got the Flash Interface Unit SPI controller 782 present in the Nuvoton WPCM450 SoC. 783 784 This driver does not support generic SPI. The implementation only 785 supports the spi-mem interface. 786 787config SPI_NPCM_FIU 788 tristate "Nuvoton NPCM FLASH Interface Unit" 789 depends on ARCH_NPCM || COMPILE_TEST 790 depends on OF && HAS_IOMEM 791 help 792 This enables support for the Flash Interface Unit SPI controller 793 in master mode. 794 This driver does not support generic SPI. The implementation only 795 supports spi-mem interface. 796 797config SPI_NPCM_PSPI 798 tristate "Nuvoton NPCM PSPI Controller" 799 depends on ARCH_NPCM || COMPILE_TEST 800 help 801 This driver provides support for Nuvoton NPCM BMC 802 Peripheral SPI controller in master mode. 803 804config SPI_LANTIQ_SSC 805 tristate "Lantiq SSC SPI controller" 806 depends on LANTIQ || X86 || COMPILE_TEST 807 help 808 This driver supports the Lantiq SSC SPI controller in master 809 mode. This controller is found on Intel (former Lantiq) SoCs like 810 the Danube, Falcon, xRX200, xRX300, Lightning Mountain. 811 812config SPI_OC_TINY 813 tristate "OpenCores tiny SPI" 814 depends on GPIOLIB || COMPILE_TEST 815 select SPI_BITBANG 816 help 817 This is the driver for OpenCores tiny SPI master controller. 818 819config SPI_OCTEON 820 tristate "Cavium OCTEON SPI controller" 821 depends on CAVIUM_OCTEON_SOC 822 help 823 SPI host driver for the hardware found on some Cavium OCTEON 824 SOCs. 825 826config SPI_OMAP_UWIRE 827 tristate "OMAP1 MicroWire" 828 depends on ARCH_OMAP1 || (ARM && COMPILE_TEST) 829 select SPI_BITBANG 830 help 831 This hooks up to the MicroWire controller on OMAP1 chips. 832 833config SPI_OMAP24XX 834 tristate "McSPI driver for OMAP" 835 depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST 836 select SG_SPLIT 837 help 838 SPI master controller for OMAP24XX and later Multichannel SPI 839 (McSPI) modules. 840 841config SPI_TI_QSPI 842 tristate "DRA7xxx QSPI controller support" 843 depends on ARCH_OMAP2PLUS || COMPILE_TEST 844 help 845 QSPI master controller for DRA7xxx used for flash devices. 846 This device supports single, dual and quad read support, while 847 it only supports single write mode. 848 849config SPI_ORION 850 tristate "Orion SPI master" 851 depends on PLAT_ORION || ARCH_MVEBU || COMPILE_TEST 852 help 853 This enables using the SPI master controller on the Orion 854 and MVEBU chips. 855 856config SPI_PCI1XXXX 857 tristate "PCI1XXXX SPI Bus support" 858 depends on PCI 859 help 860 Say "yes" to Enable the SPI Bus support for the PCI1xxxx card 861 This is a PCI to SPI Bus driver 862 This driver can be built as module. If so, the module will be 863 called as spi-pci1xxxx. 864 865config SPI_PIC32 866 tristate "Microchip PIC32 series SPI" 867 depends on MACH_PIC32 || COMPILE_TEST 868 help 869 SPI driver for Microchip PIC32 SPI master controller. 870 871config SPI_PIC32_SQI 872 tristate "Microchip PIC32 Quad SPI driver" 873 depends on MACH_PIC32 || COMPILE_TEST 874 help 875 SPI driver for PIC32 Quad SPI controller. 876 877config SPI_PL022 878 tristate "ARM AMBA PL022 SSP controller" 879 depends on ARM_AMBA || COMPILE_TEST 880 default y if ARCH_REALVIEW 881 default y if INTEGRATOR_IMPD1 882 default y if ARCH_VERSATILE 883 help 884 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP 885 controller. If you have an embedded system with an AMBA(R) 886 bus and a PL022 controller, say Y or M here. 887 888config SPI_POLARFIRE_SOC 889 tristate "Microchip FPGA SPI controllers" 890 depends on SPI_MASTER 891 depends on ARCH_MICROCHIP || COMPILE_TEST 892 help 893 This enables the SPI driver for Microchip FPGA SPI controllers. 894 Say Y or M here if you want to use the "hard" controllers on 895 PolarFire SoC. 896 If built as a module, it will be called spi-mpfs. 897 898config SPI_PPC4xx 899 tristate "PPC4xx SPI Controller" 900 depends on PPC32 && 4xx 901 select SPI_BITBANG 902 help 903 This selects a driver for the PPC4xx SPI Controller. 904 905config SPI_PXA2XX 906 tristate "PXA2xx SSP SPI master" 907 depends on ARCH_PXA || ARCH_MMP || (X86 && (PCI || ACPI)) || COMPILE_TEST 908 select PXA_SSP if ARCH_PXA || ARCH_MMP 909 help 910 This enables using a PXA2xx or Sodaville SSP port as a SPI master 911 controller. The driver can be configured to use any SSP port. 912 913config SPI_PXA2XX_PCI 914 def_tristate SPI_PXA2XX && PCI && COMMON_CLK 915 916config SPI_REALTEK_SNAND 917 tristate "Realtek SPI-NAND Flash Controller" 918 depends on MACH_REALTEK_RTL || COMPILE_TEST 919 select REGMAP 920 help 921 This enables support for the SPI-NAND Flash controller on 922 Realtek SoCs. 923 924 This driver does not support generic SPI. The implementation 925 only supports the spi-mem interface. 926 927config SPI_ROCKCHIP 928 tristate "Rockchip SPI controller driver" 929 depends on ARCH_ROCKCHIP || COMPILE_TEST 930 help 931 This selects a driver for Rockchip SPI controller. 932 933 If you say yes to this option, support will be included for 934 RK3066, RK3188 and RK3288 families of SPI controller. 935 Rockchip SPI controller support DMA transport and PIO mode. 936 The main usecase of this controller is to use spi flash as boot 937 device. 938 939config SPI_ROCKCHIP_SFC 940 tristate "Rockchip Serial Flash Controller (SFC)" 941 depends on ARCH_ROCKCHIP || COMPILE_TEST 942 depends on HAS_IOMEM && HAS_DMA 943 help 944 This enables support for Rockchip serial flash controller. This 945 is a specialized controller used to access SPI flash on some 946 Rockchip SOCs. 947 948 ROCKCHIP SFC supports DMA and PIO modes. When DMA is not available, 949 the driver automatically falls back to PIO mode. 950 951config SPI_RB4XX 952 tristate "Mikrotik RB4XX SPI master" 953 depends on SPI_MASTER && (ATH79 || COMPILE_TEST) 954 depends on OF 955 help 956 SPI controller driver for the Mikrotik RB4xx series boards. 957 958config SPI_RPCIF 959 tristate "Renesas RPC-IF SPI driver" 960 depends on RENESAS_RPCIF 961 help 962 SPI driver for Renesas R-Car Gen3 or RZ/G2 RPC-IF. 963 964config SPI_RSPI 965 tristate "Renesas RSPI/QSPI controller" 966 depends on SUPERH || ARCH_RENESAS || COMPILE_TEST 967 help 968 SPI driver for Renesas RSPI and QSPI blocks. 969 970config SPI_RZV2H_RSPI 971 tristate "Renesas RZ/V2H RSPI controller" 972 depends on ARCH_RENESAS || COMPILE_TEST 973 help 974 RSPI driver for the Renesas RZ/V2H Serial Peripheral Interface (RSPI). 975 RSPI supports both SPI host and SPI target roles. This option only 976 enables the SPI host role. 977 978config SPI_RZV2M_CSI 979 tristate "Renesas RZ/V2M CSI controller" 980 depends on ARCH_RENESAS || COMPILE_TEST 981 help 982 SPI driver for Renesas RZ/V2M Clocked Serial Interface (CSI). 983 CSI supports both SPI host and SPI target roles. 984 985config SPI_QCOM_QSPI 986 tristate "QTI QSPI controller" 987 depends on ARCH_QCOM || COMPILE_TEST 988 help 989 QSPI(Quad SPI) driver for Qualcomm QSPI controller. 990 991config SPI_QPIC_SNAND 992 tristate "QPIC SNAND controller" 993 depends on ARCH_QCOM || COMPILE_TEST 994 depends on MTD 995 help 996 QPIC_SNAND (QPIC SPI NAND) driver for Qualcomm QPIC controller. 997 QPIC controller supports both parallel nand and serial nand. 998 This config will enable serial nand driver for QPIC controller. 999 1000config SPI_QUP 1001 tristate "Qualcomm SPI controller with QUP interface" 1002 depends on ARCH_QCOM || COMPILE_TEST 1003 help 1004 Qualcomm Universal Peripheral (QUP) core is an AHB slave that 1005 provides a common data path (an output FIFO and an input FIFO) 1006 for serial peripheral interface (SPI) mini-core. SPI in master 1007 mode supports up to 50MHz, up to four chip selects, programmable 1008 data path from 4 bits to 32 bits and numerous protocol variants. 1009 1010 This driver can also be built as a module. If so, the module 1011 will be called spi_qup. 1012 1013config SPI_QCOM_GENI 1014 tristate "Qualcomm GENI based SPI controller" 1015 depends on QCOM_GENI_SE 1016 help 1017 This driver supports GENI serial engine based SPI controller in 1018 master mode on the Qualcomm Technologies Inc.'s SoCs. If you say 1019 yes to this option, support will be included for the built-in SPI 1020 interface on the Qualcomm Technologies Inc.'s SoCs. 1021 1022 This driver can also be built as a module. If so, the module 1023 will be called spi-geni-qcom. 1024 1025config SPI_S3C64XX 1026 tristate "Samsung S3C64XX/Exynos SoC series type SPI" 1027 depends on (PLAT_SAMSUNG || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST) 1028 help 1029 SPI driver for Samsung S3C64XX, S5Pv210 and Exynos SoCs. 1030 Choose Y/M here only if you build for such Samsung SoC. 1031 1032config SPI_SC18IS602 1033 tristate "NXP SC18IS602/602B/603 I2C to SPI bridge" 1034 depends on I2C 1035 help 1036 SPI driver for NXP SC18IS602/602B/603 I2C to SPI bridge. 1037 1038config SPI_SH_MSIOF 1039 tristate "SuperH MSIOF SPI controller" 1040 depends on HAVE_CLK 1041 depends on ARCH_SHMOBILE || ARCH_RENESAS || COMPILE_TEST 1042 help 1043 SPI driver for SuperH and SH Mobile MSIOF blocks. 1044 1045config SPI_SH 1046 tristate "SuperH SPI controller" 1047 depends on SUPERH || COMPILE_TEST 1048 help 1049 SPI driver for SuperH SPI blocks. 1050 1051config SPI_SH_SCI 1052 tristate "SuperH SCI SPI controller" 1053 depends on SUPERH 1054 select SPI_BITBANG 1055 help 1056 SPI driver for SuperH SCI blocks. 1057 1058config SPI_SH_HSPI 1059 tristate "SuperH HSPI controller" 1060 depends on ARCH_RENESAS || COMPILE_TEST 1061 help 1062 SPI driver for SuperH HSPI blocks. 1063 1064config SPI_SIFIVE 1065 tristate "SiFive SPI controller" 1066 depends on HAS_IOMEM 1067 help 1068 This exposes the SPI controller IP from SiFive. 1069 1070config SPI_SLAVE_MT27XX 1071 tristate "MediaTek SPI slave device" 1072 depends on ARCH_MEDIATEK || COMPILE_TEST 1073 depends on SPI_SLAVE 1074 help 1075 This selects the MediaTek(R) SPI slave device driver. 1076 If you want to use MediaTek(R) SPI slave interface, 1077 say Y or M here.If you are not sure, say N. 1078 SPI slave drivers for Mediatek MT27XX series ARM SoCs. 1079 1080config SPI_SN_F_OSPI 1081 tristate "Socionext F_OSPI SPI flash controller" 1082 depends on OF && HAS_IOMEM 1083 depends on SPI_MEM 1084 help 1085 This enables support for the Socionext F_OSPI controller 1086 for connecting an SPI Flash memory over up to 8-bit wide bus. 1087 It supports indirect access mode only. 1088 1089config SPI_SG2044_NOR 1090 tristate "SG2044 SPI NOR Controller" 1091 depends on ARCH_SOPHGO || COMPILE_TEST 1092 help 1093 This enables support for the SG2044 SPI NOR controller, 1094 which supports Dual/Quad read and write operations while 1095 also supporting 3Byte address devices and 4Byte address 1096 devices. 1097 1098config SPI_SPACEMIT_K1 1099 tristate "K1 SPI Controller" 1100 depends on ARCH_SPACEMIT || COMPILE_TEST 1101 depends on OF 1102 imply MMP_PDMA if ARCH_SPACEMIT 1103 default m if ARCH_SPACEMIT 1104 help 1105 Enable support for the SpacemiT K1 SPI controller. 1106 1107config SPI_SPRD 1108 tristate "Spreadtrum SPI controller" 1109 depends on ARCH_SPRD || COMPILE_TEST 1110 help 1111 SPI driver for Spreadtrum SoCs. 1112 1113config SPI_SPRD_ADI 1114 tristate "Spreadtrum ADI controller" 1115 depends on ARCH_SPRD || COMPILE_TEST 1116 depends on HWSPINLOCK || (COMPILE_TEST && !HWSPINLOCK) 1117 help 1118 ADI driver based on SPI for Spreadtrum SoCs. 1119 1120config SPI_STM32 1121 tristate "STMicroelectronics STM32 SPI controller" 1122 depends on ARCH_STM32 || COMPILE_TEST 1123 select SPI_SLAVE 1124 help 1125 SPI driver for STMicroelectronics STM32 SoCs. 1126 1127 STM32 SPI controller supports DMA and PIO modes. When DMA 1128 is not available, the driver automatically falls back to 1129 PIO mode. 1130 1131config SPI_STM32_OSPI 1132 tristate "STMicroelectronics STM32 OCTO SPI controller" 1133 depends on ARCH_STM32 || COMPILE_TEST 1134 depends on OF 1135 depends on SPI_MEM 1136 help 1137 This enables support for the Octo SPI controller in master mode. 1138 This driver does not support generic SPI. The implementation only 1139 supports spi-mem interface. 1140 1141config SPI_STM32_QSPI 1142 tristate "STMicroelectronics STM32 QUAD SPI controller" 1143 depends on ARCH_STM32 || COMPILE_TEST 1144 depends on OF 1145 depends on SPI_MEM 1146 help 1147 This enables support for the Quad SPI controller in master mode. 1148 This driver does not support generic SPI. The implementation only 1149 supports spi-mem interface. 1150 1151config SPI_ST_SSC4 1152 tristate "STMicroelectronics SPI SSC-based driver" 1153 depends on ARCH_STI || COMPILE_TEST 1154 help 1155 STMicroelectronics SoCs support for SPI. If you say yes to 1156 this option, support will be included for the SSC driven SPI. 1157 1158config SPI_SUN4I 1159 tristate "Allwinner A10 SoCs SPI controller" 1160 depends on ARCH_SUNXI || COMPILE_TEST 1161 help 1162 SPI driver for Allwinner sun4i, sun5i and sun7i SoCs 1163 1164config SPI_SUN6I 1165 tristate "Allwinner A31 SPI controller" 1166 depends on ARCH_SUNXI || COMPILE_TEST 1167 depends on RESET_CONTROLLER 1168 help 1169 This enables using the SPI controller on the Allwinner A31 SoCs. 1170 1171config SPI_SUNPLUS_SP7021 1172 tristate "Sunplus SP7021 SPI controller" 1173 depends on SOC_SP7021 || COMPILE_TEST 1174 help 1175 This enables Sunplus SP7021 SPI controller driver on the SP7021 SoCs. 1176 This driver can also be built as a module. If so, the module will be 1177 called as spi-sunplus-sp7021. 1178 1179 If you have a Sunplus SP7021 platform say Y here. 1180 If unsure, say N. 1181 1182config SPI_SYNQUACER 1183 tristate "Socionext's SynQuacer HighSpeed SPI controller" 1184 depends on ARCH_SYNQUACER || COMPILE_TEST 1185 help 1186 SPI driver for Socionext's High speed SPI controller which provides 1187 various operating modes for interfacing to serial peripheral devices 1188 that use the de-facto standard SPI protocol. 1189 1190 It also supports the new dual-bit and quad-bit SPI protocol. 1191 1192config SPI_MXIC 1193 tristate "Macronix MX25F0A SPI controller" 1194 depends on SPI_MASTER 1195 imply MTD_NAND_ECC_MXIC 1196 help 1197 This selects the Macronix MX25F0A SPI controller driver. 1198 1199config SPI_MXS 1200 tristate "Freescale MXS SPI controller" 1201 depends on ARCH_MXS 1202 select STMP_DEVICE 1203 help 1204 SPI driver for Freescale MXS devices. 1205 1206config SPI_TEGRA210_QUAD 1207 tristate "NVIDIA Tegra QSPI Controller" 1208 depends on ARCH_TEGRA || COMPILE_TEST 1209 depends on RESET_CONTROLLER 1210 help 1211 QSPI driver for NVIDIA Tegra QSPI Controller interface. This 1212 controller is different from the SPI controller and is available 1213 on Tegra SoCs starting from Tegra210. 1214 1215config SPI_TEGRA114 1216 tristate "NVIDIA Tegra114 SPI Controller" 1217 depends on ARCH_TEGRA || COMPILE_TEST 1218 depends on RESET_CONTROLLER 1219 help 1220 SPI controller driver for NVIDIA Tegra114 and later SoCs. This controller 1221 is different than the older SoCs SPI controller and also register interface 1222 get changed with this controller. 1223 1224config SPI_TEGRA20_SFLASH 1225 tristate "Nvidia Tegra20 Serial flash Controller" 1226 depends on ARCH_TEGRA || COMPILE_TEST 1227 depends on RESET_CONTROLLER 1228 help 1229 SPI driver for Nvidia Tegra20 Serial flash Controller interface. 1230 The main usecase of this controller is to use spi flash as boot 1231 device. 1232 1233config SPI_TEGRA20_SLINK 1234 tristate "Nvidia Tegra20/Tegra30 SLINK Controller" 1235 depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST 1236 depends on RESET_CONTROLLER 1237 help 1238 SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface. 1239 1240config SPI_THUNDERX 1241 tristate "Cavium ThunderX SPI controller" 1242 depends on PCI && 64BIT && (ARM64 || COMPILE_TEST) 1243 help 1244 SPI host driver for the hardware found on Cavium ThunderX 1245 SOCs. 1246 1247config SPI_TOPCLIFF_PCH 1248 tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) SPI" 1249 depends on PCI && (X86_32 || MIPS || COMPILE_TEST) 1250 help 1251 SPI driver for the Topcliff PCH (Platform Controller Hub) SPI bus 1252 used in some x86 embedded processors. 1253 1254 This driver also supports the ML7213/ML7223/ML7831, a companion chip 1255 for the Atom E6xx series and compatible with the Intel EG20T PCH. 1256 1257config SPI_UNIPHIER 1258 tristate "Socionext UniPhier SPI Controller" 1259 depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF 1260 depends on HAS_IOMEM 1261 help 1262 This enables a driver for the Socionext UniPhier SoC SCSSI SPI controller. 1263 1264 UniPhier SoCs have SCSSI and MCSSI SPI controllers. 1265 Every UniPhier SoC has SCSSI which supports single channel. 1266 Older UniPhier Pro4/Pro5 also has MCSSI which support multiple channels. 1267 This driver supports SCSSI only. 1268 1269 If your SoC supports SCSSI, say Y here. 1270 1271config SPI_VIRTIO 1272 tristate "Virtio SPI Controller" 1273 depends on SPI_MASTER && VIRTIO 1274 help 1275 If you say yes to this option, support will be included for the virtio 1276 SPI controller driver. The hardware can be emulated by any device model 1277 software according to the virtio protocol. 1278 1279 This driver can also be built as a module. If so, the module 1280 will be called spi-virtio. 1281 1282config SPI_XCOMM 1283 tristate "Analog Devices AD-FMCOMMS1-EBZ SPI-I2C-bridge driver" 1284 depends on I2C 1285 help 1286 Support for the SPI-I2C bridge found on the Analog Devices 1287 AD-FMCOMMS1-EBZ board. 1288 1289config SPI_XILINX 1290 tristate "Xilinx SPI controller common module" 1291 depends on HAS_IOMEM 1292 select SPI_BITBANG 1293 help 1294 This exposes the SPI controller IP from the Xilinx EDK. 1295 1296 See the "OPB Serial Peripheral Interface (SPI) (v1.00e)" 1297 Product Specification document (DS464) for hardware details. 1298 1299 Or for the DS570, see "XPS Serial Peripheral Interface (SPI) (v2.00b)" 1300 1301config SPI_XLP 1302 tristate "Cavium ThunderX2 SPI controller driver" 1303 depends on ARCH_THUNDER2 || COMPILE_TEST 1304 help 1305 Enable support for the SPI controller on the Cavium ThunderX2. 1306 (Originally on Netlogic XLP SoCs.) 1307 1308 If you have a Cavium ThunderX2 platform say Y here. 1309 If unsure, say N. 1310 1311config SPI_XTENSA_XTFPGA 1312 tristate "Xtensa SPI controller for xtfpga" 1313 depends on (XTENSA && XTENSA_PLATFORM_XTFPGA) || COMPILE_TEST 1314 select SPI_BITBANG 1315 help 1316 SPI driver for xtfpga SPI master controller. 1317 1318 This simple SPI master controller is built into xtfpga bitstreams 1319 and is used to control daughterboard audio codec. It always transfers 1320 16 bit words in SPI mode 0, automatically asserting CS on transfer 1321 start and deasserting on end. 1322 1323config SPI_ZYNQ_QSPI 1324 tristate "Xilinx Zynq QSPI controller" 1325 depends on ARCH_ZYNQ || COMPILE_TEST 1326 depends on SPI_MEM 1327 help 1328 This enables support for the Zynq Quad SPI controller 1329 in master mode. 1330 This controller only supports SPI memory interface. 1331 1332config SPI_ZYNQMP_GQSPI 1333 tristate "Xilinx ZynqMP GQSPI controller" 1334 depends on (SPI_MEM && HAS_DMA) || COMPILE_TEST 1335 help 1336 Enables Xilinx GQSPI controller driver for Zynq UltraScale+ MPSoC. 1337 This controller only supports SPI memory interface. 1338 1339config SPI_AMD 1340 tristate "AMD SPI controller" 1341 depends on PCI 1342 depends on SPI_MASTER || X86 || COMPILE_TEST 1343 depends on SPI_MEM 1344 help 1345 Enables SPI controller driver for AMD SoC. 1346 1347# 1348# Add new SPI master controllers in alphabetical order above this line 1349# 1350 1351comment "SPI Multiplexer support" 1352 1353config SPI_MUX 1354 tristate "SPI multiplexer support" 1355 select MULTIPLEXER 1356 help 1357 This adds support for SPI multiplexers. Each SPI mux will be 1358 accessible as a SPI controller, the devices behind the mux will appear 1359 to be chip selects on this controller. It is still necessary to 1360 select one or more specific mux-controller drivers. 1361 1362# 1363# There are lots of SPI device types, with sensors and memory 1364# being probably the most widely used ones. 1365# 1366comment "SPI Protocol Masters" 1367 1368config SPI_SPIDEV 1369 tristate "User mode SPI device driver support" 1370 help 1371 This supports user mode SPI protocol drivers. 1372 1373config SPI_DMA_KUNIT_TEST 1374 tristate "KUnit tests for SPI core DMA mapping" if !KUNIT_ALL_TESTS 1375 depends on KUNIT && HAS_DMA 1376 default KUNIT_ALL_TESTS 1377 help 1378 Build KUnit tests for SPI core DMA mapping. The tests exercise 1379 partial TX and RX mapping failures, verify that the mapping state is 1380 unwound, and check that the current DMA devices identify the owner of 1381 those mappings when the error is returned. They also cover a 1382 successful mapping and a message which requires no mapping. 1383 1384 If unsure say N. 1385 1386config SPI_LOOPBACK_TEST 1387 tristate "spi loopback test framework support" 1388 depends on m 1389 help 1390 This enables the SPI loopback testing framework driver 1391 1392 primarily used for development of spi_master drivers 1393 and to detect regressions 1394 1395config SPI_TLE62X0 1396 tristate "Infineon TLE62X0 (for power switching)" 1397 depends on SYSFS 1398 help 1399 SPI driver for Infineon TLE62X0 series line driver chips, 1400 such as the TLE6220, TLE6230 and TLE6240. This provides a 1401 sysfs interface, with each line presented as a kind of GPIO 1402 exposing both switch control and diagnostic feedback. 1403 1404# 1405# Add new SPI protocol masters in alphabetical order above this line 1406# 1407 1408endif # SPI_MASTER 1409 1410# 1411# SLAVE side ... listening to other SPI masters 1412# 1413 1414config SPI_SLAVE 1415 bool "SPI slave protocol handlers" 1416 help 1417 If your system has a slave-capable SPI controller, you can enable 1418 slave protocol handlers. 1419 1420if SPI_SLAVE 1421 1422config SPI_SLAVE_TIME 1423 tristate "SPI slave handler reporting boot up time" 1424 help 1425 SPI slave handler responding with the time of reception of the last 1426 SPI message. 1427 1428config SPI_SLAVE_SYSTEM_CONTROL 1429 tristate "SPI slave handler controlling system state" 1430 help 1431 SPI slave handler to allow remote control of system reboot, power 1432 off, halt, and suspend. 1433 1434endif # SPI_SLAVE 1435 1436config SPI_DYNAMIC 1437 def_bool ACPI || OF_DYNAMIC || SPI_SLAVE 1438 1439if SPI_OFFLOAD 1440 1441comment "SPI Offload triggers" 1442 1443config SPI_OFFLOAD_TRIGGER_ADI_UTIL_SD 1444 tristate "SPI offload trigger using ADI sigma-delta utility" 1445 help 1446 SPI offload trigger from ADI sigma-delta utility FPGA IP block. 1447 1448config SPI_OFFLOAD_TRIGGER_PWM 1449 tristate "SPI offload trigger using PWM" 1450 depends on PWM 1451 help 1452 Generic SPI offload trigger implemented using PWM output. 1453 1454endif # SPI_OFFLOAD 1455 1456endif # SPI 1457