xref: /linux/drivers/spi/Kconfig (revision deba25800a12b99e1a68bc83d33709be4b9a40b7)
18ae12a0dSDavid Brownell#
28ae12a0dSDavid Brownell# SPI driver configuration
38ae12a0dSDavid Brownell#
48ae12a0dSDavid Brownell# NOTE:  the reason this doesn't show SPI slave support is mostly that
58ae12a0dSDavid Brownell# nobody's needed a slave side API yet.  The master-role API is not
68ae12a0dSDavid Brownell# fully appropriate there, so it'd need some thought to do well.
78ae12a0dSDavid Brownell#
879d8c7a8SAlessandro Guidomenuconfig SPI
98ae12a0dSDavid Brownell	bool "SPI support"
1079d8c7a8SAlessandro Guido	depends on HAS_IOMEM
118ae12a0dSDavid Brownell	help
128ae12a0dSDavid Brownell	  The "Serial Peripheral Interface" is a low level synchronous
138ae12a0dSDavid Brownell	  protocol.  Chips that support SPI can have data transfer rates
148ae12a0dSDavid Brownell	  up to several tens of Mbit/sec.  Chips are addressed with a
158ae12a0dSDavid Brownell	  controller and a chipselect.  Most SPI slaves don't support
168ae12a0dSDavid Brownell	  dynamic device discovery; some are even write-only or read-only.
178ae12a0dSDavid Brownell
183cb2fcccSMatt LaPlante	  SPI is widely used by microcontrollers to talk with sensors,
198ae12a0dSDavid Brownell	  eeprom and flash memory, codecs and various other controller
208ae12a0dSDavid Brownell	  chips, analog to digital (and d-to-a) converters, and more.
218ae12a0dSDavid Brownell	  MMC and SD cards can be accessed using SPI protocol; and for
228ae12a0dSDavid Brownell	  DataFlash cards used in MMC sockets, SPI must always be used.
238ae12a0dSDavid Brownell
248ae12a0dSDavid Brownell	  SPI is one of a family of similar protocols using a four wire
258ae12a0dSDavid Brownell	  interface (select, clock, data in, data out) including Microwire
268ae12a0dSDavid Brownell	  (half duplex), SSP, SSI, and PSP.  This driver framework should
278ae12a0dSDavid Brownell	  work with most such devices and controllers.
288ae12a0dSDavid Brownell
2979d8c7a8SAlessandro Guidoif SPI
3079d8c7a8SAlessandro Guido
318ae12a0dSDavid Brownellconfig SPI_DEBUG
328ae12a0dSDavid Brownell	boolean "Debug support for SPI drivers"
3379d8c7a8SAlessandro Guido	depends on DEBUG_KERNEL
348ae12a0dSDavid Brownell	help
358ae12a0dSDavid Brownell	  Say "yes" to enable debug messaging (like dev_dbg and pr_debug),
368ae12a0dSDavid Brownell	  sysfs, and debugfs support in SPI controller and protocol drivers.
378ae12a0dSDavid Brownell
388ae12a0dSDavid Brownell#
398ae12a0dSDavid Brownell# MASTER side ... talking to discrete SPI slave chips including microcontrollers
408ae12a0dSDavid Brownell#
418ae12a0dSDavid Brownell
428ae12a0dSDavid Brownellconfig SPI_MASTER
438ae12a0dSDavid Brownell#	boolean "SPI Master Support"
448ae12a0dSDavid Brownell	boolean
458ae12a0dSDavid Brownell	default SPI
468ae12a0dSDavid Brownell	help
478ae12a0dSDavid Brownell	  If your system has an master-capable SPI controller (which
488ae12a0dSDavid Brownell	  provides the clock and chipselect), you can enable that
498ae12a0dSDavid Brownell	  controller and the protocol drivers for the SPI slave chips
508ae12a0dSDavid Brownell	  that are connected.
518ae12a0dSDavid Brownell
526291fe2aSRobert P. J. Dayif SPI_MASTER
536291fe2aSRobert P. J. Day
548ae12a0dSDavid Brownellcomment "SPI Master Controller Drivers"
558ae12a0dSDavid Brownell
560b782531SThomas Chouconfig SPI_ALTERA
570b782531SThomas Chou	tristate "Altera SPI Controller"
580b782531SThomas Chou	select SPI_BITBANG
590b782531SThomas Chou	help
600b782531SThomas Chou	  This is the driver for the Altera SPI Controller.
610b782531SThomas Chou
628efaef4dSGabor Juhosconfig SPI_ATH79
638efaef4dSGabor Juhos	tristate "Atheros AR71XX/AR724X/AR913X SPI controller driver"
6476ec9d18SAlexandre Courbot	depends on ATH79 && GPIOLIB
658efaef4dSGabor Juhos	select SPI_BITBANG
668efaef4dSGabor Juhos	help
678efaef4dSGabor Juhos	  This enables support for the SPI controller present on the
688efaef4dSGabor Juhos	  Atheros AR71XX/AR724X/AR913X SoCs.
698efaef4dSGabor Juhos
70754ce4f2SHaavard Skinnemoenconfig SPI_ATMEL
71754ce4f2SHaavard Skinnemoen	tristate "Atmel SPI Controller"
72f59838a0SGeert Uytterhoeven	depends on HAS_DMA
73dd1053a9SMark Brown	depends on (ARCH_AT91 || AVR32 || COMPILE_TEST)
74754ce4f2SHaavard Skinnemoen	help
75754ce4f2SHaavard Skinnemoen	  This selects a driver for the Atmel SPI Controller, present on
76754ce4f2SHaavard Skinnemoen	  many AT32 (AVR32) and AT91 (ARM) chips.
77754ce4f2SHaavard Skinnemoen
78f8043872SChris Bootconfig SPI_BCM2835
79f8043872SChris Boot	tristate "BCM2835 SPI controller"
80dd1053a9SMark Brown	depends on ARCH_BCM2835 || COMPILE_TEST
81f8043872SChris Boot	help
82f8043872SChris Boot	  This selects a driver for the Broadcom BCM2835 SPI master.
83f8043872SChris Boot
84f8043872SChris Boot	  The BCM2835 contains two types of SPI master controller; the
85f8043872SChris Boot	  "universal SPI master", and the regular SPI controller. This driver
86f8043872SChris Boot	  is for the regular SPI controller. Slave mode operation is not also
87f8043872SChris Boot	  not supported.
88f8043872SChris Boot
8922ac3e82SScott Jiangconfig SPI_BFIN5XX
90a5f6abd4SWu, Bryan	tristate "SPI controller driver for ADI Blackfin5xx"
91fa4bd4f1SScott Jiang	depends on BLACKFIN && !BF60x
92a5f6abd4SWu, Bryan	help
93a5f6abd4SWu, Bryan	  This is the SPI controller master driver for Blackfin 5xx processor.
94a5f6abd4SWu, Bryan
95766e3721SScott Jiangconfig SPI_ADI_V3
96766e3721SScott Jiang	tristate "SPI controller v3 for ADI"
97fa4bd4f1SScott Jiang	depends on BF60x
98fa4bd4f1SScott Jiang	help
99fa4bd4f1SScott Jiang	  This is the SPI controller v3 master driver
100fa4bd4f1SScott Jiang	  found on Blackfin 60x processor.
101fa4bd4f1SScott Jiang
1029c3e7375SCliff Caiconfig SPI_BFIN_SPORT
1039c3e7375SCliff Cai	tristate "SPI bus via Blackfin SPORT"
1049c3e7375SCliff Cai	depends on BLACKFIN
1059c3e7375SCliff Cai	help
1069c3e7375SCliff Cai	  Enable support for a SPI bus via the Blackfin SPORT peripheral.
1079c3e7375SCliff Cai
10863bd2359SJan Nikitenkoconfig SPI_AU1550
109809f36c6SManuel Lauss	tristate "Au1550/Au1200/Au1300 SPI Controller"
1106d1f56aaSKees Cook	depends on MIPS_ALCHEMY
11163bd2359SJan Nikitenko	select SPI_BITBANG
11263bd2359SJan Nikitenko	help
11363bd2359SJan Nikitenko	  If you say yes to this option, support will be included for the
114809f36c6SManuel Lauss	  PSC SPI controller found on Au1550, Au1200 and Au1300 series.
11563bd2359SJan Nikitenko
1160fc6a323SRafał Miłeckiconfig SPI_BCM53XX
1170fc6a323SRafał Miłecki	tristate "Broadcom BCM53xx SPI controller"
1180fc6a323SRafał Miłecki	depends on ARCH_BCM_5301X
119933fc7b0SAxel Lin	depends on BCMA_POSSIBLE
120933fc7b0SAxel Lin	select BCMA
1210fc6a323SRafał Miłecki	help
1220fc6a323SRafał Miłecki          Enable support for the SPI controller on Broadcom BCM53xx ARM SoCs.
1230fc6a323SRafał Miłecki
124b42dfed8SFlorian Fainelliconfig SPI_BCM63XX
125b42dfed8SFlorian Fainelli	tristate "Broadcom BCM63xx SPI controller"
126b42dfed8SFlorian Fainelli	depends on BCM63XX
127b42dfed8SFlorian Fainelli	help
128b42dfed8SFlorian Fainelli          Enable support for the SPI controller on the Broadcom BCM63xx SoCs.
129b42dfed8SFlorian Fainelli
130142168ebSJonas Gorskiconfig SPI_BCM63XX_HSSPI
131142168ebSJonas Gorski	tristate "Broadcom BCM63XX HS SPI controller driver"
132142168ebSJonas Gorski	depends on BCM63XX || COMPILE_TEST
133142168ebSJonas Gorski	help
134142168ebSJonas Gorski	  This enables support for the High Speed SPI controller present on
135142168ebSJonas Gorski	  newer Broadcom BCM63XX SoCs.
136142168ebSJonas Gorski
1379904f22aSDavid Brownellconfig SPI_BITBANG
138d29389deSDavid Brownell	tristate "Utilities for Bitbanging SPI masters"
1399904f22aSDavid Brownell	help
1409904f22aSDavid Brownell	  With a few GPIO pins, your system can bitbang the SPI protocol.
1419904f22aSDavid Brownell	  Select this to get SPI support through I/O pins (GPIO, parallel
1429904f22aSDavid Brownell	  port, etc).  Or, some systems' SPI master controller drivers use
1439904f22aSDavid Brownell	  this code to manage the per-word or per-transfer accesses to the
1449904f22aSDavid Brownell	  hardware shift registers.
1459904f22aSDavid Brownell
1469904f22aSDavid Brownell	  This is library code, and is automatically selected by drivers that
1479904f22aSDavid Brownell	  need it.  You only need to select this explicitly to support driver
1489904f22aSDavid Brownell	  modules that aren't part of this kernel tree.
1498ae12a0dSDavid Brownell
1507111763dSDavid Brownellconfig SPI_BUTTERFLY
1517111763dSDavid Brownell	tristate "Parallel port adapter for AVR Butterfly (DEVELOPMENT)"
1526291fe2aSRobert P. J. Day	depends on PARPORT
1537111763dSDavid Brownell	select SPI_BITBANG
1547111763dSDavid Brownell	help
1557111763dSDavid Brownell	  This uses a custom parallel port cable to connect to an AVR
1567111763dSDavid Brownell	  Butterfly <http://www.atmel.com/products/avr/butterfly>, an
1577111763dSDavid Brownell	  inexpensive battery powered microcontroller evaluation board.
1587111763dSDavid Brownell	  This same cable can be used to flash new firmware.
1597111763dSDavid Brownell
160c474b386SHarini Katakamconfig SPI_CADENCE
161c474b386SHarini Katakam	tristate "Cadence SPI controller"
16225dbe04aSHarini Katakam	depends on ARM
163c474b386SHarini Katakam	help
164c474b386SHarini Katakam	  This selects the Cadence SPI controller master driver
165c474b386SHarini Katakam	  used by Xilinx Zynq.
166c474b386SHarini Katakam
167161b96c3SAlexander Shiyanconfig SPI_CLPS711X
168161b96c3SAlexander Shiyan	tristate "CLPS711X host SPI controller"
1695634dd8bSAxel Lin	depends on ARCH_CLPS711X || COMPILE_TEST
170161b96c3SAlexander Shiyan	help
171161b96c3SAlexander Shiyan	  This enables dedicated general purpose SPI/Microwire1-compatible
172161b96c3SAlexander Shiyan	  master mode interface (SSI1) for CLPS711X-based CPUs.
173161b96c3SAlexander Shiyan
17434b8c661SSteven Kingconfig SPI_COLDFIRE_QSPI
17534b8c661SSteven King	tristate "Freescale Coldfire QSPI controller"
176bce4d12bSSteven King	depends on (M520x || M523x || M5249 || M525x || M527x || M528x || M532x)
17734b8c661SSteven King	help
17834b8c661SSteven King	  This enables support for the Coldfire QSPI controller in master
17934b8c661SSteven King	  mode.
18034b8c661SSteven King
181358934a6SSandeep Paulrajconfig SPI_DAVINCI
18223ce17adSSekhar Nori	tristate "Texas Instruments DaVinci/DA8x/OMAP-L/AM1x SoC SPI controller"
18378848914SSantosh Shilimkar	depends on ARCH_DAVINCI || ARCH_KEYSTONE
184358934a6SSandeep Paulraj	select SPI_BITBANG
185358934a6SSandeep Paulraj	help
18623ce17adSSekhar Nori	  SPI master controller for DaVinci/DA8x/OMAP-L/AM1x SPI modules.
18723ce17adSSekhar Nori
18886f8973cSUwe Kleine-Königconfig SPI_EFM32
18986f8973cSUwe Kleine-König	tristate "EFM32 SPI controller"
19086f8973cSUwe Kleine-König	depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
19186f8973cSUwe Kleine-König	select SPI_BITBANG
19286f8973cSUwe Kleine-König	help
19386f8973cSUwe Kleine-König	  Driver for the spi controller found on Energy Micro's EFM32 SoCs.
19486f8973cSUwe Kleine-König
195011f23a3SMika Westerbergconfig SPI_EP93XX
196011f23a3SMika Westerberg	tristate "Cirrus Logic EP93xx SPI controller"
197f59838a0SGeert Uytterhoeven	depends on HAS_DMA
198dd1053a9SMark Brown	depends on ARCH_EP93XX || COMPILE_TEST
199011f23a3SMika Westerberg	help
200011f23a3SMika Westerberg	  This enables using the Cirrus EP93xx SPI controller in master
201011f23a3SMika Westerberg	  mode.
202011f23a3SMika Westerberg
2036cd3c7e2SThomas Langerconfig SPI_FALCON
2046cd3c7e2SThomas Langer	tristate "Falcon SPI controller support"
2056cd3c7e2SThomas Langer	depends on SOC_FALCON
2066cd3c7e2SThomas Langer	help
2076cd3c7e2SThomas Langer	  The external bus unit (EBU) found on the FALC-ON SoC has SPI
2086cd3c7e2SThomas Langer	  emulation that is designed for serial flash access. This driver
2096cd3c7e2SThomas Langer	  has only been tested with m25p80 type chips. The hardware has no
2106cd3c7e2SThomas Langer	  support for other types of SPI peripherals.
2116cd3c7e2SThomas Langer
212d29389deSDavid Brownellconfig SPI_GPIO
213d29389deSDavid Brownell	tristate "GPIO-based bitbanging SPI Master"
21476ec9d18SAlexandre Courbot	depends on GPIOLIB
215d29389deSDavid Brownell	select SPI_BITBANG
216d29389deSDavid Brownell	help
217d29389deSDavid Brownell	  This simple GPIO bitbanging SPI master uses the arch-neutral GPIO
218d29389deSDavid Brownell	  interface to manage MOSI, MISO, SCK, and chipselect signals.  SPI
219d29389deSDavid Brownell	  slaves connected to a bus using this driver are configured as usual,
220d29389deSDavid Brownell	  except that the spi_board_info.controller_data holds the GPIO number
221d29389deSDavid Brownell	  for the chipselect used by this controller driver.
222d29389deSDavid Brownell
223d29389deSDavid Brownell	  Note that this driver often won't achieve even 1 Mbit/sec speeds,
224d29389deSDavid Brownell	  making it unusually slow for SPI.  If your platform can inline
225d29389deSDavid Brownell	  GPIO operations, you should be able to leverage that for better
226d29389deSDavid Brownell	  speed with a custom version of this driver; see the source code.
227d29389deSDavid Brownell
228*deba2580SAndrew Brestickerconfig SPI_IMG_SPFI
229*deba2580SAndrew Bresticker	tristate "IMG SPFI controller"
230*deba2580SAndrew Bresticker	depends on MIPS || COMPILE_TEST
231*deba2580SAndrew Bresticker	help
232*deba2580SAndrew Bresticker	  This enables support for the SPFI master controller found on
233*deba2580SAndrew Bresticker	  IMG SoCs.
234*deba2580SAndrew Bresticker
235b5f3294fSSascha Hauerconfig SPI_IMX
236b5f3294fSSascha Hauer	tristate "Freescale i.MX SPI controllers"
237dd1053a9SMark Brown	depends on ARCH_MXC || COMPILE_TEST
238b5f3294fSSascha Hauer	select SPI_BITBANG
239b5f3294fSSascha Hauer	help
240b5f3294fSSascha Hauer	  This enables using the Freescale i.MX SPI controllers in master
241b5f3294fSSascha Hauer	  mode.
242b5f3294fSSascha Hauer
24378961a57SKaiwan N Billimoriaconfig SPI_LM70_LLP
24478961a57SKaiwan N Billimoria	tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
2456d1f56aaSKees Cook	depends on PARPORT
24678961a57SKaiwan N Billimoria	select SPI_BITBANG
24778961a57SKaiwan N Billimoria	help
24878961a57SKaiwan N Billimoria	  This driver supports the NS LM70 LLP Evaluation Board,
24978961a57SKaiwan N Billimoria	  which interfaces to an LM70 temperature sensor using
25078961a57SKaiwan N Billimoria	  a parallel port.
25178961a57SKaiwan N Billimoria
25242bbb709SGrant Likelyconfig SPI_MPC52xx
25342bbb709SGrant Likely	tristate "Freescale MPC52xx SPI (non-PSC) controller support"
2547433f2b7SPaul Bolle	depends on PPC_MPC52xx
25542bbb709SGrant Likely	help
25642bbb709SGrant Likely	  This drivers supports the MPC52xx SPI controller in master SPI
25742bbb709SGrant Likely	  mode.
25842bbb709SGrant Likely
25900b8fd23SDragos Carpconfig SPI_MPC52xx_PSC
26000b8fd23SDragos Carp	tristate "Freescale MPC52xx PSC SPI controller"
2616d1f56aaSKees Cook	depends on PPC_MPC52xx
26200b8fd23SDragos Carp	help
26300b8fd23SDragos Carp	  This enables using the Freescale MPC52xx Programmable Serial
26400b8fd23SDragos Carp	  Controller in master SPI mode.
26500b8fd23SDragos Carp
2666e27388fSAnatolij Gustschinconfig SPI_MPC512x_PSC
2676e27388fSAnatolij Gustschin	tristate "Freescale MPC512x PSC SPI controller"
2685e8afa34SUwe Kleine-König	depends on PPC_MPC512x
2696e27388fSAnatolij Gustschin	help
2706e27388fSAnatolij Gustschin	  This enables using the Freescale MPC5121 Programmable Serial
2716e27388fSAnatolij Gustschin	  Controller in SPI master mode.
2726e27388fSAnatolij Gustschin
273b36ece83SMingkai Huconfig SPI_FSL_LIB
274b36ece83SMingkai Hu	tristate
275e8beacbbSAndreas Larsson	depends on OF
276e8beacbbSAndreas Larsson
277e8beacbbSAndreas Larssonconfig SPI_FSL_CPM
278e8beacbbSAndreas Larsson	tristate
279b36ece83SMingkai Hu	depends on FSL_SOC
280b36ece83SMingkai Hu
2813272029fSMingkai Huconfig SPI_FSL_SPI
282447b0c7bSAndreas Larsson	bool "Freescale SPI controller and Aeroflex Gaisler GRLIB SPI controller"
283e8beacbbSAndreas Larsson	depends on OF
284b36ece83SMingkai Hu	select SPI_FSL_LIB
285e8beacbbSAndreas Larsson	select SPI_FSL_CPM if FSL_SOC
286ccf06998SKumar Gala	help
2873272029fSMingkai Hu	  This enables using the Freescale SPI controllers in master mode.
2883272029fSMingkai Hu	  MPC83xx platform uses the controller in cpu mode or CPM/QE mode.
2893272029fSMingkai Hu	  MPC8569 uses the controller in QE mode, MPC8610 in cpu mode.
290447b0c7bSAndreas Larsson	  This also enables using the Aeroflex Gaisler GRLIB SPI controller in
291447b0c7bSAndreas Larsson	  master mode.
292ccf06998SKumar Gala
293349ad66cSChao Fuconfig SPI_FSL_DSPI
294349ad66cSChao Fu	tristate "Freescale DSPI controller"
295349ad66cSChao Fu	select SPI_BITBANG
2961acbdeb9SChao Fu	select REGMAP_MMIO
297b444d1dfSUwe Kleine-König	depends on SOC_VF610 || COMPILE_TEST
298349ad66cSChao Fu	help
299349ad66cSChao Fu	  This enables support for the Freescale DSPI controller in master
300349ad66cSChao Fu	  mode. VF610 platform uses the controller.
301349ad66cSChao Fu
3028b60d6c2SMingkai Huconfig SPI_FSL_ESPI
303d9ddcec3SJiri Slaby	bool "Freescale eSPI controller"
3048b60d6c2SMingkai Hu	depends on FSL_SOC
3058b60d6c2SMingkai Hu	select SPI_FSL_LIB
3068b60d6c2SMingkai Hu	help
3078b60d6c2SMingkai Hu	  This enables using the Freescale eSPI controllers in master mode.
3088b60d6c2SMingkai Hu	  From MPC8536, 85xx platform uses the controller, and all P10xx,
3098b60d6c2SMingkai Hu	  P20xx, P30xx,P40xx, P50xx uses this controller.
3108b60d6c2SMingkai Hu
311ce792580SThomas Chouconfig SPI_OC_TINY
312ce792580SThomas Chou	tristate "OpenCores tiny SPI"
31376ec9d18SAlexandre Courbot	depends on GPIOLIB
314ce792580SThomas Chou	select SPI_BITBANG
315ce792580SThomas Chou	help
316ce792580SThomas Chou	  This is the driver for OpenCores tiny SPI master controller.
317ce792580SThomas Chou
3186b52c00fSDavid Daneyconfig SPI_OCTEON
3196b52c00fSDavid Daney	tristate "Cavium OCTEON SPI controller"
3209ddebc46SDavid Daney	depends on CAVIUM_OCTEON_SOC
3216b52c00fSDavid Daney	help
3226b52c00fSDavid Daney	  SPI host driver for the hardware found on some Cavium OCTEON
3236b52c00fSDavid Daney	  SOCs.
3246b52c00fSDavid Daney
325fdb3c18dSDavid Brownellconfig SPI_OMAP_UWIRE
326fdb3c18dSDavid Brownell	tristate "OMAP1 MicroWire"
3276291fe2aSRobert P. J. Day	depends on ARCH_OMAP1
328fdb3c18dSDavid Brownell	select SPI_BITBANG
329fdb3c18dSDavid Brownell	help
330fdb3c18dSDavid Brownell	  This hooks up to the MicroWire controller on OMAP1 chips.
331fdb3c18dSDavid Brownell
332ccdc7bf9SSamuel Ortizconfig SPI_OMAP24XX
3338ebeb545SSyed Rafiuddin	tristate "McSPI driver for OMAP"
334f59838a0SGeert Uytterhoeven	depends on HAS_DMA
335f6ab395bSPaul Bolle	depends on ARM || ARM64 || AVR32 || HEXAGON || MIPS || SUPERH
336dd1053a9SMark Brown	depends on ARCH_OMAP2PLUS || COMPILE_TEST
337ccdc7bf9SSamuel Ortiz	help
3388ebeb545SSyed Rafiuddin	  SPI master controller for OMAP24XX and later Multichannel SPI
339ccdc7bf9SSamuel Ortiz	  (McSPI) modules.
34069c202afSAndrea Paterniani
341505a1495SSourav Poddarconfig SPI_TI_QSPI
342505a1495SSourav Poddar	tristate "DRA7xxx QSPI controller support"
343505a1495SSourav Poddar	depends on ARCH_OMAP2PLUS || COMPILE_TEST
344505a1495SSourav Poddar	help
345505a1495SSourav Poddar	  QSPI master controller for DRA7xxx used for flash devices.
346505a1495SSourav Poddar	  This device supports single, dual and quad read support, while
347505a1495SSourav Poddar	  it only supports single write mode.
348505a1495SSourav Poddar
34935c9049bSCory Maccarroneconfig SPI_OMAP_100K
35035c9049bSCory Maccarrone	tristate "OMAP SPI 100K"
351dd1053a9SMark Brown	depends on ARCH_OMAP850 || ARCH_OMAP730 || COMPILE_TEST
35235c9049bSCory Maccarrone	help
35335c9049bSCory Maccarrone	  OMAP SPI 100K master controller for omap7xx boards.
35435c9049bSCory Maccarrone
35560cadec9SShadi Ammouriconfig SPI_ORION
3566d1f56aaSKees Cook	tristate "Orion SPI master"
357dd1053a9SMark Brown	depends on PLAT_ORION || COMPILE_TEST
35860cadec9SShadi Ammouri	help
35960cadec9SShadi Ammouri	  This enables using the SPI master controller on the Orion chips.
36060cadec9SShadi Ammouri
361b43d65f7SLinus Walleijconfig SPI_PL022
3627f9a4b97SLinus Walleij	tristate "ARM AMBA PL022 SSP controller"
3637f9a4b97SLinus Walleij	depends on ARM_AMBA
364b43d65f7SLinus Walleij	default y if MACH_U300
365f33b29eeSlinus.walleij@stericsson.com	default y if ARCH_REALVIEW
366f33b29eeSlinus.walleij@stericsson.com	default y if INTEGRATOR_IMPD1
367f33b29eeSlinus.walleij@stericsson.com	default y if ARCH_VERSATILE
368b43d65f7SLinus Walleij	help
369b43d65f7SLinus Walleij	  This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
370b43d65f7SLinus Walleij	  controller. If you have an embedded system with an AMBA(R)
371b43d65f7SLinus Walleij	  bus and a PL022 controller, say Y or M here.
372b43d65f7SLinus Walleij
37344dab88eSSteven A. Falcoconfig SPI_PPC4xx
37444dab88eSSteven A. Falco	tristate "PPC4xx SPI Controller"
3755e8afa34SUwe Kleine-König	depends on PPC32 && 4xx
37644dab88eSSteven A. Falco	select SPI_BITBANG
37744dab88eSSteven A. Falco	help
37844dab88eSSteven A. Falco	  This selects a driver for the PPC4xx SPI Controller.
37944dab88eSSteven A. Falco
380cd7bed00SMika Westerbergconfig SPI_PXA2XX_PXADMA
381cd7bed00SMika Westerberg	bool "PXA2xx SSP legacy PXA DMA API support"
382cd7bed00SMika Westerberg	depends on SPI_PXA2XX && ARCH_PXA
383cd7bed00SMika Westerberg	help
3845928808eSMika Westerberg	  Enable PXA private legacy DMA API support. Note that this is
3855928808eSMika Westerberg	  deprecated in favor of generic DMA engine API.
3865928808eSMika Westerberg
3875928808eSMika Westerbergconfig SPI_PXA2XX_DMA
3885928808eSMika Westerberg	def_bool y
3895928808eSMika Westerberg	depends on SPI_PXA2XX && !SPI_PXA2XX_PXADMA
390cd7bed00SMika Westerberg
391e0c9905eSStephen Streetconfig SPI_PXA2XX
392e0c9905eSStephen Street	tristate "PXA2xx SSP SPI master"
3930244ad00SMartin Schwidefsky	depends on (ARCH_PXA || PCI || ACPI)
394d6ea3df0SSebastian Andrzej Siewior	select PXA_SSP if ARCH_PXA
395e0c9905eSStephen Street	help
396d6ea3df0SSebastian Andrzej Siewior	  This enables using a PXA2xx or Sodaville SSP port as a SPI master
397d6ea3df0SSebastian Andrzej Siewior	  controller. The driver can be configured to use any SSP port and
398d6ea3df0SSebastian Andrzej Siewior	  additional documentation can be found a Documentation/spi/pxa2xx.
399d6ea3df0SSebastian Andrzej Siewior
400d6ea3df0SSebastian Andrzej Siewiorconfig SPI_PXA2XX_PCI
401afa93c90SChew, Chiau Ee	def_tristate SPI_PXA2XX && PCI && COMMON_CLK
402e0c9905eSStephen Street
40364e36824Saddy keconfig SPI_ROCKCHIP
40464e36824Saddy ke	tristate "Rockchip SPI controller driver"
405c1536908SMark Brown	depends on ARM || ARM64 || AVR32 || HEXAGON || MIPS || SUPERH
40664e36824Saddy ke	help
40764e36824Saddy ke	  This selects a driver for Rockchip SPI controller.
40864e36824Saddy ke
40964e36824Saddy ke	  If you say yes to this option, support will be included for
41064e36824Saddy ke	  RK3066, RK3188 and RK3288 families of SPI controller.
41164e36824Saddy ke	  Rockchip SPI controller support DMA transport and PIO mode.
41264e36824Saddy ke	  The main usecase of this controller is to use spi flash as boot
41364e36824Saddy ke	  device.
41464e36824Saddy ke
4150b2182ddSShimoda, Yoshihiroconfig SPI_RSPI
416e290c343SGeert Uytterhoeven	tristate "Renesas RSPI/QSPI controller"
417533465a8SGeert Uytterhoeven	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
4180b2182ddSShimoda, Yoshihiro	help
419e290c343SGeert Uytterhoeven	  SPI driver for Renesas RSPI and QSPI blocks.
4200b2182ddSShimoda, Yoshihiro
42164ff247aSIvan T. Ivanovconfig SPI_QUP
42264ff247aSIvan T. Ivanov	tristate "Qualcomm SPI controller with QUP interface"
423058f11c8SPaul Bolle	depends on ARCH_QCOM || (ARM && COMPILE_TEST)
42464ff247aSIvan T. Ivanov	help
42564ff247aSIvan T. Ivanov	  Qualcomm Universal Peripheral (QUP) core is an AHB slave that
42664ff247aSIvan T. Ivanov	  provides a common data path (an output FIFO and an input FIFO)
42764ff247aSIvan T. Ivanov	  for serial peripheral interface (SPI) mini-core. SPI in master
42864ff247aSIvan T. Ivanov	  mode supports up to 50MHz, up to four chip selects, programmable
42964ff247aSIvan T. Ivanov	  data path from 4 bits to 32 bits and numerous protocol variants.
43064ff247aSIvan T. Ivanov
43164ff247aSIvan T. Ivanov	  This driver can also be built as a module.  If so, the module
43264ff247aSIvan T. Ivanov	  will be called spi_qup.
4338ae12a0dSDavid Brownell
43485abfaa7SDavid Brownellconfig SPI_S3C24XX
43585abfaa7SDavid Brownell	tristate "Samsung S3C24XX series SPI"
4366d1f56aaSKees Cook	depends on ARCH_S3C24XX
437da0abc27SDavid Brownell	select SPI_BITBANG
43885abfaa7SDavid Brownell	help
43985abfaa7SDavid Brownell	  SPI driver for Samsung S3C24XX series ARM SoCs
44085abfaa7SDavid Brownell
441bec0806cSBen Dooksconfig SPI_S3C24XX_FIQ
442bec0806cSBen Dooks	bool "S3C24XX driver with FIQ pseudo-DMA"
443bec0806cSBen Dooks	depends on SPI_S3C24XX
444bec0806cSBen Dooks	select FIQ
445bec0806cSBen Dooks	help
446bec0806cSBen Dooks	  Enable FIQ support for the S3C24XX SPI driver to provide pseudo
447bec0806cSBen Dooks	  DMA by using the fast-interrupt request framework, This allows
448bec0806cSBen Dooks	  the driver to get DMA-like performance when there are either
449bec0806cSBen Dooks	  no free DMA channels, or when doing transfers that required both
450bec0806cSBen Dooks	  TX and RX data paths.
451bec0806cSBen Dooks
452230d42d4SJassi Brarconfig SPI_S3C64XX
453230d42d4SJassi Brar	tristate "Samsung S3C64XX series type SPI"
4547d5f880bSMateusz Krawczuk	depends on PLAT_SAMSUNG
4553faecea7STomasz Figa	select S3C64XX_PL080 if ARCH_S3C64XX
456230d42d4SJassi Brar	help
457230d42d4SJassi Brar	  SPI driver for Samsung S3C64XX and newer SoCs.
458230d42d4SJassi Brar
4593ce8859eSGuenter Roeckconfig SPI_SC18IS602
4603ce8859eSGuenter Roeck	tristate "NXP SC18IS602/602B/603 I2C to SPI bridge"
4613ce8859eSGuenter Roeck	depends on I2C
4623ce8859eSGuenter Roeck	help
4633ce8859eSGuenter Roeck	  SPI driver for NXP SC18IS602/602B/603 I2C to SPI bridge.
4643ce8859eSGuenter Roeck
4658051effcSMagnus Dammconfig SPI_SH_MSIOF
4668051effcSMagnus Damm	tristate "SuperH MSIOF SPI controller"
46751fd5090SGeert Uytterhoeven	depends on HAVE_CLK && HAS_DMA
4687ad35442SLaurent Pinchart	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
4698051effcSMagnus Damm	help
470746aeffdSBastian Hecht	  SPI driver for SuperH and SH Mobile MSIOF blocks.
4718051effcSMagnus Damm
4725c05dd07SYoshihiro Shimodaconfig SPI_SH
4735c05dd07SYoshihiro Shimoda	tristate "SuperH SPI controller"
474dd1053a9SMark Brown	depends on SUPERH || COMPILE_TEST
4755c05dd07SYoshihiro Shimoda	help
4765c05dd07SYoshihiro Shimoda	  SPI driver for SuperH SPI blocks.
4775c05dd07SYoshihiro Shimoda
47837e46640SMagnus Dammconfig SPI_SH_SCI
47937e46640SMagnus Damm	tristate "SuperH SCI SPI controller"
4806291fe2aSRobert P. J. Day	depends on SUPERH
48137e46640SMagnus Damm	select SPI_BITBANG
48237e46640SMagnus Damm	help
48337e46640SMagnus Damm	  SPI driver for SuperH SCI blocks.
48437e46640SMagnus Damm
485d1c8bbd7SKuninori Morimotoconfig SPI_SH_HSPI
486d1c8bbd7SKuninori Morimoto	tristate "SuperH HSPI controller"
487dd1053a9SMark Brown	depends on ARCH_SHMOBILE || COMPILE_TEST
488d1c8bbd7SKuninori Morimoto	help
489d1c8bbd7SKuninori Morimoto	  SPI driver for SuperH HSPI blocks.
490d1c8bbd7SKuninori Morimoto
4911cc2df9dSZhiwu Songconfig SPI_SIRF
4921cc2df9dSZhiwu Song	tristate "CSR SiRFprimaII SPI controller"
4937668c294SMark Brown	depends on SIRF_DMA
4941cc2df9dSZhiwu Song	select SPI_BITBANG
4951cc2df9dSZhiwu Song	help
4961cc2df9dSZhiwu Song	  SPI driver for CSR SiRFprimaII SoCs
4971cc2df9dSZhiwu Song
498b5f65179SMaxime Ripardconfig SPI_SUN4I
499b5f65179SMaxime Ripard	tristate "Allwinner A10 SoCs SPI controller"
500b5f65179SMaxime Ripard	depends on ARCH_SUNXI || COMPILE_TEST
501b5f65179SMaxime Ripard	help
502b5f65179SMaxime Ripard	  SPI driver for Allwinner sun4i, sun5i and sun7i SoCs
503b5f65179SMaxime Ripard
5043558fe90SMaxime Ripardconfig SPI_SUN6I
5053558fe90SMaxime Ripard	tristate "Allwinner A31 SPI controller"
5063558fe90SMaxime Ripard	depends on ARCH_SUNXI || COMPILE_TEST
5077961656aSMark Brown	depends on RESET_CONTROLLER
5083558fe90SMaxime Ripard	help
5093558fe90SMaxime Ripard	  This enables using the SPI controller on the Allwinner A31 SoCs.
5103558fe90SMaxime Ripard
511646781d3SMarek Vasutconfig SPI_MXS
512646781d3SMarek Vasut	tristate "Freescale MXS SPI controller"
513646781d3SMarek Vasut	depends on ARCH_MXS
514646781d3SMarek Vasut	select STMP_DEVICE
515646781d3SMarek Vasut	help
516646781d3SMarek Vasut	  SPI driver for Freescale MXS devices.
517646781d3SMarek Vasut
518f333a331SLaxman Dewanganconfig SPI_TEGRA114
519f333a331SLaxman Dewangan	tristate "NVIDIA Tegra114 SPI Controller"
520dd1053a9SMark Brown	depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
521f59838a0SGeert Uytterhoeven	depends on RESET_CONTROLLER && HAS_DMA
522f333a331SLaxman Dewangan	help
523f333a331SLaxman Dewangan	  SPI driver for NVIDIA Tegra114 SPI Controller interface. This controller
524f333a331SLaxman Dewangan	  is different than the older SoCs SPI controller and also register interface
525f333a331SLaxman Dewangan	  get changed with this controller.
526f333a331SLaxman Dewangan
5278528547bSLaxman Dewanganconfig SPI_TEGRA20_SFLASH
5288528547bSLaxman Dewangan	tristate "Nvidia Tegra20 Serial flash Controller"
529dd1053a9SMark Brown	depends on ARCH_TEGRA || COMPILE_TEST
530ff2251e3SStephen Warren	depends on RESET_CONTROLLER
5318528547bSLaxman Dewangan	help
5328528547bSLaxman Dewangan	  SPI driver for Nvidia Tegra20 Serial flash Controller interface.
5338528547bSLaxman Dewangan	  The main usecase of this controller is to use spi flash as boot
5348528547bSLaxman Dewangan	  device.
5358528547bSLaxman Dewangan
536dc4dc360SLaxman Dewanganconfig SPI_TEGRA20_SLINK
537dc4dc360SLaxman Dewangan	tristate "Nvidia Tegra20/Tegra30 SLINK Controller"
538dd1053a9SMark Brown	depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
539f59838a0SGeert Uytterhoeven	depends on RESET_CONTROLLER && HAS_DMA
540dc4dc360SLaxman Dewangan	help
541dc4dc360SLaxman Dewangan	  SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface.
542dc4dc360SLaxman Dewangan
543e8b17b5bSMasayuki Ohtakeconfig SPI_TOPCLIFF_PCH
54492b3a5c1STomoya MORINAGA	tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) SPI"
5452b16069aSJean Delvare	depends on PCI && (X86_32 || COMPILE_TEST)
546e8b17b5bSMasayuki Ohtake	help
547cdbc8f04SGrant Likely	  SPI driver for the Topcliff PCH (Platform Controller Hub) SPI bus
548cdbc8f04SGrant Likely	  used in some x86 embedded processors.
549e8b17b5bSMasayuki Ohtake
55092b3a5c1STomoya MORINAGA	  This driver also supports the ML7213/ML7223/ML7831, a companion chip
55192b3a5c1STomoya MORINAGA	  for the Atom E6xx series and compatible with the Intel EG20T PCH.
552f016aeb6STomoya MORINAGA
553f2cac67dSAtsushi Nemotoconfig SPI_TXX9
554f2cac67dSAtsushi Nemoto	tristate "Toshiba TXx9 SPI controller"
555dd1053a9SMark Brown	depends on GPIOLIB && (CPU_TX49XX || COMPILE_TEST)
556f2cac67dSAtsushi Nemoto	help
557f2cac67dSAtsushi Nemoto	  SPI driver for Toshiba TXx9 MIPS SoCs
558f2cac67dSAtsushi Nemoto
559b3165900SLars-Peter Clausenconfig SPI_XCOMM
560b3165900SLars-Peter Clausen	tristate "Analog Devices AD-FMCOMMS1-EBZ SPI-I2C-bridge driver"
561b3165900SLars-Peter Clausen	depends on I2C
562b3165900SLars-Peter Clausen	help
563b3165900SLars-Peter Clausen	  Support for the SPI-I2C bridge found on the Analog Devices
564b3165900SLars-Peter Clausen	  AD-FMCOMMS1-EBZ board.
565b3165900SLars-Peter Clausen
566ae918c02SAndrei Konovalovconfig SPI_XILINX
567c9da2e12SRichard Röjfors	tristate "Xilinx SPI controller common module"
5686d1f56aaSKees Cook	depends on HAS_IOMEM
569ae918c02SAndrei Konovalov	select SPI_BITBANG
570ae918c02SAndrei Konovalov	help
571ae918c02SAndrei Konovalov	  This exposes the SPI controller IP from the Xilinx EDK.
572ae918c02SAndrei Konovalov
573ae918c02SAndrei Konovalov	  See the "OPB Serial Peripheral Interface (SPI) (v1.00e)"
574ae918c02SAndrei Konovalov	  Product Specification document (DS464) for hardware details.
575ae918c02SAndrei Konovalov
576c9da2e12SRichard Röjfors	  Or for the DS570, see "XPS Serial Peripheral Interface (SPI) (v2.00b)"
577c9da2e12SRichard Röjfors
5786840cc29SMax Filippovconfig SPI_XTENSA_XTFPGA
5796840cc29SMax Filippov	tristate "Xtensa SPI controller for xtfpga"
580be8dde46SAxel Lin	depends on (XTENSA && XTENSA_PLATFORM_XTFPGA) || COMPILE_TEST
5816840cc29SMax Filippov	select SPI_BITBANG
5826840cc29SMax Filippov	help
5836840cc29SMax Filippov	  SPI driver for xtfpga SPI master controller.
5846840cc29SMax Filippov
5856840cc29SMax Filippov	  This simple SPI master controller is built into xtfpga bitstreams
5866840cc29SMax Filippov	  and is used to control daughterboard audio codec. It always transfers
5876840cc29SMax Filippov	  16 bit words in SPI mode 0, automatically asserting CS on transfer
5886840cc29SMax Filippov	  start and deasserting on end.
5896840cc29SMax Filippov
5906840cc29SMax Filippov
59130eaed05SWan ZongShunconfig SPI_NUC900
59230eaed05SWan ZongShun	tristate "Nuvoton NUC900 series SPI"
5936d1f56aaSKees Cook	depends on ARCH_W90X900
59430eaed05SWan ZongShun	select SPI_BITBANG
59530eaed05SWan ZongShun	help
59630eaed05SWan ZongShun	  SPI driver for Nuvoton NUC900 series ARM SoCs
59730eaed05SWan ZongShun
5988ae12a0dSDavid Brownell#
5998ae12a0dSDavid Brownell# Add new SPI master controllers in alphabetical order above this line
6008ae12a0dSDavid Brownell#
6018ae12a0dSDavid Brownell
602e24c7452SFeng Tangconfig SPI_DESIGNWARE
6038ca8d15aSJean-Hugues Deschenes	tristate "DesignWare SPI controller core support"
604e24c7452SFeng Tang	help
605e24c7452SFeng Tang	  general driver for SPI controller core from DesignWare
606e24c7452SFeng Tang
607e24c7452SFeng Tangconfig SPI_DW_PCI
608e24c7452SFeng Tang	tristate "PCI interface driver for DW SPI core"
609e24c7452SFeng Tang	depends on SPI_DESIGNWARE && PCI
610e24c7452SFeng Tang
6117063c0d9SFeng Tangconfig SPI_DW_MID_DMA
612ea092455SAndy Shevchenko	bool "DMA support for DW SPI controller on Intel MID platform"
6137063c0d9SFeng Tang	depends on SPI_DW_PCI && INTEL_MID_DMAC
6147063c0d9SFeng Tang
615f7b6fd6dSJean-Hugues Deschenesconfig SPI_DW_MMIO
616f7b6fd6dSJean-Hugues Deschenes	tristate "Memory-mapped io interface driver for DW SPI core"
617794f61a3SBaruch Siach	depends on SPI_DESIGNWARE
618f7b6fd6dSJean-Hugues Deschenes
6198ae12a0dSDavid Brownell#
6208ae12a0dSDavid Brownell# There are lots of SPI device types, with sensors and memory
6218ae12a0dSDavid Brownell# being probably the most widely used ones.
6228ae12a0dSDavid Brownell#
6238ae12a0dSDavid Brownellcomment "SPI Protocol Masters"
6248ae12a0dSDavid Brownell
625814a8d50SAndrea Paternianiconfig SPI_SPIDEV
626814a8d50SAndrea Paterniani	tristate "User mode SPI device driver support"
627814a8d50SAndrea Paterniani	help
628814a8d50SAndrea Paterniani	  This supports user mode SPI protocol drivers.
629814a8d50SAndrea Paterniani
630814a8d50SAndrea Paterniani	  Note that this application programming interface is EXPERIMENTAL
631814a8d50SAndrea Paterniani	  and hence SUBJECT TO CHANGE WITHOUT NOTICE while it stabilizes.
632814a8d50SAndrea Paterniani
633447aef1aSBen Dooksconfig SPI_TLE62X0
634447aef1aSBen Dooks	tristate "Infineon TLE62X0 (for power switching)"
6356291fe2aSRobert P. J. Day	depends on SYSFS
636447aef1aSBen Dooks	help
637447aef1aSBen Dooks	  SPI driver for Infineon TLE62X0 series line driver chips,
638447aef1aSBen Dooks	  such as the TLE6220, TLE6230 and TLE6240.  This provides a
639447aef1aSBen Dooks	  sysfs interface, with each line presented as a kind of GPIO
640447aef1aSBen Dooks	  exposing both switch control and diagnostic feedback.
641447aef1aSBen Dooks
6428ae12a0dSDavid Brownell#
6438ae12a0dSDavid Brownell# Add new SPI protocol masters in alphabetical order above this line
6448ae12a0dSDavid Brownell#
6458ae12a0dSDavid Brownell
6466291fe2aSRobert P. J. Dayendif # SPI_MASTER
6476291fe2aSRobert P. J. Day
6488ae12a0dSDavid Brownell# (slave support would go here)
6498ae12a0dSDavid Brownell
65079d8c7a8SAlessandro Guidoendif # SPI
651