1# 2# SPI driver configuration 3# 4# NOTE: the reason this doesn't show SPI slave support is mostly that 5# nobody's needed a slave side API yet. The master-role API is not 6# fully appropriate there, so it'd need some thought to do well. 7# 8menuconfig SPI 9 bool "SPI support" 10 depends on HAS_IOMEM 11 help 12 The "Serial Peripheral Interface" is a low level synchronous 13 protocol. Chips that support SPI can have data transfer rates 14 up to several tens of Mbit/sec. Chips are addressed with a 15 controller and a chipselect. Most SPI slaves don't support 16 dynamic device discovery; some are even write-only or read-only. 17 18 SPI is widely used by microcontrollers to talk with sensors, 19 eeprom and flash memory, codecs and various other controller 20 chips, analog to digital (and d-to-a) converters, and more. 21 MMC and SD cards can be accessed using SPI protocol; and for 22 DataFlash cards used in MMC sockets, SPI must always be used. 23 24 SPI is one of a family of similar protocols using a four wire 25 interface (select, clock, data in, data out) including Microwire 26 (half duplex), SSP, SSI, and PSP. This driver framework should 27 work with most such devices and controllers. 28 29if SPI 30 31config SPI_DEBUG 32 boolean "Debug support for SPI drivers" 33 depends on DEBUG_KERNEL 34 help 35 Say "yes" to enable debug messaging (like dev_dbg and pr_debug), 36 sysfs, and debugfs support in SPI controller and protocol drivers. 37 38# 39# MASTER side ... talking to discrete SPI slave chips including microcontrollers 40# 41 42config SPI_MASTER 43# boolean "SPI Master Support" 44 boolean 45 default SPI 46 help 47 If your system has an master-capable SPI controller (which 48 provides the clock and chipselect), you can enable that 49 controller and the protocol drivers for the SPI slave chips 50 that are connected. 51 52if SPI_MASTER 53 54comment "SPI Master Controller Drivers" 55 56config SPI_ALTERA 57 tristate "Altera SPI Controller" 58 select SPI_BITBANG 59 help 60 This is the driver for the Altera SPI Controller. 61 62config SPI_ATH79 63 tristate "Atheros AR71XX/AR724X/AR913X SPI controller driver" 64 depends on ATH79 && GENERIC_GPIO 65 select SPI_BITBANG 66 help 67 This enables support for the SPI controller present on the 68 Atheros AR71XX/AR724X/AR913X SoCs. 69 70config SPI_ATMEL 71 tristate "Atmel SPI Controller" 72 depends on (ARCH_AT91 || AVR32) 73 help 74 This selects a driver for the Atmel SPI Controller, present on 75 many AT32 (AVR32) and AT91 (ARM) chips. 76 77config SPI_BCM2835 78 tristate "BCM2835 SPI controller" 79 depends on ARCH_BCM2835 80 help 81 This selects a driver for the Broadcom BCM2835 SPI master. 82 83 The BCM2835 contains two types of SPI master controller; the 84 "universal SPI master", and the regular SPI controller. This driver 85 is for the regular SPI controller. Slave mode operation is not also 86 not supported. 87 88config SPI_BFIN5XX 89 tristate "SPI controller driver for ADI Blackfin5xx" 90 depends on BLACKFIN 91 help 92 This is the SPI controller master driver for Blackfin 5xx processor. 93 94config SPI_BFIN_SPORT 95 tristate "SPI bus via Blackfin SPORT" 96 depends on BLACKFIN 97 help 98 Enable support for a SPI bus via the Blackfin SPORT peripheral. 99 100config SPI_AU1550 101 tristate "Au1550/Au1200/Au1300 SPI Controller" 102 depends on MIPS_ALCHEMY 103 select SPI_BITBANG 104 help 105 If you say yes to this option, support will be included for the 106 PSC SPI controller found on Au1550, Au1200 and Au1300 series. 107 108config SPI_BCM63XX 109 tristate "Broadcom BCM63xx SPI controller" 110 depends on BCM63XX 111 help 112 Enable support for the SPI controller on the Broadcom BCM63xx SoCs. 113 114config SPI_BITBANG 115 tristate "Utilities for Bitbanging SPI masters" 116 help 117 With a few GPIO pins, your system can bitbang the SPI protocol. 118 Select this to get SPI support through I/O pins (GPIO, parallel 119 port, etc). Or, some systems' SPI master controller drivers use 120 this code to manage the per-word or per-transfer accesses to the 121 hardware shift registers. 122 123 This is library code, and is automatically selected by drivers that 124 need it. You only need to select this explicitly to support driver 125 modules that aren't part of this kernel tree. 126 127config SPI_BUTTERFLY 128 tristate "Parallel port adapter for AVR Butterfly (DEVELOPMENT)" 129 depends on PARPORT 130 select SPI_BITBANG 131 help 132 This uses a custom parallel port cable to connect to an AVR 133 Butterfly <http://www.atmel.com/products/avr/butterfly>, an 134 inexpensive battery powered microcontroller evaluation board. 135 This same cable can be used to flash new firmware. 136 137config SPI_CLPS711X 138 tristate "CLPS711X host SPI controller" 139 depends on ARCH_CLPS711X 140 help 141 This enables dedicated general purpose SPI/Microwire1-compatible 142 master mode interface (SSI1) for CLPS711X-based CPUs. 143 144config SPI_COLDFIRE_QSPI 145 tristate "Freescale Coldfire QSPI controller" 146 depends on (M520x || M523x || M5249 || M525x || M527x || M528x || M532x) 147 help 148 This enables support for the Coldfire QSPI controller in master 149 mode. 150 151config SPI_DAVINCI 152 tristate "Texas Instruments DaVinci/DA8x/OMAP-L/AM1x SoC SPI controller" 153 depends on ARCH_DAVINCI 154 select SPI_BITBANG 155 select TI_EDMA 156 help 157 SPI master controller for DaVinci/DA8x/OMAP-L/AM1x SPI modules. 158 159config SPI_EP93XX 160 tristate "Cirrus Logic EP93xx SPI controller" 161 depends on ARCH_EP93XX 162 help 163 This enables using the Cirrus EP93xx SPI controller in master 164 mode. 165 166config SPI_FALCON 167 tristate "Falcon SPI controller support" 168 depends on SOC_FALCON 169 help 170 The external bus unit (EBU) found on the FALC-ON SoC has SPI 171 emulation that is designed for serial flash access. This driver 172 has only been tested with m25p80 type chips. The hardware has no 173 support for other types of SPI peripherals. 174 175config SPI_GPIO 176 tristate "GPIO-based bitbanging SPI Master" 177 depends on GENERIC_GPIO 178 select SPI_BITBANG 179 help 180 This simple GPIO bitbanging SPI master uses the arch-neutral GPIO 181 interface to manage MOSI, MISO, SCK, and chipselect signals. SPI 182 slaves connected to a bus using this driver are configured as usual, 183 except that the spi_board_info.controller_data holds the GPIO number 184 for the chipselect used by this controller driver. 185 186 Note that this driver often won't achieve even 1 Mbit/sec speeds, 187 making it unusually slow for SPI. If your platform can inline 188 GPIO operations, you should be able to leverage that for better 189 speed with a custom version of this driver; see the source code. 190 191config SPI_IMX 192 tristate "Freescale i.MX SPI controllers" 193 depends on ARCH_MXC 194 select SPI_BITBANG 195 default m if IMX_HAVE_PLATFORM_SPI_IMX 196 help 197 This enables using the Freescale i.MX SPI controllers in master 198 mode. 199 200config SPI_LM70_LLP 201 tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)" 202 depends on PARPORT 203 select SPI_BITBANG 204 help 205 This driver supports the NS LM70 LLP Evaluation Board, 206 which interfaces to an LM70 temperature sensor using 207 a parallel port. 208 209config SPI_MPC52xx 210 tristate "Freescale MPC52xx SPI (non-PSC) controller support" 211 depends on PPC_MPC52xx 212 help 213 This drivers supports the MPC52xx SPI controller in master SPI 214 mode. 215 216config SPI_MPC52xx_PSC 217 tristate "Freescale MPC52xx PSC SPI controller" 218 depends on PPC_MPC52xx 219 help 220 This enables using the Freescale MPC52xx Programmable Serial 221 Controller in master SPI mode. 222 223config SPI_MPC512x_PSC 224 tristate "Freescale MPC512x PSC SPI controller" 225 depends on PPC_MPC512x 226 help 227 This enables using the Freescale MPC5121 Programmable Serial 228 Controller in SPI master mode. 229 230config SPI_FSL_LIB 231 tristate 232 depends on OF 233 234config SPI_FSL_CPM 235 tristate 236 depends on FSL_SOC 237 238config SPI_FSL_SPI 239 bool "Freescale SPI controller" 240 depends on OF 241 select SPI_FSL_LIB 242 select SPI_FSL_CPM if FSL_SOC 243 help 244 This enables using the Freescale SPI controllers in master mode. 245 MPC83xx platform uses the controller in cpu mode or CPM/QE mode. 246 MPC8569 uses the controller in QE mode, MPC8610 in cpu mode. 247 248config SPI_FSL_ESPI 249 bool "Freescale eSPI controller" 250 depends on FSL_SOC 251 select SPI_FSL_LIB 252 help 253 This enables using the Freescale eSPI controllers in master mode. 254 From MPC8536, 85xx platform uses the controller, and all P10xx, 255 P20xx, P30xx,P40xx, P50xx uses this controller. 256 257config SPI_OC_TINY 258 tristate "OpenCores tiny SPI" 259 depends on GENERIC_GPIO 260 select SPI_BITBANG 261 help 262 This is the driver for OpenCores tiny SPI master controller. 263 264config SPI_OCTEON 265 tristate "Cavium OCTEON SPI controller" 266 depends on CPU_CAVIUM_OCTEON 267 help 268 SPI host driver for the hardware found on some Cavium OCTEON 269 SOCs. 270 271config SPI_OMAP_UWIRE 272 tristate "OMAP1 MicroWire" 273 depends on ARCH_OMAP1 274 select SPI_BITBANG 275 help 276 This hooks up to the MicroWire controller on OMAP1 chips. 277 278config SPI_OMAP24XX 279 tristate "McSPI driver for OMAP" 280 depends on ARCH_OMAP2PLUS 281 help 282 SPI master controller for OMAP24XX and later Multichannel SPI 283 (McSPI) modules. 284 285config SPI_OMAP_100K 286 tristate "OMAP SPI 100K" 287 depends on ARCH_OMAP850 || ARCH_OMAP730 288 help 289 OMAP SPI 100K master controller for omap7xx boards. 290 291config SPI_ORION 292 tristate "Orion SPI master" 293 depends on PLAT_ORION 294 help 295 This enables using the SPI master controller on the Orion chips. 296 297config SPI_PL022 298 tristate "ARM AMBA PL022 SSP controller" 299 depends on ARM_AMBA 300 default y if MACH_U300 301 default y if ARCH_REALVIEW 302 default y if INTEGRATOR_IMPD1 303 default y if ARCH_VERSATILE 304 help 305 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP 306 controller. If you have an embedded system with an AMBA(R) 307 bus and a PL022 controller, say Y or M here. 308 309config SPI_PPC4xx 310 tristate "PPC4xx SPI Controller" 311 depends on PPC32 && 4xx 312 select SPI_BITBANG 313 help 314 This selects a driver for the PPC4xx SPI Controller. 315 316config SPI_PXA2XX_PXADMA 317 bool "PXA2xx SSP legacy PXA DMA API support" 318 depends on SPI_PXA2XX && ARCH_PXA 319 help 320 Enable PXA private legacy DMA API support. Note that this is 321 deprecated in favor of generic DMA engine API. 322 323config SPI_PXA2XX_DMA 324 def_bool y 325 depends on SPI_PXA2XX && !SPI_PXA2XX_PXADMA 326 327config SPI_PXA2XX 328 tristate "PXA2xx SSP SPI master" 329 depends on ARCH_PXA || PCI || ACPI 330 select PXA_SSP if ARCH_PXA 331 help 332 This enables using a PXA2xx or Sodaville SSP port as a SPI master 333 controller. The driver can be configured to use any SSP port and 334 additional documentation can be found a Documentation/spi/pxa2xx. 335 336config SPI_PXA2XX_PCI 337 def_tristate SPI_PXA2XX && PCI 338 339config SPI_RSPI 340 tristate "Renesas RSPI controller" 341 depends on SUPERH 342 help 343 SPI driver for Renesas RSPI blocks. 344 345config SPI_S3C24XX 346 tristate "Samsung S3C24XX series SPI" 347 depends on ARCH_S3C24XX 348 select SPI_BITBANG 349 help 350 SPI driver for Samsung S3C24XX series ARM SoCs 351 352config SPI_S3C24XX_FIQ 353 bool "S3C24XX driver with FIQ pseudo-DMA" 354 depends on SPI_S3C24XX 355 select FIQ 356 help 357 Enable FIQ support for the S3C24XX SPI driver to provide pseudo 358 DMA by using the fast-interrupt request framework, This allows 359 the driver to get DMA-like performance when there are either 360 no free DMA channels, or when doing transfers that required both 361 TX and RX data paths. 362 363config SPI_S3C64XX 364 tristate "Samsung S3C64XX series type SPI" 365 depends on (ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5P64X0 || ARCH_EXYNOS) 366 select S3C64XX_DMA if ARCH_S3C64XX 367 help 368 SPI driver for Samsung S3C64XX and newer SoCs. 369 370config SPI_SC18IS602 371 tristate "NXP SC18IS602/602B/603 I2C to SPI bridge" 372 depends on I2C 373 help 374 SPI driver for NXP SC18IS602/602B/603 I2C to SPI bridge. 375 376config SPI_SH_MSIOF 377 tristate "SuperH MSIOF SPI controller" 378 depends on (SUPERH || ARCH_SHMOBILE) && HAVE_CLK 379 select SPI_BITBANG 380 help 381 SPI driver for SuperH and SH Mobile MSIOF blocks. 382 383config SPI_SH 384 tristate "SuperH SPI controller" 385 depends on SUPERH 386 help 387 SPI driver for SuperH SPI blocks. 388 389config SPI_SH_SCI 390 tristate "SuperH SCI SPI controller" 391 depends on SUPERH 392 select SPI_BITBANG 393 help 394 SPI driver for SuperH SCI blocks. 395 396config SPI_SH_HSPI 397 tristate "SuperH HSPI controller" 398 depends on ARCH_SHMOBILE 399 help 400 SPI driver for SuperH HSPI blocks. 401 402config SPI_SIRF 403 tristate "CSR SiRFprimaII SPI controller" 404 depends on ARCH_PRIMA2 405 select SPI_BITBANG 406 help 407 SPI driver for CSR SiRFprimaII SoCs 408 409config SPI_MXS 410 tristate "Freescale MXS SPI controller" 411 depends on ARCH_MXS 412 select STMP_DEVICE 413 help 414 SPI driver for Freescale MXS devices. 415 416config SPI_TEGRA20_SFLASH 417 tristate "Nvidia Tegra20 Serial flash Controller" 418 depends on ARCH_TEGRA 419 help 420 SPI driver for Nvidia Tegra20 Serial flash Controller interface. 421 The main usecase of this controller is to use spi flash as boot 422 device. 423 424config SPI_TEGRA20_SLINK 425 tristate "Nvidia Tegra20/Tegra30 SLINK Controller" 426 depends on ARCH_TEGRA && TEGRA20_APB_DMA 427 help 428 SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface. 429 430config SPI_TI_SSP 431 tristate "TI Sequencer Serial Port - SPI Support" 432 depends on MFD_TI_SSP 433 help 434 This selects an SPI master implementation using a TI sequencer 435 serial port. 436 437config SPI_TOPCLIFF_PCH 438 tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) SPI" 439 depends on PCI 440 help 441 SPI driver for the Topcliff PCH (Platform Controller Hub) SPI bus 442 used in some x86 embedded processors. 443 444 This driver also supports the ML7213/ML7223/ML7831, a companion chip 445 for the Atom E6xx series and compatible with the Intel EG20T PCH. 446 447config SPI_TXX9 448 tristate "Toshiba TXx9 SPI controller" 449 depends on GENERIC_GPIO && CPU_TX49XX 450 help 451 SPI driver for Toshiba TXx9 MIPS SoCs 452 453config SPI_XCOMM 454 tristate "Analog Devices AD-FMCOMMS1-EBZ SPI-I2C-bridge driver" 455 depends on I2C 456 help 457 Support for the SPI-I2C bridge found on the Analog Devices 458 AD-FMCOMMS1-EBZ board. 459 460config SPI_XILINX 461 tristate "Xilinx SPI controller common module" 462 depends on HAS_IOMEM 463 select SPI_BITBANG 464 help 465 This exposes the SPI controller IP from the Xilinx EDK. 466 467 See the "OPB Serial Peripheral Interface (SPI) (v1.00e)" 468 Product Specification document (DS464) for hardware details. 469 470 Or for the DS570, see "XPS Serial Peripheral Interface (SPI) (v2.00b)" 471 472config SPI_NUC900 473 tristate "Nuvoton NUC900 series SPI" 474 depends on ARCH_W90X900 475 select SPI_BITBANG 476 help 477 SPI driver for Nuvoton NUC900 series ARM SoCs 478 479# 480# Add new SPI master controllers in alphabetical order above this line 481# 482 483config SPI_DESIGNWARE 484 tristate "DesignWare SPI controller core support" 485 help 486 general driver for SPI controller core from DesignWare 487 488config SPI_DW_PCI 489 tristate "PCI interface driver for DW SPI core" 490 depends on SPI_DESIGNWARE && PCI 491 492config SPI_DW_MID_DMA 493 bool "DMA support for DW SPI controller on Intel Moorestown platform" 494 depends on SPI_DW_PCI && INTEL_MID_DMAC 495 496config SPI_DW_MMIO 497 tristate "Memory-mapped io interface driver for DW SPI core" 498 depends on SPI_DESIGNWARE && HAVE_CLK 499 500# 501# There are lots of SPI device types, with sensors and memory 502# being probably the most widely used ones. 503# 504comment "SPI Protocol Masters" 505 506config SPI_SPIDEV 507 tristate "User mode SPI device driver support" 508 help 509 This supports user mode SPI protocol drivers. 510 511 Note that this application programming interface is EXPERIMENTAL 512 and hence SUBJECT TO CHANGE WITHOUT NOTICE while it stabilizes. 513 514config SPI_TLE62X0 515 tristate "Infineon TLE62X0 (for power switching)" 516 depends on SYSFS 517 help 518 SPI driver for Infineon TLE62X0 series line driver chips, 519 such as the TLE6220, TLE6230 and TLE6240. This provides a 520 sysfs interface, with each line presented as a kind of GPIO 521 exposing both switch control and diagnostic feedback. 522 523# 524# Add new SPI protocol masters in alphabetical order above this line 525# 526 527endif # SPI_MASTER 528 529# (slave support would go here) 530 531endif # SPI 532