xref: /linux/drivers/spi/Kconfig (revision c474b38665463d9017cd60cd3a8f8226cf8d562f)
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"
72dd1053a9SMark Brown	depends on (ARCH_AT91 || AVR32 || COMPILE_TEST)
73754ce4f2SHaavard Skinnemoen	help
74754ce4f2SHaavard Skinnemoen	  This selects a driver for the Atmel SPI Controller, present on
75754ce4f2SHaavard Skinnemoen	  many AT32 (AVR32) and AT91 (ARM) chips.
76754ce4f2SHaavard Skinnemoen
77f8043872SChris Bootconfig SPI_BCM2835
78f8043872SChris Boot	tristate "BCM2835 SPI controller"
79dd1053a9SMark Brown	depends on ARCH_BCM2835 || COMPILE_TEST
80f8043872SChris Boot	help
81f8043872SChris Boot	  This selects a driver for the Broadcom BCM2835 SPI master.
82f8043872SChris Boot
83f8043872SChris Boot	  The BCM2835 contains two types of SPI master controller; the
84f8043872SChris Boot	  "universal SPI master", and the regular SPI controller. This driver
85f8043872SChris Boot	  is for the regular SPI controller. Slave mode operation is not also
86f8043872SChris Boot	  not supported.
87f8043872SChris Boot
8822ac3e82SScott Jiangconfig SPI_BFIN5XX
89a5f6abd4SWu, Bryan	tristate "SPI controller driver for ADI Blackfin5xx"
90fa4bd4f1SScott Jiang	depends on BLACKFIN && !BF60x
91a5f6abd4SWu, Bryan	help
92a5f6abd4SWu, Bryan	  This is the SPI controller master driver for Blackfin 5xx processor.
93a5f6abd4SWu, Bryan
94fa4bd4f1SScott Jiangconfig SPI_BFIN_V3
95fa4bd4f1SScott Jiang	tristate "SPI controller v3 for Blackfin"
96fa4bd4f1SScott Jiang	depends on BF60x
97fa4bd4f1SScott Jiang	help
98fa4bd4f1SScott Jiang	  This is the SPI controller v3 master driver
99fa4bd4f1SScott Jiang	  found on Blackfin 60x processor.
100fa4bd4f1SScott Jiang
1019c3e7375SCliff Caiconfig SPI_BFIN_SPORT
1029c3e7375SCliff Cai	tristate "SPI bus via Blackfin SPORT"
1039c3e7375SCliff Cai	depends on BLACKFIN
1049c3e7375SCliff Cai	help
1059c3e7375SCliff Cai	  Enable support for a SPI bus via the Blackfin SPORT peripheral.
1069c3e7375SCliff Cai
10763bd2359SJan Nikitenkoconfig SPI_AU1550
108809f36c6SManuel Lauss	tristate "Au1550/Au1200/Au1300 SPI Controller"
1096d1f56aaSKees Cook	depends on MIPS_ALCHEMY
11063bd2359SJan Nikitenko	select SPI_BITBANG
11163bd2359SJan Nikitenko	help
11263bd2359SJan Nikitenko	  If you say yes to this option, support will be included for the
113809f36c6SManuel Lauss	  PSC SPI controller found on Au1550, Au1200 and Au1300 series.
11463bd2359SJan Nikitenko
115b42dfed8SFlorian Fainelliconfig SPI_BCM63XX
116b42dfed8SFlorian Fainelli	tristate "Broadcom BCM63xx SPI controller"
117b42dfed8SFlorian Fainelli	depends on BCM63XX
118b42dfed8SFlorian Fainelli	help
119b42dfed8SFlorian Fainelli          Enable support for the SPI controller on the Broadcom BCM63xx SoCs.
120b42dfed8SFlorian Fainelli
121142168ebSJonas Gorskiconfig SPI_BCM63XX_HSSPI
122142168ebSJonas Gorski	tristate "Broadcom BCM63XX HS SPI controller driver"
123142168ebSJonas Gorski	depends on BCM63XX || COMPILE_TEST
124142168ebSJonas Gorski	help
125142168ebSJonas Gorski	  This enables support for the High Speed SPI controller present on
126142168ebSJonas Gorski	  newer Broadcom BCM63XX SoCs.
127142168ebSJonas Gorski
1289904f22aSDavid Brownellconfig SPI_BITBANG
129d29389deSDavid Brownell	tristate "Utilities for Bitbanging SPI masters"
1309904f22aSDavid Brownell	help
1319904f22aSDavid Brownell	  With a few GPIO pins, your system can bitbang the SPI protocol.
1329904f22aSDavid Brownell	  Select this to get SPI support through I/O pins (GPIO, parallel
1339904f22aSDavid Brownell	  port, etc).  Or, some systems' SPI master controller drivers use
1349904f22aSDavid Brownell	  this code to manage the per-word or per-transfer accesses to the
1359904f22aSDavid Brownell	  hardware shift registers.
1369904f22aSDavid Brownell
1379904f22aSDavid Brownell	  This is library code, and is automatically selected by drivers that
1389904f22aSDavid Brownell	  need it.  You only need to select this explicitly to support driver
1399904f22aSDavid Brownell	  modules that aren't part of this kernel tree.
1408ae12a0dSDavid Brownell
1417111763dSDavid Brownellconfig SPI_BUTTERFLY
1427111763dSDavid Brownell	tristate "Parallel port adapter for AVR Butterfly (DEVELOPMENT)"
1436291fe2aSRobert P. J. Day	depends on PARPORT
1447111763dSDavid Brownell	select SPI_BITBANG
1457111763dSDavid Brownell	help
1467111763dSDavid Brownell	  This uses a custom parallel port cable to connect to an AVR
1477111763dSDavid Brownell	  Butterfly <http://www.atmel.com/products/avr/butterfly>, an
1487111763dSDavid Brownell	  inexpensive battery powered microcontroller evaluation board.
1497111763dSDavid Brownell	  This same cable can be used to flash new firmware.
1507111763dSDavid Brownell
151*c474b386SHarini Katakamconfig SPI_CADENCE
152*c474b386SHarini Katakam	tristate "Cadence SPI controller"
153*c474b386SHarini Katakam	depends on SPI_MASTER
154*c474b386SHarini Katakam	help
155*c474b386SHarini Katakam	  This selects the Cadence SPI controller master driver
156*c474b386SHarini Katakam	  used by Xilinx Zynq.
157*c474b386SHarini Katakam
158161b96c3SAlexander Shiyanconfig SPI_CLPS711X
159161b96c3SAlexander Shiyan	tristate "CLPS711X host SPI controller"
1605634dd8bSAxel Lin	depends on ARCH_CLPS711X || COMPILE_TEST
161161b96c3SAlexander Shiyan	help
162161b96c3SAlexander Shiyan	  This enables dedicated general purpose SPI/Microwire1-compatible
163161b96c3SAlexander Shiyan	  master mode interface (SSI1) for CLPS711X-based CPUs.
164161b96c3SAlexander Shiyan
16534b8c661SSteven Kingconfig SPI_COLDFIRE_QSPI
16634b8c661SSteven King	tristate "Freescale Coldfire QSPI controller"
167bce4d12bSSteven King	depends on (M520x || M523x || M5249 || M525x || M527x || M528x || M532x)
16834b8c661SSteven King	help
16934b8c661SSteven King	  This enables support for the Coldfire QSPI controller in master
17034b8c661SSteven King	  mode.
17134b8c661SSteven King
172358934a6SSandeep Paulrajconfig SPI_DAVINCI
17323ce17adSSekhar Nori	tristate "Texas Instruments DaVinci/DA8x/OMAP-L/AM1x SoC SPI controller"
17478848914SSantosh Shilimkar	depends on ARCH_DAVINCI || ARCH_KEYSTONE
175358934a6SSandeep Paulraj	select SPI_BITBANG
176358934a6SSandeep Paulraj	help
17723ce17adSSekhar Nori	  SPI master controller for DaVinci/DA8x/OMAP-L/AM1x SPI modules.
17823ce17adSSekhar Nori
17986f8973cSUwe Kleine-Königconfig SPI_EFM32
18086f8973cSUwe Kleine-König	tristate "EFM32 SPI controller"
18186f8973cSUwe Kleine-König	depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
18286f8973cSUwe Kleine-König	select SPI_BITBANG
18386f8973cSUwe Kleine-König	help
18486f8973cSUwe Kleine-König	  Driver for the spi controller found on Energy Micro's EFM32 SoCs.
18586f8973cSUwe Kleine-König
186011f23a3SMika Westerbergconfig SPI_EP93XX
187011f23a3SMika Westerberg	tristate "Cirrus Logic EP93xx SPI controller"
188dd1053a9SMark Brown	depends on ARCH_EP93XX || COMPILE_TEST
189011f23a3SMika Westerberg	help
190011f23a3SMika Westerberg	  This enables using the Cirrus EP93xx SPI controller in master
191011f23a3SMika Westerberg	  mode.
192011f23a3SMika Westerberg
1936cd3c7e2SThomas Langerconfig SPI_FALCON
1946cd3c7e2SThomas Langer	tristate "Falcon SPI controller support"
1956cd3c7e2SThomas Langer	depends on SOC_FALCON
1966cd3c7e2SThomas Langer	help
1976cd3c7e2SThomas Langer	  The external bus unit (EBU) found on the FALC-ON SoC has SPI
1986cd3c7e2SThomas Langer	  emulation that is designed for serial flash access. This driver
1996cd3c7e2SThomas Langer	  has only been tested with m25p80 type chips. The hardware has no
2006cd3c7e2SThomas Langer	  support for other types of SPI peripherals.
2016cd3c7e2SThomas Langer
202d29389deSDavid Brownellconfig SPI_GPIO
203d29389deSDavid Brownell	tristate "GPIO-based bitbanging SPI Master"
20476ec9d18SAlexandre Courbot	depends on GPIOLIB
205d29389deSDavid Brownell	select SPI_BITBANG
206d29389deSDavid Brownell	help
207d29389deSDavid Brownell	  This simple GPIO bitbanging SPI master uses the arch-neutral GPIO
208d29389deSDavid Brownell	  interface to manage MOSI, MISO, SCK, and chipselect signals.  SPI
209d29389deSDavid Brownell	  slaves connected to a bus using this driver are configured as usual,
210d29389deSDavid Brownell	  except that the spi_board_info.controller_data holds the GPIO number
211d29389deSDavid Brownell	  for the chipselect used by this controller driver.
212d29389deSDavid Brownell
213d29389deSDavid Brownell	  Note that this driver often won't achieve even 1 Mbit/sec speeds,
214d29389deSDavid Brownell	  making it unusually slow for SPI.  If your platform can inline
215d29389deSDavid Brownell	  GPIO operations, you should be able to leverage that for better
216d29389deSDavid Brownell	  speed with a custom version of this driver; see the source code.
217d29389deSDavid Brownell
218b5f3294fSSascha Hauerconfig SPI_IMX
219b5f3294fSSascha Hauer	tristate "Freescale i.MX SPI controllers"
220dd1053a9SMark Brown	depends on ARCH_MXC || COMPILE_TEST
221b5f3294fSSascha Hauer	select SPI_BITBANG
222b5f3294fSSascha Hauer	help
223b5f3294fSSascha Hauer	  This enables using the Freescale i.MX SPI controllers in master
224b5f3294fSSascha Hauer	  mode.
225b5f3294fSSascha Hauer
22678961a57SKaiwan N Billimoriaconfig SPI_LM70_LLP
22778961a57SKaiwan N Billimoria	tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
2286d1f56aaSKees Cook	depends on PARPORT
22978961a57SKaiwan N Billimoria	select SPI_BITBANG
23078961a57SKaiwan N Billimoria	help
23178961a57SKaiwan N Billimoria	  This driver supports the NS LM70 LLP Evaluation Board,
23278961a57SKaiwan N Billimoria	  which interfaces to an LM70 temperature sensor using
23378961a57SKaiwan N Billimoria	  a parallel port.
23478961a57SKaiwan N Billimoria
23542bbb709SGrant Likelyconfig SPI_MPC52xx
23642bbb709SGrant Likely	tristate "Freescale MPC52xx SPI (non-PSC) controller support"
2377433f2b7SPaul Bolle	depends on PPC_MPC52xx
23842bbb709SGrant Likely	help
23942bbb709SGrant Likely	  This drivers supports the MPC52xx SPI controller in master SPI
24042bbb709SGrant Likely	  mode.
24142bbb709SGrant Likely
24200b8fd23SDragos Carpconfig SPI_MPC52xx_PSC
24300b8fd23SDragos Carp	tristate "Freescale MPC52xx PSC SPI controller"
2446d1f56aaSKees Cook	depends on PPC_MPC52xx
24500b8fd23SDragos Carp	help
24600b8fd23SDragos Carp	  This enables using the Freescale MPC52xx Programmable Serial
24700b8fd23SDragos Carp	  Controller in master SPI mode.
24800b8fd23SDragos Carp
2496e27388fSAnatolij Gustschinconfig SPI_MPC512x_PSC
2506e27388fSAnatolij Gustschin	tristate "Freescale MPC512x PSC SPI controller"
2515e8afa34SUwe Kleine-König	depends on PPC_MPC512x
2526e27388fSAnatolij Gustschin	help
2536e27388fSAnatolij Gustschin	  This enables using the Freescale MPC5121 Programmable Serial
2546e27388fSAnatolij Gustschin	  Controller in SPI master mode.
2556e27388fSAnatolij Gustschin
256b36ece83SMingkai Huconfig SPI_FSL_LIB
257b36ece83SMingkai Hu	tristate
258e8beacbbSAndreas Larsson	depends on OF
259e8beacbbSAndreas Larsson
260e8beacbbSAndreas Larssonconfig SPI_FSL_CPM
261e8beacbbSAndreas Larsson	tristate
262b36ece83SMingkai Hu	depends on FSL_SOC
263b36ece83SMingkai Hu
2643272029fSMingkai Huconfig SPI_FSL_SPI
265447b0c7bSAndreas Larsson	bool "Freescale SPI controller and Aeroflex Gaisler GRLIB SPI controller"
266e8beacbbSAndreas Larsson	depends on OF
267b36ece83SMingkai Hu	select SPI_FSL_LIB
268e8beacbbSAndreas Larsson	select SPI_FSL_CPM if FSL_SOC
269ccf06998SKumar Gala	help
2703272029fSMingkai Hu	  This enables using the Freescale SPI controllers in master mode.
2713272029fSMingkai Hu	  MPC83xx platform uses the controller in cpu mode or CPM/QE mode.
2723272029fSMingkai Hu	  MPC8569 uses the controller in QE mode, MPC8610 in cpu mode.
273447b0c7bSAndreas Larsson	  This also enables using the Aeroflex Gaisler GRLIB SPI controller in
274447b0c7bSAndreas Larsson	  master mode.
275ccf06998SKumar Gala
276349ad66cSChao Fuconfig SPI_FSL_DSPI
277349ad66cSChao Fu	tristate "Freescale DSPI controller"
278349ad66cSChao Fu	select SPI_BITBANG
2791acbdeb9SChao Fu	select REGMAP_MMIO
280b444d1dfSUwe Kleine-König	depends on SOC_VF610 || COMPILE_TEST
281349ad66cSChao Fu	help
282349ad66cSChao Fu	  This enables support for the Freescale DSPI controller in master
283349ad66cSChao Fu	  mode. VF610 platform uses the controller.
284349ad66cSChao Fu
2858b60d6c2SMingkai Huconfig SPI_FSL_ESPI
286d9ddcec3SJiri Slaby	bool "Freescale eSPI controller"
2878b60d6c2SMingkai Hu	depends on FSL_SOC
2888b60d6c2SMingkai Hu	select SPI_FSL_LIB
2898b60d6c2SMingkai Hu	help
2908b60d6c2SMingkai Hu	  This enables using the Freescale eSPI controllers in master mode.
2918b60d6c2SMingkai Hu	  From MPC8536, 85xx platform uses the controller, and all P10xx,
2928b60d6c2SMingkai Hu	  P20xx, P30xx,P40xx, P50xx uses this controller.
2938b60d6c2SMingkai Hu
294ce792580SThomas Chouconfig SPI_OC_TINY
295ce792580SThomas Chou	tristate "OpenCores tiny SPI"
29676ec9d18SAlexandre Courbot	depends on GPIOLIB
297ce792580SThomas Chou	select SPI_BITBANG
298ce792580SThomas Chou	help
299ce792580SThomas Chou	  This is the driver for OpenCores tiny SPI master controller.
300ce792580SThomas Chou
3016b52c00fSDavid Daneyconfig SPI_OCTEON
3026b52c00fSDavid Daney	tristate "Cavium OCTEON SPI controller"
3039ddebc46SDavid Daney	depends on CAVIUM_OCTEON_SOC
3046b52c00fSDavid Daney	help
3056b52c00fSDavid Daney	  SPI host driver for the hardware found on some Cavium OCTEON
3066b52c00fSDavid Daney	  SOCs.
3076b52c00fSDavid Daney
308fdb3c18dSDavid Brownellconfig SPI_OMAP_UWIRE
309fdb3c18dSDavid Brownell	tristate "OMAP1 MicroWire"
3106291fe2aSRobert P. J. Day	depends on ARCH_OMAP1
311fdb3c18dSDavid Brownell	select SPI_BITBANG
312fdb3c18dSDavid Brownell	help
313fdb3c18dSDavid Brownell	  This hooks up to the MicroWire controller on OMAP1 chips.
314fdb3c18dSDavid Brownell
315ccdc7bf9SSamuel Ortizconfig SPI_OMAP24XX
3168ebeb545SSyed Rafiuddin	tristate "McSPI driver for OMAP"
317f6ab395bSPaul Bolle	depends on ARM || ARM64 || AVR32 || HEXAGON || MIPS || SUPERH
318dd1053a9SMark Brown	depends on ARCH_OMAP2PLUS || COMPILE_TEST
319ccdc7bf9SSamuel Ortiz	help
3208ebeb545SSyed Rafiuddin	  SPI master controller for OMAP24XX and later Multichannel SPI
321ccdc7bf9SSamuel Ortiz	  (McSPI) modules.
32269c202afSAndrea Paterniani
323505a1495SSourav Poddarconfig SPI_TI_QSPI
324505a1495SSourav Poddar	tristate "DRA7xxx QSPI controller support"
325505a1495SSourav Poddar	depends on ARCH_OMAP2PLUS || COMPILE_TEST
326505a1495SSourav Poddar	help
327505a1495SSourav Poddar	  QSPI master controller for DRA7xxx used for flash devices.
328505a1495SSourav Poddar	  This device supports single, dual and quad read support, while
329505a1495SSourav Poddar	  it only supports single write mode.
330505a1495SSourav Poddar
33135c9049bSCory Maccarroneconfig SPI_OMAP_100K
33235c9049bSCory Maccarrone	tristate "OMAP SPI 100K"
333dd1053a9SMark Brown	depends on ARCH_OMAP850 || ARCH_OMAP730 || COMPILE_TEST
33435c9049bSCory Maccarrone	help
33535c9049bSCory Maccarrone	  OMAP SPI 100K master controller for omap7xx boards.
33635c9049bSCory Maccarrone
33760cadec9SShadi Ammouriconfig SPI_ORION
3386d1f56aaSKees Cook	tristate "Orion SPI master"
339dd1053a9SMark Brown	depends on PLAT_ORION || COMPILE_TEST
34060cadec9SShadi Ammouri	help
34160cadec9SShadi Ammouri	  This enables using the SPI master controller on the Orion chips.
34260cadec9SShadi Ammouri
343b43d65f7SLinus Walleijconfig SPI_PL022
3447f9a4b97SLinus Walleij	tristate "ARM AMBA PL022 SSP controller"
3457f9a4b97SLinus Walleij	depends on ARM_AMBA
346b43d65f7SLinus Walleij	default y if MACH_U300
347f33b29eeSlinus.walleij@stericsson.com	default y if ARCH_REALVIEW
348f33b29eeSlinus.walleij@stericsson.com	default y if INTEGRATOR_IMPD1
349f33b29eeSlinus.walleij@stericsson.com	default y if ARCH_VERSATILE
350b43d65f7SLinus Walleij	help
351b43d65f7SLinus Walleij	  This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
352b43d65f7SLinus Walleij	  controller. If you have an embedded system with an AMBA(R)
353b43d65f7SLinus Walleij	  bus and a PL022 controller, say Y or M here.
354b43d65f7SLinus Walleij
35544dab88eSSteven A. Falcoconfig SPI_PPC4xx
35644dab88eSSteven A. Falco	tristate "PPC4xx SPI Controller"
3575e8afa34SUwe Kleine-König	depends on PPC32 && 4xx
35844dab88eSSteven A. Falco	select SPI_BITBANG
35944dab88eSSteven A. Falco	help
36044dab88eSSteven A. Falco	  This selects a driver for the PPC4xx SPI Controller.
36144dab88eSSteven A. Falco
362cd7bed00SMika Westerbergconfig SPI_PXA2XX_PXADMA
363cd7bed00SMika Westerberg	bool "PXA2xx SSP legacy PXA DMA API support"
364cd7bed00SMika Westerberg	depends on SPI_PXA2XX && ARCH_PXA
365cd7bed00SMika Westerberg	help
3665928808eSMika Westerberg	  Enable PXA private legacy DMA API support. Note that this is
3675928808eSMika Westerberg	  deprecated in favor of generic DMA engine API.
3685928808eSMika Westerberg
3695928808eSMika Westerbergconfig SPI_PXA2XX_DMA
3705928808eSMika Westerberg	def_bool y
3715928808eSMika Westerberg	depends on SPI_PXA2XX && !SPI_PXA2XX_PXADMA
372cd7bed00SMika Westerberg
373e0c9905eSStephen Streetconfig SPI_PXA2XX
374e0c9905eSStephen Street	tristate "PXA2xx SSP SPI master"
3750244ad00SMartin Schwidefsky	depends on (ARCH_PXA || PCI || ACPI)
376d6ea3df0SSebastian Andrzej Siewior	select PXA_SSP if ARCH_PXA
377e0c9905eSStephen Street	help
378d6ea3df0SSebastian Andrzej Siewior	  This enables using a PXA2xx or Sodaville SSP port as a SPI master
379d6ea3df0SSebastian Andrzej Siewior	  controller. The driver can be configured to use any SSP port and
380d6ea3df0SSebastian Andrzej Siewior	  additional documentation can be found a Documentation/spi/pxa2xx.
381d6ea3df0SSebastian Andrzej Siewior
382d6ea3df0SSebastian Andrzej Siewiorconfig SPI_PXA2XX_PCI
3832b49ebdaSMika Westerberg	def_tristate SPI_PXA2XX && PCI
384e0c9905eSStephen Street
3850b2182ddSShimoda, Yoshihiroconfig SPI_RSPI
386e290c343SGeert Uytterhoeven	tristate "Renesas RSPI/QSPI controller"
387e2e5ed79SGeert Uytterhoeven	depends on (SUPERH && SH_DMAE_BASE) || ARCH_SHMOBILE
3880b2182ddSShimoda, Yoshihiro	help
389e290c343SGeert Uytterhoeven	  SPI driver for Renesas RSPI and QSPI blocks.
3900b2182ddSShimoda, Yoshihiro
39164ff247aSIvan T. Ivanovconfig SPI_QUP
39264ff247aSIvan T. Ivanov	tristate "Qualcomm SPI controller with QUP interface"
393058f11c8SPaul Bolle	depends on ARCH_QCOM || (ARM && COMPILE_TEST)
39464ff247aSIvan T. Ivanov	help
39564ff247aSIvan T. Ivanov	  Qualcomm Universal Peripheral (QUP) core is an AHB slave that
39664ff247aSIvan T. Ivanov	  provides a common data path (an output FIFO and an input FIFO)
39764ff247aSIvan T. Ivanov	  for serial peripheral interface (SPI) mini-core. SPI in master
39864ff247aSIvan T. Ivanov	  mode supports up to 50MHz, up to four chip selects, programmable
39964ff247aSIvan T. Ivanov	  data path from 4 bits to 32 bits and numerous protocol variants.
40064ff247aSIvan T. Ivanov
40164ff247aSIvan T. Ivanov	  This driver can also be built as a module.  If so, the module
40264ff247aSIvan T. Ivanov	  will be called spi_qup.
4038ae12a0dSDavid Brownell
40485abfaa7SDavid Brownellconfig SPI_S3C24XX
40585abfaa7SDavid Brownell	tristate "Samsung S3C24XX series SPI"
4066d1f56aaSKees Cook	depends on ARCH_S3C24XX
407da0abc27SDavid Brownell	select SPI_BITBANG
40885abfaa7SDavid Brownell	help
40985abfaa7SDavid Brownell	  SPI driver for Samsung S3C24XX series ARM SoCs
41085abfaa7SDavid Brownell
411bec0806cSBen Dooksconfig SPI_S3C24XX_FIQ
412bec0806cSBen Dooks	bool "S3C24XX driver with FIQ pseudo-DMA"
413bec0806cSBen Dooks	depends on SPI_S3C24XX
414bec0806cSBen Dooks	select FIQ
415bec0806cSBen Dooks	help
416bec0806cSBen Dooks	  Enable FIQ support for the S3C24XX SPI driver to provide pseudo
417bec0806cSBen Dooks	  DMA by using the fast-interrupt request framework, This allows
418bec0806cSBen Dooks	  the driver to get DMA-like performance when there are either
419bec0806cSBen Dooks	  no free DMA channels, or when doing transfers that required both
420bec0806cSBen Dooks	  TX and RX data paths.
421bec0806cSBen Dooks
422230d42d4SJassi Brarconfig SPI_S3C64XX
423230d42d4SJassi Brar	tristate "Samsung S3C64XX series type SPI"
4247d5f880bSMateusz Krawczuk	depends on PLAT_SAMSUNG
4253faecea7STomasz Figa	select S3C64XX_PL080 if ARCH_S3C64XX
426230d42d4SJassi Brar	help
427230d42d4SJassi Brar	  SPI driver for Samsung S3C64XX and newer SoCs.
428230d42d4SJassi Brar
4293ce8859eSGuenter Roeckconfig SPI_SC18IS602
4303ce8859eSGuenter Roeck	tristate "NXP SC18IS602/602B/603 I2C to SPI bridge"
4313ce8859eSGuenter Roeck	depends on I2C
4323ce8859eSGuenter Roeck	help
4333ce8859eSGuenter Roeck	  SPI driver for NXP SC18IS602/602B/603 I2C to SPI bridge.
4343ce8859eSGuenter Roeck
4358051effcSMagnus Dammconfig SPI_SH_MSIOF
4368051effcSMagnus Damm	tristate "SuperH MSIOF SPI controller"
4377ad35442SLaurent Pinchart	depends on HAVE_CLK
4387ad35442SLaurent Pinchart	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
4398051effcSMagnus Damm	help
440746aeffdSBastian Hecht	  SPI driver for SuperH and SH Mobile MSIOF blocks.
4418051effcSMagnus Damm
4425c05dd07SYoshihiro Shimodaconfig SPI_SH
4435c05dd07SYoshihiro Shimoda	tristate "SuperH SPI controller"
444dd1053a9SMark Brown	depends on SUPERH || COMPILE_TEST
4455c05dd07SYoshihiro Shimoda	help
4465c05dd07SYoshihiro Shimoda	  SPI driver for SuperH SPI blocks.
4475c05dd07SYoshihiro Shimoda
44837e46640SMagnus Dammconfig SPI_SH_SCI
44937e46640SMagnus Damm	tristate "SuperH SCI SPI controller"
4506291fe2aSRobert P. J. Day	depends on SUPERH
45137e46640SMagnus Damm	select SPI_BITBANG
45237e46640SMagnus Damm	help
45337e46640SMagnus Damm	  SPI driver for SuperH SCI blocks.
45437e46640SMagnus Damm
455d1c8bbd7SKuninori Morimotoconfig SPI_SH_HSPI
456d1c8bbd7SKuninori Morimoto	tristate "SuperH HSPI controller"
457dd1053a9SMark Brown	depends on ARCH_SHMOBILE || COMPILE_TEST
458d1c8bbd7SKuninori Morimoto	help
459d1c8bbd7SKuninori Morimoto	  SPI driver for SuperH HSPI blocks.
460d1c8bbd7SKuninori Morimoto
4611cc2df9dSZhiwu Songconfig SPI_SIRF
4621cc2df9dSZhiwu Song	tristate "CSR SiRFprimaII SPI controller"
4637668c294SMark Brown	depends on SIRF_DMA
4641cc2df9dSZhiwu Song	select SPI_BITBANG
4651cc2df9dSZhiwu Song	help
4661cc2df9dSZhiwu Song	  SPI driver for CSR SiRFprimaII SoCs
4671cc2df9dSZhiwu Song
468b5f65179SMaxime Ripardconfig SPI_SUN4I
469b5f65179SMaxime Ripard	tristate "Allwinner A10 SoCs SPI controller"
470b5f65179SMaxime Ripard	depends on ARCH_SUNXI || COMPILE_TEST
471b5f65179SMaxime Ripard	help
472b5f65179SMaxime Ripard	  SPI driver for Allwinner sun4i, sun5i and sun7i SoCs
473b5f65179SMaxime Ripard
4743558fe90SMaxime Ripardconfig SPI_SUN6I
4753558fe90SMaxime Ripard	tristate "Allwinner A31 SPI controller"
4763558fe90SMaxime Ripard	depends on ARCH_SUNXI || COMPILE_TEST
4777961656aSMark Brown	depends on RESET_CONTROLLER
4783558fe90SMaxime Ripard	help
4793558fe90SMaxime Ripard	  This enables using the SPI controller on the Allwinner A31 SoCs.
4803558fe90SMaxime Ripard
481646781d3SMarek Vasutconfig SPI_MXS
482646781d3SMarek Vasut	tristate "Freescale MXS SPI controller"
483646781d3SMarek Vasut	depends on ARCH_MXS
484646781d3SMarek Vasut	select STMP_DEVICE
485646781d3SMarek Vasut	help
486646781d3SMarek Vasut	  SPI driver for Freescale MXS devices.
487646781d3SMarek Vasut
488f333a331SLaxman Dewanganconfig SPI_TEGRA114
489f333a331SLaxman Dewangan	tristate "NVIDIA Tegra114 SPI Controller"
490dd1053a9SMark Brown	depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
491ff2251e3SStephen Warren	depends on RESET_CONTROLLER
492f333a331SLaxman Dewangan	help
493f333a331SLaxman Dewangan	  SPI driver for NVIDIA Tegra114 SPI Controller interface. This controller
494f333a331SLaxman Dewangan	  is different than the older SoCs SPI controller and also register interface
495f333a331SLaxman Dewangan	  get changed with this controller.
496f333a331SLaxman Dewangan
4978528547bSLaxman Dewanganconfig SPI_TEGRA20_SFLASH
4988528547bSLaxman Dewangan	tristate "Nvidia Tegra20 Serial flash Controller"
499dd1053a9SMark Brown	depends on ARCH_TEGRA || COMPILE_TEST
500ff2251e3SStephen Warren	depends on RESET_CONTROLLER
5018528547bSLaxman Dewangan	help
5028528547bSLaxman Dewangan	  SPI driver for Nvidia Tegra20 Serial flash Controller interface.
5038528547bSLaxman Dewangan	  The main usecase of this controller is to use spi flash as boot
5048528547bSLaxman Dewangan	  device.
5058528547bSLaxman Dewangan
506dc4dc360SLaxman Dewanganconfig SPI_TEGRA20_SLINK
507dc4dc360SLaxman Dewangan	tristate "Nvidia Tegra20/Tegra30 SLINK Controller"
508dd1053a9SMark Brown	depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
509ff2251e3SStephen Warren	depends on RESET_CONTROLLER
510dc4dc360SLaxman Dewangan	help
511dc4dc360SLaxman Dewangan	  SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface.
512dc4dc360SLaxman Dewangan
513e8b17b5bSMasayuki Ohtakeconfig SPI_TOPCLIFF_PCH
51492b3a5c1STomoya MORINAGA	tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) SPI"
515e8b17b5bSMasayuki Ohtake	depends on PCI
516e8b17b5bSMasayuki Ohtake	help
517cdbc8f04SGrant Likely	  SPI driver for the Topcliff PCH (Platform Controller Hub) SPI bus
518cdbc8f04SGrant Likely	  used in some x86 embedded processors.
519e8b17b5bSMasayuki Ohtake
52092b3a5c1STomoya MORINAGA	  This driver also supports the ML7213/ML7223/ML7831, a companion chip
52192b3a5c1STomoya MORINAGA	  for the Atom E6xx series and compatible with the Intel EG20T PCH.
522f016aeb6STomoya MORINAGA
523f2cac67dSAtsushi Nemotoconfig SPI_TXX9
524f2cac67dSAtsushi Nemoto	tristate "Toshiba TXx9 SPI controller"
525dd1053a9SMark Brown	depends on GPIOLIB && (CPU_TX49XX || COMPILE_TEST)
526f2cac67dSAtsushi Nemoto	help
527f2cac67dSAtsushi Nemoto	  SPI driver for Toshiba TXx9 MIPS SoCs
528f2cac67dSAtsushi Nemoto
529b3165900SLars-Peter Clausenconfig SPI_XCOMM
530b3165900SLars-Peter Clausen	tristate "Analog Devices AD-FMCOMMS1-EBZ SPI-I2C-bridge driver"
531b3165900SLars-Peter Clausen	depends on I2C
532b3165900SLars-Peter Clausen	help
533b3165900SLars-Peter Clausen	  Support for the SPI-I2C bridge found on the Analog Devices
534b3165900SLars-Peter Clausen	  AD-FMCOMMS1-EBZ board.
535b3165900SLars-Peter Clausen
536ae918c02SAndrei Konovalovconfig SPI_XILINX
537c9da2e12SRichard Röjfors	tristate "Xilinx SPI controller common module"
5386d1f56aaSKees Cook	depends on HAS_IOMEM
539ae918c02SAndrei Konovalov	select SPI_BITBANG
540ae918c02SAndrei Konovalov	help
541ae918c02SAndrei Konovalov	  This exposes the SPI controller IP from the Xilinx EDK.
542ae918c02SAndrei Konovalov
543ae918c02SAndrei Konovalov	  See the "OPB Serial Peripheral Interface (SPI) (v1.00e)"
544ae918c02SAndrei Konovalov	  Product Specification document (DS464) for hardware details.
545ae918c02SAndrei Konovalov
546c9da2e12SRichard Röjfors	  Or for the DS570, see "XPS Serial Peripheral Interface (SPI) (v2.00b)"
547c9da2e12SRichard Röjfors
5486840cc29SMax Filippovconfig SPI_XTENSA_XTFPGA
5496840cc29SMax Filippov	tristate "Xtensa SPI controller for xtfpga"
550be8dde46SAxel Lin	depends on (XTENSA && XTENSA_PLATFORM_XTFPGA) || COMPILE_TEST
5516840cc29SMax Filippov	select SPI_BITBANG
5526840cc29SMax Filippov	help
5536840cc29SMax Filippov	  SPI driver for xtfpga SPI master controller.
5546840cc29SMax Filippov
5556840cc29SMax Filippov	  This simple SPI master controller is built into xtfpga bitstreams
5566840cc29SMax Filippov	  and is used to control daughterboard audio codec. It always transfers
5576840cc29SMax Filippov	  16 bit words in SPI mode 0, automatically asserting CS on transfer
5586840cc29SMax Filippov	  start and deasserting on end.
5596840cc29SMax Filippov
5606840cc29SMax Filippov
56130eaed05SWan ZongShunconfig SPI_NUC900
56230eaed05SWan ZongShun	tristate "Nuvoton NUC900 series SPI"
5636d1f56aaSKees Cook	depends on ARCH_W90X900
56430eaed05SWan ZongShun	select SPI_BITBANG
56530eaed05SWan ZongShun	help
56630eaed05SWan ZongShun	  SPI driver for Nuvoton NUC900 series ARM SoCs
56730eaed05SWan ZongShun
5688ae12a0dSDavid Brownell#
5698ae12a0dSDavid Brownell# Add new SPI master controllers in alphabetical order above this line
5708ae12a0dSDavid Brownell#
5718ae12a0dSDavid Brownell
572e24c7452SFeng Tangconfig SPI_DESIGNWARE
5738ca8d15aSJean-Hugues Deschenes	tristate "DesignWare SPI controller core support"
574e24c7452SFeng Tang	help
575e24c7452SFeng Tang	  general driver for SPI controller core from DesignWare
576e24c7452SFeng Tang
577e24c7452SFeng Tangconfig SPI_DW_PCI
578e24c7452SFeng Tang	tristate "PCI interface driver for DW SPI core"
579e24c7452SFeng Tang	depends on SPI_DESIGNWARE && PCI
580e24c7452SFeng Tang
5817063c0d9SFeng Tangconfig SPI_DW_MID_DMA
5827063c0d9SFeng Tang	bool "DMA support for DW SPI controller on Intel Moorestown platform"
5837063c0d9SFeng Tang	depends on SPI_DW_PCI && INTEL_MID_DMAC
5847063c0d9SFeng Tang
585f7b6fd6dSJean-Hugues Deschenesconfig SPI_DW_MMIO
586f7b6fd6dSJean-Hugues Deschenes	tristate "Memory-mapped io interface driver for DW SPI core"
587794f61a3SBaruch Siach	depends on SPI_DESIGNWARE
588f7b6fd6dSJean-Hugues Deschenes
5898ae12a0dSDavid Brownell#
5908ae12a0dSDavid Brownell# There are lots of SPI device types, with sensors and memory
5918ae12a0dSDavid Brownell# being probably the most widely used ones.
5928ae12a0dSDavid Brownell#
5938ae12a0dSDavid Brownellcomment "SPI Protocol Masters"
5948ae12a0dSDavid Brownell
595814a8d50SAndrea Paternianiconfig SPI_SPIDEV
596814a8d50SAndrea Paterniani	tristate "User mode SPI device driver support"
597814a8d50SAndrea Paterniani	help
598814a8d50SAndrea Paterniani	  This supports user mode SPI protocol drivers.
599814a8d50SAndrea Paterniani
600814a8d50SAndrea Paterniani	  Note that this application programming interface is EXPERIMENTAL
601814a8d50SAndrea Paterniani	  and hence SUBJECT TO CHANGE WITHOUT NOTICE while it stabilizes.
602814a8d50SAndrea Paterniani
603447aef1aSBen Dooksconfig SPI_TLE62X0
604447aef1aSBen Dooks	tristate "Infineon TLE62X0 (for power switching)"
6056291fe2aSRobert P. J. Day	depends on SYSFS
606447aef1aSBen Dooks	help
607447aef1aSBen Dooks	  SPI driver for Infineon TLE62X0 series line driver chips,
608447aef1aSBen Dooks	  such as the TLE6220, TLE6230 and TLE6240.  This provides a
609447aef1aSBen Dooks	  sysfs interface, with each line presented as a kind of GPIO
610447aef1aSBen Dooks	  exposing both switch control and diagnostic feedback.
611447aef1aSBen Dooks
6128ae12a0dSDavid Brownell#
6138ae12a0dSDavid Brownell# Add new SPI protocol masters in alphabetical order above this line
6148ae12a0dSDavid Brownell#
6158ae12a0dSDavid Brownell
6166291fe2aSRobert P. J. Dayendif # SPI_MASTER
6176291fe2aSRobert P. J. Day
6188ae12a0dSDavid Brownell# (slave support would go here)
6198ae12a0dSDavid Brownell
62079d8c7a8SAlessandro Guidoendif # SPI
621