xref: /openbmc/linux/drivers/spi/Kconfig (revision d5dbb2e8)
1#
2# SPI driver configuration
3#
4menuconfig SPI
5	bool "SPI support"
6	depends on HAS_IOMEM
7	help
8	  The "Serial Peripheral Interface" is a low level synchronous
9	  protocol.  Chips that support SPI can have data transfer rates
10	  up to several tens of Mbit/sec.  Chips are addressed with a
11	  controller and a chipselect.  Most SPI slaves don't support
12	  dynamic device discovery; some are even write-only or read-only.
13
14	  SPI is widely used by microcontrollers to talk with sensors,
15	  eeprom and flash memory, codecs and various other controller
16	  chips, analog to digital (and d-to-a) converters, and more.
17	  MMC and SD cards can be accessed using SPI protocol; and for
18	  DataFlash cards used in MMC sockets, SPI must always be used.
19
20	  SPI is one of a family of similar protocols using a four wire
21	  interface (select, clock, data in, data out) including Microwire
22	  (half duplex), SSP, SSI, and PSP.  This driver framework should
23	  work with most such devices and controllers.
24
25if SPI
26
27config SPI_DEBUG
28	bool "Debug support for SPI drivers"
29	depends on DEBUG_KERNEL
30	help
31	  Say "yes" to enable debug messaging (like dev_dbg and pr_debug),
32	  sysfs, and debugfs support in SPI controller and protocol drivers.
33
34#
35# MASTER side ... talking to discrete SPI slave chips including microcontrollers
36#
37
38config SPI_MASTER
39#	bool "SPI Master Support"
40	bool
41	default SPI
42	help
43	  If your system has an master-capable SPI controller (which
44	  provides the clock and chipselect), you can enable that
45	  controller and the protocol drivers for the SPI slave chips
46	  that are connected.
47
48if SPI_MASTER
49
50config SPI_MEM
51	bool "SPI memory extension"
52	help
53	  Enable this option if you want to enable the SPI memory extension.
54	  This extension is meant to simplify interaction with SPI memories
55	  by providing a high-level interface to send memory-like commands.
56
57comment "SPI Master Controller Drivers"
58
59config SPI_ALTERA
60	tristate "Altera SPI Controller"
61	help
62	  This is the driver for the Altera SPI Controller.
63
64config SPI_ATH79
65	tristate "Atheros AR71XX/AR724X/AR913X SPI controller driver"
66	depends on ATH79 && GPIOLIB
67	select SPI_BITBANG
68	help
69	  This enables support for the SPI controller present on the
70	  Atheros AR71XX/AR724X/AR913X SoCs.
71
72config SPI_ARMADA_3700
73	tristate "Marvell Armada 3700 SPI Controller"
74	depends on (ARCH_MVEBU && OF) || COMPILE_TEST
75	help
76	  This enables support for the SPI controller present on the
77	  Marvell Armada 3700 SoCs.
78
79config SPI_ATMEL
80	tristate "Atmel SPI Controller"
81	depends on ARCH_AT91 || COMPILE_TEST
82	help
83	  This selects a driver for the Atmel SPI Controller, present on
84	  many AT91 ARM chips.
85
86config SPI_AT91_USART
87	tristate "Atmel USART Controller SPI driver"
88	depends on (ARCH_AT91 || COMPILE_TEST)
89	depends on MFD_AT91_USART
90	help
91	  This selects a driver for the AT91 USART Controller as SPI Master,
92	  present on AT91 and SAMA5 SoC series.
93
94config SPI_ATMEL_QUADSPI
95	tristate "Atmel Quad SPI Controller"
96	depends on ARCH_AT91 || (ARM && COMPILE_TEST && !ARCH_EBSA110)
97	depends on OF && HAS_IOMEM
98	help
99	  This enables support for the Quad SPI controller in master mode.
100	  This driver does not support generic SPI. The implementation only
101	  supports spi-mem interface.
102
103config SPI_AU1550
104	tristate "Au1550/Au1200/Au1300 SPI Controller"
105	depends on MIPS_ALCHEMY
106	select SPI_BITBANG
107	help
108	  If you say yes to this option, support will be included for the
109	  PSC SPI controller found on Au1550, Au1200 and Au1300 series.
110
111config SPI_AXI_SPI_ENGINE
112	tristate "Analog Devices AXI SPI Engine controller"
113	depends on HAS_IOMEM
114	help
115	  This enables support for the Analog Devices AXI SPI Engine SPI controller.
116	  It is part of the SPI Engine framework that is used in some Analog Devices
117	  reference designs for FPGAs.
118
119config SPI_BCM2835
120	tristate "BCM2835 SPI controller"
121	depends on GPIOLIB
122	depends on ARCH_BCM2835 || COMPILE_TEST
123	help
124	  This selects a driver for the Broadcom BCM2835 SPI master.
125
126	  The BCM2835 contains two types of SPI master controller; the
127	  "universal SPI master", and the regular SPI controller. This driver
128	  is for the regular SPI controller. Slave mode operation is not also
129	  not supported.
130
131config SPI_BCM2835AUX
132	tristate "BCM2835 SPI auxiliary controller"
133	depends on (ARCH_BCM2835 && GPIOLIB) || COMPILE_TEST
134	help
135	  This selects a driver for the Broadcom BCM2835 SPI aux master.
136
137	  The BCM2835 contains two types of SPI master controller; the
138	  "universal SPI master", and the regular SPI controller.
139	  This driver is for the universal/auxiliary SPI controller.
140
141config SPI_BCM63XX
142	tristate "Broadcom BCM63xx SPI controller"
143	depends on BCM63XX || COMPILE_TEST
144	help
145          Enable support for the SPI controller on the Broadcom BCM63xx SoCs.
146
147config SPI_BCM63XX_HSSPI
148	tristate "Broadcom BCM63XX HS SPI controller driver"
149	depends on BCM63XX || ARCH_BCM_63XX || COMPILE_TEST
150	help
151	  This enables support for the High Speed SPI controller present on
152	  newer Broadcom BCM63XX SoCs.
153
154config SPI_BCM_QSPI
155	tristate "Broadcom BSPI and MSPI controller support"
156	depends on ARCH_BRCMSTB || ARCH_BCM || ARCH_BCM_IPROC || \
157			BMIPS_GENERIC || COMPILE_TEST
158	default ARCH_BCM_IPROC
159	help
160	  Enables support for the Broadcom SPI flash and MSPI controller.
161	  Select this option for any one of BRCMSTB, iProc NSP and NS2 SoCs
162	  based platforms. This driver works for both SPI master for spi-nor
163	  flash device as well as MSPI device.
164
165config SPI_BITBANG
166	tristate "Utilities for Bitbanging SPI masters"
167	help
168	  With a few GPIO pins, your system can bitbang the SPI protocol.
169	  Select this to get SPI support through I/O pins (GPIO, parallel
170	  port, etc).  Or, some systems' SPI master controller drivers use
171	  this code to manage the per-word or per-transfer accesses to the
172	  hardware shift registers.
173
174	  This is library code, and is automatically selected by drivers that
175	  need it.  You only need to select this explicitly to support driver
176	  modules that aren't part of this kernel tree.
177
178config SPI_BUTTERFLY
179	tristate "Parallel port adapter for AVR Butterfly (DEVELOPMENT)"
180	depends on PARPORT
181	select SPI_BITBANG
182	help
183	  This uses a custom parallel port cable to connect to an AVR
184	  Butterfly <http://www.atmel.com/products/avr/butterfly>, an
185	  inexpensive battery powered microcontroller evaluation board.
186	  This same cable can be used to flash new firmware.
187
188config SPI_CADENCE
189	tristate "Cadence SPI controller"
190	help
191	  This selects the Cadence SPI controller master driver
192	  used by Xilinx Zynq and ZynqMP.
193
194config SPI_CLPS711X
195	tristate "CLPS711X host SPI controller"
196	depends on ARCH_CLPS711X || COMPILE_TEST
197	help
198	  This enables dedicated general purpose SPI/Microwire1-compatible
199	  master mode interface (SSI1) for CLPS711X-based CPUs.
200
201config SPI_COLDFIRE_QSPI
202	tristate "Freescale Coldfire QSPI controller"
203	depends on (M520x || M523x || M5249 || M525x || M527x || M528x || M532x)
204	help
205	  This enables support for the Coldfire QSPI controller in master
206	  mode.
207
208config SPI_DAVINCI
209	tristate "Texas Instruments DaVinci/DA8x/OMAP-L/AM1x SoC SPI controller"
210	depends on ARCH_DAVINCI || ARCH_KEYSTONE
211	select SPI_BITBANG
212	help
213	  SPI master controller for DaVinci/DA8x/OMAP-L/AM1x SPI modules.
214
215config SPI_DESIGNWARE
216	tristate "DesignWare SPI controller core support"
217	help
218	  general driver for SPI controller core from DesignWare
219
220config SPI_DW_PCI
221	tristate "PCI interface driver for DW SPI core"
222	depends on SPI_DESIGNWARE && PCI
223
224config SPI_DW_MID_DMA
225	bool "DMA support for DW SPI controller on Intel MID platform"
226	depends on SPI_DW_PCI && DW_DMAC_PCI
227
228config SPI_DW_MMIO
229	tristate "Memory-mapped io interface driver for DW SPI core"
230	depends on SPI_DESIGNWARE
231
232config SPI_DLN2
233       tristate "Diolan DLN-2 USB SPI adapter"
234       depends on MFD_DLN2
235       help
236         If you say yes to this option, support will be included for Diolan
237         DLN2, a USB to SPI interface.
238
239         This driver can also be built as a module.  If so, the module
240         will be called spi-dln2.
241
242config SPI_EFM32
243	tristate "EFM32 SPI controller"
244	depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
245	select SPI_BITBANG
246	help
247	  Driver for the spi controller found on Energy Micro's EFM32 SoCs.
248
249config SPI_EP93XX
250	tristate "Cirrus Logic EP93xx SPI controller"
251	depends on ARCH_EP93XX || COMPILE_TEST
252	help
253	  This enables using the Cirrus EP93xx SPI controller in master
254	  mode.
255
256config SPI_FALCON
257	bool "Falcon SPI controller support"
258	depends on SOC_FALCON
259	help
260	  The external bus unit (EBU) found on the FALC-ON SoC has SPI
261	  emulation that is designed for serial flash access. This driver
262	  has only been tested with m25p80 type chips. The hardware has no
263	  support for other types of SPI peripherals.
264
265config SPI_FSL_LPSPI
266	tristate "Freescale i.MX LPSPI controller"
267	depends on ARCH_MXC || COMPILE_TEST
268	help
269	  This enables Freescale i.MX LPSPI controllers in master mode.
270
271config SPI_GPIO
272	tristate "GPIO-based bitbanging SPI Master"
273	depends on GPIOLIB || COMPILE_TEST
274	select SPI_BITBANG
275	help
276	  This simple GPIO bitbanging SPI master uses the arch-neutral GPIO
277	  interface to manage MOSI, MISO, SCK, and chipselect signals.  SPI
278	  slaves connected to a bus using this driver are configured as usual,
279	  except that the spi_board_info.controller_data holds the GPIO number
280	  for the chipselect used by this controller driver.
281
282	  Note that this driver often won't achieve even 1 Mbit/sec speeds,
283	  making it unusually slow for SPI.  If your platform can inline
284	  GPIO operations, you should be able to leverage that for better
285	  speed with a custom version of this driver; see the source code.
286
287config SPI_IMG_SPFI
288	tristate "IMG SPFI controller"
289	depends on MIPS || COMPILE_TEST
290	help
291	  This enables support for the SPFI master controller found on
292	  IMG SoCs.
293
294config SPI_IMX
295	tristate "Freescale i.MX SPI controllers"
296	depends on ARCH_MXC || COMPILE_TEST
297	select SPI_BITBANG
298	help
299	  This enables using the Freescale i.MX SPI controllers in master
300	  mode.
301
302config SPI_JCORE
303	tristate "J-Core SPI Master"
304	depends on OF && (SUPERH || COMPILE_TEST)
305	help
306	  This enables support for the SPI master controller in the J-Core
307	  synthesizable, open source SoC.
308
309config SPI_LM70_LLP
310	tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
311	depends on PARPORT
312	select SPI_BITBANG
313	help
314	  This driver supports the NS LM70 LLP Evaluation Board,
315	  which interfaces to an LM70 temperature sensor using
316	  a parallel port.
317
318config SPI_LP8841_RTC
319	tristate "ICP DAS LP-8841 SPI Controller for RTC"
320	depends on MACH_PXA27X_DT || COMPILE_TEST
321	help
322	  This driver provides an SPI master device to drive Maxim
323	  DS-1302 real time clock.
324
325	  Say N here unless you plan to run the kernel on an ICP DAS
326	  LP-8x4x industrial computer.
327
328config SPI_MPC52xx
329	tristate "Freescale MPC52xx SPI (non-PSC) controller support"
330	depends on PPC_MPC52xx
331	help
332	  This drivers supports the MPC52xx SPI controller in master SPI
333	  mode.
334
335config SPI_MPC52xx_PSC
336	tristate "Freescale MPC52xx PSC SPI controller"
337	depends on PPC_MPC52xx
338	help
339	  This enables using the Freescale MPC52xx Programmable Serial
340	  Controller in master SPI mode.
341
342config SPI_MPC512x_PSC
343	tristate "Freescale MPC512x PSC SPI controller"
344	depends on PPC_MPC512x
345	help
346	  This enables using the Freescale MPC5121 Programmable Serial
347	  Controller in SPI master mode.
348
349config SPI_FSL_LIB
350	tristate
351	depends on OF
352
353config SPI_FSL_CPM
354	tristate
355	depends on FSL_SOC
356
357config SPI_FSL_SPI
358	tristate "Freescale SPI controller and Aeroflex Gaisler GRLIB SPI controller"
359	depends on OF
360	select SPI_FSL_LIB
361	select SPI_FSL_CPM if FSL_SOC
362	help
363	  This enables using the Freescale SPI controllers in master mode.
364	  MPC83xx platform uses the controller in cpu mode or CPM/QE mode.
365	  MPC8569 uses the controller in QE mode, MPC8610 in cpu mode.
366	  This also enables using the Aeroflex Gaisler GRLIB SPI controller in
367	  master mode.
368
369config SPI_FSL_DSPI
370	tristate "Freescale DSPI controller"
371	select REGMAP_MMIO
372	depends on SOC_VF610 || SOC_LS1021A || ARCH_LAYERSCAPE || M5441x || COMPILE_TEST
373	help
374	  This enables support for the Freescale DSPI controller in master
375	  mode. VF610 platform uses the controller.
376
377config SPI_FSL_ESPI
378	tristate "Freescale eSPI controller"
379	depends on FSL_SOC
380	help
381	  This enables using the Freescale eSPI controllers in master mode.
382	  From MPC8536, 85xx platform uses the controller, and all P10xx,
383	  P20xx, P30xx,P40xx, P50xx uses this controller.
384
385config SPI_MESON_SPICC
386	tristate "Amlogic Meson SPICC controller"
387	depends on ARCH_MESON || COMPILE_TEST
388	help
389	  This enables master mode support for the SPICC (SPI communication
390	  controller) available in Amlogic Meson SoCs.
391
392config SPI_MESON_SPIFC
393	tristate "Amlogic Meson SPIFC controller"
394	depends on ARCH_MESON || COMPILE_TEST
395	select REGMAP_MMIO
396	help
397	  This enables master mode support for the SPIFC (SPI flash
398	  controller) available in Amlogic Meson SoCs.
399
400config SPI_MT65XX
401	tristate "MediaTek SPI controller"
402	depends on ARCH_MEDIATEK || COMPILE_TEST
403	help
404	  This selects the MediaTek(R) SPI bus driver.
405	  If you want to use MediaTek(R) SPI interface,
406	  say Y or M here.If you are not sure, say N.
407	  SPI drivers for Mediatek MT65XX and MT81XX series ARM SoCs.
408
409config SPI_NPCM_PSPI
410	tristate "Nuvoton NPCM PSPI Controller"
411	depends on ARCH_NPCM || COMPILE_TEST
412	help
413	  This driver provides support for Nuvoton NPCM BMC
414	  Peripheral SPI controller in master mode.
415
416config SPI_NUC900
417	tristate "Nuvoton NUC900 series SPI"
418	depends on ARCH_W90X900
419	select SPI_BITBANG
420	help
421	  SPI driver for Nuvoton NUC900 series ARM SoCs
422
423config SPI_LANTIQ_SSC
424	tristate "Lantiq SSC SPI controller"
425	depends on LANTIQ || COMPILE_TEST
426	help
427	  This driver supports the Lantiq SSC SPI controller in master
428	  mode. This controller is found on Intel (former Lantiq) SoCs like
429	  the Danube, Falcon, xRX200, xRX300.
430
431config SPI_OC_TINY
432	tristate "OpenCores tiny SPI"
433	depends on GPIOLIB || COMPILE_TEST
434	select SPI_BITBANG
435	help
436	  This is the driver for OpenCores tiny SPI master controller.
437
438config SPI_OCTEON
439	tristate "Cavium OCTEON SPI controller"
440	depends on CAVIUM_OCTEON_SOC
441	help
442	  SPI host driver for the hardware found on some Cavium OCTEON
443	  SOCs.
444
445config SPI_OMAP_UWIRE
446	tristate "OMAP1 MicroWire"
447	depends on ARCH_OMAP1
448	select SPI_BITBANG
449	help
450	  This hooks up to the MicroWire controller on OMAP1 chips.
451
452config SPI_OMAP24XX
453	tristate "McSPI driver for OMAP"
454	depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
455	select SG_SPLIT
456	help
457	  SPI master controller for OMAP24XX and later Multichannel SPI
458	  (McSPI) modules.
459
460config SPI_TI_QSPI
461	tristate "DRA7xxx QSPI controller support"
462	depends on ARCH_OMAP2PLUS || COMPILE_TEST
463	help
464	  QSPI master controller for DRA7xxx used for flash devices.
465	  This device supports single, dual and quad read support, while
466	  it only supports single write mode.
467
468config SPI_OMAP_100K
469	tristate "OMAP SPI 100K"
470	depends on ARCH_OMAP850 || ARCH_OMAP730 || COMPILE_TEST
471	help
472	  OMAP SPI 100K master controller for omap7xx boards.
473
474config SPI_ORION
475	tristate "Orion SPI master"
476	depends on PLAT_ORION || ARCH_MVEBU || COMPILE_TEST
477	help
478	  This enables using the SPI master controller on the Orion
479	  and MVEBU chips.
480
481config SPI_PIC32
482	tristate "Microchip PIC32 series SPI"
483	depends on MACH_PIC32 || COMPILE_TEST
484	help
485	  SPI driver for Microchip PIC32 SPI master controller.
486
487config SPI_PIC32_SQI
488	tristate "Microchip PIC32 Quad SPI driver"
489	depends on MACH_PIC32 || COMPILE_TEST
490	help
491	  SPI driver for PIC32 Quad SPI controller.
492
493config SPI_PL022
494	tristate "ARM AMBA PL022 SSP controller"
495	depends on ARM_AMBA
496	default y if MACH_U300
497	default y if ARCH_REALVIEW
498	default y if INTEGRATOR_IMPD1
499	default y if ARCH_VERSATILE
500	help
501	  This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
502	  controller. If you have an embedded system with an AMBA(R)
503	  bus and a PL022 controller, say Y or M here.
504
505config SPI_PPC4xx
506	tristate "PPC4xx SPI Controller"
507	depends on PPC32 && 4xx
508	select SPI_BITBANG
509	help
510	  This selects a driver for the PPC4xx SPI Controller.
511
512config SPI_PXA2XX
513	tristate "PXA2xx SSP SPI master"
514	depends on (ARCH_PXA || ARCH_MMP || PCI || ACPI)
515	select PXA_SSP if ARCH_PXA || ARCH_MMP
516	help
517	  This enables using a PXA2xx or Sodaville SSP port as a SPI master
518	  controller. The driver can be configured to use any SSP port and
519	  additional documentation can be found a Documentation/spi/pxa2xx.
520
521config SPI_PXA2XX_PCI
522	def_tristate SPI_PXA2XX && PCI && COMMON_CLK
523
524config SPI_ROCKCHIP
525	tristate "Rockchip SPI controller driver"
526	help
527	  This selects a driver for Rockchip SPI controller.
528
529	  If you say yes to this option, support will be included for
530	  RK3066, RK3188 and RK3288 families of SPI controller.
531	  Rockchip SPI controller support DMA transport and PIO mode.
532	  The main usecase of this controller is to use spi flash as boot
533	  device.
534
535config SPI_RB4XX
536	tristate "Mikrotik RB4XX SPI master"
537	depends on SPI_MASTER && ATH79
538	help
539	  SPI controller driver for the Mikrotik RB4xx series boards.
540
541config SPI_RSPI
542	tristate "Renesas RSPI/QSPI controller"
543	depends on SUPERH || ARCH_RENESAS || COMPILE_TEST
544	help
545	  SPI driver for Renesas RSPI and QSPI blocks.
546
547config SPI_QCOM_QSPI
548	tristate "QTI QSPI controller"
549	depends on ARCH_QCOM
550	help
551	  QSPI(Quad SPI) driver for Qualcomm QSPI controller.
552
553config SPI_QUP
554	tristate "Qualcomm SPI controller with QUP interface"
555	depends on ARCH_QCOM || (ARM && COMPILE_TEST)
556	help
557	  Qualcomm Universal Peripheral (QUP) core is an AHB slave that
558	  provides a common data path (an output FIFO and an input FIFO)
559	  for serial peripheral interface (SPI) mini-core. SPI in master
560	  mode supports up to 50MHz, up to four chip selects, programmable
561	  data path from 4 bits to 32 bits and numerous protocol variants.
562
563	  This driver can also be built as a module.  If so, the module
564	  will be called spi_qup.
565
566config SPI_QCOM_GENI
567	tristate "Qualcomm GENI based SPI controller"
568	depends on QCOM_GENI_SE
569	help
570	  This driver supports GENI serial engine based SPI controller in
571	  master mode on the Qualcomm Technologies Inc.'s SoCs. If you say
572	  yes to this option, support will be included for the built-in SPI
573	  interface on the Qualcomm Technologies Inc.'s SoCs.
574
575	  This driver can also be built as a module.  If so, the module
576	  will be called spi-geni-qcom.
577
578config SPI_S3C24XX
579	tristate "Samsung S3C24XX series SPI"
580	depends on ARCH_S3C24XX
581	select SPI_BITBANG
582	help
583	  SPI driver for Samsung S3C24XX series ARM SoCs
584
585config SPI_S3C24XX_FIQ
586	bool "S3C24XX driver with FIQ pseudo-DMA"
587	depends on SPI_S3C24XX
588	select FIQ
589	help
590	  Enable FIQ support for the S3C24XX SPI driver to provide pseudo
591	  DMA by using the fast-interrupt request framework, This allows
592	  the driver to get DMA-like performance when there are either
593	  no free DMA channels, or when doing transfers that required both
594	  TX and RX data paths.
595
596config SPI_S3C64XX
597	tristate "Samsung S3C64XX series type SPI"
598	depends on (PLAT_SAMSUNG || ARCH_EXYNOS || COMPILE_TEST)
599	help
600	  SPI driver for Samsung S3C64XX and newer SoCs.
601
602config SPI_SC18IS602
603	tristate "NXP SC18IS602/602B/603 I2C to SPI bridge"
604	depends on I2C
605	help
606	  SPI driver for NXP SC18IS602/602B/603 I2C to SPI bridge.
607
608config SPI_SH_MSIOF
609	tristate "SuperH MSIOF SPI controller"
610	depends on HAVE_CLK
611	depends on ARCH_SHMOBILE || ARCH_RENESAS || COMPILE_TEST
612	help
613	  SPI driver for SuperH and SH Mobile MSIOF blocks.
614
615config SPI_SH
616	tristate "SuperH SPI controller"
617	depends on SUPERH || COMPILE_TEST
618	help
619	  SPI driver for SuperH SPI blocks.
620
621config SPI_SH_SCI
622	tristate "SuperH SCI SPI controller"
623	depends on SUPERH
624	select SPI_BITBANG
625	help
626	  SPI driver for SuperH SCI blocks.
627
628config SPI_SH_HSPI
629	tristate "SuperH HSPI controller"
630	depends on ARCH_RENESAS || COMPILE_TEST
631	help
632	  SPI driver for SuperH HSPI blocks.
633
634config SPI_SIRF
635	tristate "CSR SiRFprimaII SPI controller"
636	depends on SIRF_DMA
637	select SPI_BITBANG
638	help
639	  SPI driver for CSR SiRFprimaII SoCs
640
641config SPI_SLAVE_MT27XX
642	tristate "MediaTek SPI slave device"
643	depends on ARCH_MEDIATEK || COMPILE_TEST
644	depends on SPI_SLAVE
645	help
646	  This selects the MediaTek(R) SPI slave device driver.
647	  If you want to use MediaTek(R) SPI slave interface,
648	  say Y or M here.If you are not sure, say N.
649	  SPI slave drivers for Mediatek MT27XX series ARM SoCs.
650
651config SPI_SPRD
652	tristate "Spreadtrum SPI controller"
653	depends on ARCH_SPRD || COMPILE_TEST
654	help
655	  SPI driver for Spreadtrum SoCs.
656
657config SPI_SPRD_ADI
658	tristate "Spreadtrum ADI controller"
659	depends on ARCH_SPRD || COMPILE_TEST
660	depends on HWSPINLOCK || (COMPILE_TEST && !HWSPINLOCK)
661	help
662	  ADI driver based on SPI for Spreadtrum SoCs.
663
664config SPI_STM32
665	tristate "STMicroelectronics STM32 SPI controller"
666	depends on ARCH_STM32 || COMPILE_TEST
667	help
668	  SPI driver for STMicroelectonics STM32 SoCs.
669
670	  STM32 SPI controller supports DMA and PIO modes. When DMA
671	  is not available, the driver automatically falls back to
672	  PIO mode.
673
674config SPI_STM32_QSPI
675	tristate "STMicroelectronics STM32 QUAD SPI controller"
676	depends on ARCH_STM32 || COMPILE_TEST
677	depends on OF
678	help
679	  This enables support for the Quad SPI controller in master mode.
680	  This driver does not support generic SPI. The implementation only
681	  supports spi-mem interface.
682
683config SPI_ST_SSC4
684	tristate "STMicroelectronics SPI SSC-based driver"
685	depends on ARCH_STI || COMPILE_TEST
686	help
687	  STMicroelectronics SoCs support for SPI. If you say yes to
688	  this option, support will be included for the SSC driven SPI.
689
690config SPI_SUN4I
691	tristate "Allwinner A10 SoCs SPI controller"
692	depends on ARCH_SUNXI || COMPILE_TEST
693	help
694	  SPI driver for Allwinner sun4i, sun5i and sun7i SoCs
695
696config SPI_SUN6I
697	tristate "Allwinner A31 SPI controller"
698	depends on ARCH_SUNXI || COMPILE_TEST
699	depends on RESET_CONTROLLER
700	help
701	  This enables using the SPI controller on the Allwinner A31 SoCs.
702
703config SPI_MXIC
704        tristate "Macronix MX25F0A SPI controller"
705        depends on SPI_MASTER
706        help
707          This selects the Macronix MX25F0A SPI controller driver.
708
709config SPI_MXS
710	tristate "Freescale MXS SPI controller"
711	depends on ARCH_MXS
712	select STMP_DEVICE
713	help
714	  SPI driver for Freescale MXS devices.
715
716config SPI_TEGRA114
717	tristate "NVIDIA Tegra114 SPI Controller"
718	depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
719	depends on RESET_CONTROLLER
720	help
721	  SPI driver for NVIDIA Tegra114 SPI Controller interface. This controller
722	  is different than the older SoCs SPI controller and also register interface
723	  get changed with this controller.
724
725config SPI_TEGRA20_SFLASH
726	tristate "Nvidia Tegra20 Serial flash Controller"
727	depends on ARCH_TEGRA || COMPILE_TEST
728	depends on RESET_CONTROLLER
729	help
730	  SPI driver for Nvidia Tegra20 Serial flash Controller interface.
731	  The main usecase of this controller is to use spi flash as boot
732	  device.
733
734config SPI_TEGRA20_SLINK
735	tristate "Nvidia Tegra20/Tegra30 SLINK Controller"
736	depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
737	depends on RESET_CONTROLLER
738	help
739	  SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface.
740
741config SPI_THUNDERX
742	tristate "Cavium ThunderX SPI controller"
743	depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
744	help
745	  SPI host driver for the hardware found on Cavium ThunderX
746	  SOCs.
747
748config SPI_TOPCLIFF_PCH
749	tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) SPI"
750	depends on PCI && (X86_32 || MIPS || COMPILE_TEST)
751	help
752	  SPI driver for the Topcliff PCH (Platform Controller Hub) SPI bus
753	  used in some x86 embedded processors.
754
755	  This driver also supports the ML7213/ML7223/ML7831, a companion chip
756	  for the Atom E6xx series and compatible with the Intel EG20T PCH.
757
758config SPI_TXX9
759	tristate "Toshiba TXx9 SPI controller"
760	depends on GPIOLIB && (CPU_TX49XX || COMPILE_TEST)
761	help
762	  SPI driver for Toshiba TXx9 MIPS SoCs
763
764config SPI_UNIPHIER
765	tristate "Socionext UniPhier SPI Controller"
766	depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF
767	help
768	  This enables a driver for the Socionext UniPhier SoC SCSSI SPI controller.
769
770	  UniPhier SoCs have SCSSI and MCSSI SPI controllers.
771	  Every UniPhier SoC has SCSSI which supports single channel.
772	  Older UniPhier Pro4/Pro5 also has MCSSI which support multiple channels.
773	  This driver supports SCSSI only.
774
775	  If your SoC supports SCSSI, say Y here.
776
777config SPI_XCOMM
778	tristate "Analog Devices AD-FMCOMMS1-EBZ SPI-I2C-bridge driver"
779	depends on I2C
780	help
781	  Support for the SPI-I2C bridge found on the Analog Devices
782	  AD-FMCOMMS1-EBZ board.
783
784config SPI_XILINX
785	tristate "Xilinx SPI controller common module"
786	depends on HAS_IOMEM
787	select SPI_BITBANG
788	help
789	  This exposes the SPI controller IP from the Xilinx EDK.
790
791	  See the "OPB Serial Peripheral Interface (SPI) (v1.00e)"
792	  Product Specification document (DS464) for hardware details.
793
794	  Or for the DS570, see "XPS Serial Peripheral Interface (SPI) (v2.00b)"
795
796config SPI_XLP
797	tristate "Netlogic XLP SPI controller driver"
798	depends on CPU_XLP || ARCH_THUNDER2 || COMPILE_TEST
799	help
800	  Enable support for the SPI controller on the Netlogic XLP SoCs.
801	  Currently supported XLP variants are XLP8XX, XLP3XX, XLP2XX, XLP9XX
802	  and XLP5XX.
803
804	  If you have a Netlogic XLP platform say Y here.
805	  If unsure, say N.
806
807config SPI_XTENSA_XTFPGA
808	tristate "Xtensa SPI controller for xtfpga"
809	depends on (XTENSA && XTENSA_PLATFORM_XTFPGA) || COMPILE_TEST
810	select SPI_BITBANG
811	help
812	  SPI driver for xtfpga SPI master controller.
813
814	  This simple SPI master controller is built into xtfpga bitstreams
815	  and is used to control daughterboard audio codec. It always transfers
816	  16 bit words in SPI mode 0, automatically asserting CS on transfer
817	  start and deasserting on end.
818
819config SPI_ZYNQMP_GQSPI
820	tristate "Xilinx ZynqMP GQSPI controller"
821	depends on SPI_MASTER && HAS_DMA
822	help
823	  Enables Xilinx GQSPI controller driver for Zynq UltraScale+ MPSoC.
824
825#
826# Add new SPI master controllers in alphabetical order above this line
827#
828
829#
830# There are lots of SPI device types, with sensors and memory
831# being probably the most widely used ones.
832#
833comment "SPI Protocol Masters"
834
835config SPI_SPIDEV
836	tristate "User mode SPI device driver support"
837	help
838	  This supports user mode SPI protocol drivers.
839
840	  Note that this application programming interface is EXPERIMENTAL
841	  and hence SUBJECT TO CHANGE WITHOUT NOTICE while it stabilizes.
842
843config SPI_LOOPBACK_TEST
844	tristate "spi loopback test framework support"
845	depends on m
846	help
847	  This enables the SPI loopback testing framework driver
848
849	  primarily used for development of spi_master drivers
850	  and to detect regressions
851
852config SPI_TLE62X0
853	tristate "Infineon TLE62X0 (for power switching)"
854	depends on SYSFS
855	help
856	  SPI driver for Infineon TLE62X0 series line driver chips,
857	  such as the TLE6220, TLE6230 and TLE6240.  This provides a
858	  sysfs interface, with each line presented as a kind of GPIO
859	  exposing both switch control and diagnostic feedback.
860
861#
862# Add new SPI protocol masters in alphabetical order above this line
863#
864
865endif # SPI_MASTER
866
867#
868# SLAVE side ... listening to other SPI masters
869#
870
871config SPI_SLAVE
872	bool "SPI slave protocol handlers"
873	help
874	  If your system has a slave-capable SPI controller, you can enable
875	  slave protocol handlers.
876
877if SPI_SLAVE
878
879config SPI_SLAVE_TIME
880	tristate "SPI slave handler reporting boot up time"
881	help
882	  SPI slave handler responding with the time of reception of the last
883	  SPI message.
884
885config SPI_SLAVE_SYSTEM_CONTROL
886	tristate "SPI slave handler controlling system state"
887	help
888	  SPI slave handler to allow remote control of system reboot, power
889	  off, halt, and suspend.
890
891endif # SPI_SLAVE
892
893endif # SPI
894