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