blob: b9f0327e34bc95e3004e69debbf75fc7530c58aa [file] [log] [blame]
Adam Ford4e96ff82018-04-15 13:51:26 -04001menuconfig SPI
2 bool "SPI Support"
3
4if SPI
Jagan Tekibfd3f8b2015-06-27 22:35:14 +05305
Masahiro Yamada57ad8ee2014-10-23 22:26:09 +09006config DM_SPI
7 bool "Enable Driver Model for SPI drivers"
8 depends on DM
9 help
Simon Glassd8b771d2015-02-05 21:41:35 -070010 Enable driver model for SPI. The SPI slave interface
11 (spi_setup_slave(), spi_xfer(), etc.) is then implemented by
12 the SPI uclass. Drivers provide methods to access the SPI
13 buses that they control. The uclass interface is defined in
14 include/spi.h. The existing spi_slave structure is attached
15 as 'parent data' to every slave on each bus. Slaves
16 typically use driver-private data instead of extending the
17 spi_slave structure.
Simon Glass4b322d32015-03-06 13:19:05 -070018
Boris Brezillon32473fe2018-08-16 17:30:11 +020019config SPI_MEM
20 bool "SPI memory extension"
21 help
22 Enable this option if you want to enable the SPI memory extension.
23 This extension is meant to simplify interaction with SPI memories
24 by providing an high-level interface to send memory-like commands.
25
Vignesh R4e341d32019-02-05 11:29:15 +053026if DM_SPI
27
Thomas Chouc5899542015-10-14 08:33:34 +080028config ALTERA_SPI
29 bool "Altera SPI driver"
30 help
31 Enable the Altera SPI driver. This driver can be used to
32 access the SPI NOR flash on platforms embedding this Altera
33 IP core. Please find details on the "Embedded Peripherals IP
34 User Guide" of Altera.
35
Jagan Teki353dffb2018-03-07 10:33:33 +053036config ATCSPI200_SPI
37 bool "Andestech ATCSPI200 SPI driver"
38 help
39 Enable the Andestech ATCSPI200 SPI driver. This driver can be
40 used to access the SPI flash on AE3XX and AE250 platforms embedding
41 this Andestech IP core.
42
Wills Wangf5021482016-03-16 16:59:58 +080043config ATH79_SPI
44 bool "Atheros SPI driver"
45 depends on ARCH_ATH79
46 help
47 Enable the Atheros ar7xxx/ar9xxx SoC SPI driver, it was used
48 to access SPI NOR flash and other SPI peripherals. This driver
49 uses driver model and requires a device tree binding to operate.
50 please refer to doc/device-tree-bindings/spi/spi-ath79.txt.
51
Tudor Ambarus88151bb2019-06-18 08:51:50 +000052config ATMEL_QSPI
53 bool "Atmel Quad SPI Controller"
54 depends on ARCH_AT91
55 help
56 Enable the Atmel Quad SPI controller in master mode. This driver
57 does not support generic SPI. The implementation supports only the
58 spi-mem interface.
59
Wenyou Yangda8ee982016-10-28 14:17:49 +080060config ATMEL_SPI
61 bool "Atmel SPI driver"
Jagan Teki1d831b62018-03-14 18:46:44 +053062 default y if ARCH_AT91
Wenyou Yangda8ee982016-10-28 14:17:49 +080063 help
64 This enables driver for the Atmel SPI Controller, present on
Andy Shevchenko8cb5cdd2017-07-05 16:25:22 +030065 many AT91 (ARM) chips. This driver can be used to access
66 the SPI Flash, such as AT25DF321.
Wenyou Yangda8ee982016-10-28 14:17:49 +080067
Álvaro Fernández Rojas55d96ec2018-01-20 02:13:38 +010068config BCM63XX_HSSPI
69 bool "BCM63XX HSSPI driver"
70 depends on ARCH_BMIPS
71 help
72 Enable the BCM6328 HSSPI driver. This driver can be used to
73 access the SPI NOR flash on platforms embedding this Broadcom
74 SPI core.
75
Álvaro Fernández Rojascc243c62018-01-23 17:14:58 +010076config BCM63XX_SPI
77 bool "BCM6348 SPI driver"
78 depends on ARCH_BMIPS
79 help
80 Enable the BCM6348/BCM6358 SPI driver. This driver can be used to
81 access the SPI NOR flash on platforms embedding these Broadcom
82 SPI cores.
83
Thomas Fitzsimmons919646d2018-06-08 17:59:45 -040084config BCMSTB_SPI
85 bool "BCMSTB SPI driver"
86 help
87 Enable the Broadcom set-top box SPI driver. This driver can
88 be used to access the SPI flash on platforms embedding this
89 Broadcom SPI core.
90
Jagan Teki15a932c2015-06-27 22:37:00 +053091config CADENCE_QSPI
92 bool "Cadence QSPI driver"
93 help
94 Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
95 used to access the SPI NOR flash on platforms embedding this
96 Cadence IP core.
97
Angelo Dureghello72e9be32019-03-13 21:46:46 +010098config CF_SPI
99 bool "ColdFire SPI driver"
100 help
101 Enable the ColdFire SPI driver. This driver can be used on
102 some m68k SoCs.
103
Jagan Teki15a932c2015-06-27 22:37:00 +0530104config DESIGNWARE_SPI
105 bool "Designware SPI driver"
106 help
107 Enable the Designware SPI driver. This driver can be used to
108 access the SPI NOR flash on platforms embedding this Designware
109 IP core.
110
Jagan Teki6274bf92015-06-27 15:32:19 +0530111config EXYNOS_SPI
112 bool "Samsung Exynos SPI driver"
113 help
114 Enable the Samsung Exynos SPI driver. This driver can be used to
115 access the SPI NOR flash on platforms embedding this Samsung
116 Exynos IP core.
117
Jagan Tekiae30c022015-06-27 14:17:06 +0530118config FSL_DSPI
119 bool "Freescale DSPI driver"
120 help
121 Enable the Freescale DSPI driver. This driver can be used to
122 access the SPI NOR flash and SPI Data flash on platforms embedding
123 this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
124 use this driver.
125
Jagan Teki3872b7c2015-06-27 15:43:27 +0530126config ICH_SPI
127 bool "Intel ICH SPI driver"
Vignesh R1f66bca2019-02-05 11:29:28 +0530128 imply SPI_FLASH_BAR
Jagan Teki3872b7c2015-06-27 15:43:27 +0530129 help
130 Enable the Intel ICH SPI driver. This driver can be used to
131 access the SPI NOR flash on platforms embedding this Intel
132 ICH IP core.
133
Neil Armstrong5c162172018-11-22 11:01:05 +0100134config MESON_SPIFC
135 bool "Amlogic Meson SPI Flash Controller driver"
136 depends on ARCH_MESON
137 help
138 Enable the Amlogic Meson SPI Flash Controller SPIFC) driver.
139 This driver can be used to access the SPI NOR flash chips on
140 Amlogic Meson SoCs.
141
Christophe Leroy847362b2018-11-21 08:51:57 +0000142config MPC8XX_SPI
143 bool "MPC8XX SPI Driver"
144 depends on MPC8xx
145 help
146 Enable support for SPI on MPC8XX
147
Jagan Teki52515d52019-04-29 01:58:53 +0530148config MPC8XXX_SPI
149 bool "MPC8XXX SPI Driver"
150 help
151 Enable support for SPI on the MPC8XXX PowerPC SoCs.
152
Stefan Roese8adb8cb2018-08-16 10:48:48 +0200153config MT7621_SPI
154 bool "MediaTek MT7621 SPI driver"
developer89f051b2019-04-30 11:13:58 +0800155 depends on SOC_MT7628
Stefan Roese8adb8cb2018-08-16 10:48:48 +0200156 help
157 Enable the MT7621 SPI driver. This driver can be used to access
158 the SPI NOR flash on platforms embedding this Ralink / MediaTek
159 SPI core, like MT7621/7628/7688.
160
developerd97a46e2018-10-12 15:01:06 +0800161config MTK_QSPI
162 bool "Mediatek QSPI driver"
Vignesh R1f66bca2019-02-05 11:29:28 +0530163 imply SPI_FLASH_BAR
developerd97a46e2018-10-12 15:01:06 +0800164 help
165 Enable the Mediatek QSPI driver. This driver can be
166 used to access the SPI NOR flash on platforms embedding this
167 Mediatek QSPI IP core.
168
developer8a78b4d2019-07-22 17:09:01 +0530169config MTK_SNFI_SPI
170 bool "Mediatek SPI memory controller driver"
171 depends on SPI_MEM
172 help
173 Enable the Mediatek SPI memory controller driver. This driver is
174 originally based on the MediaTek SNFI IP core. It can only be
175 used to access SPI memory devices like SPI-NOR or SPI-NAND on
176 platforms embedding this IP core, like MT7622/M7629.
177
Stefan Roese9ec1c782016-05-19 15:56:44 +0200178config MVEBU_A3700_SPI
179 bool "Marvell Armada 3700 SPI driver"
Marek Behún0afd9342018-04-24 17:21:26 +0200180 select CLK_ARMADA_3720
Stefan Roese9ec1c782016-05-19 15:56:44 +0200181 help
182 Enable the Marvell Armada 3700 SPI driver. This driver can be
183 used to access the SPI NOR flash on platforms embedding this
184 Marvell IP core.
185
Purna Chandra Mandalffa54422016-06-02 14:26:08 +0530186config PIC32_SPI
187 bool "Microchip PIC32 SPI driver"
188 depends on MACH_PIC32
189 help
190 Enable the Microchip PIC32 SPI driver. This driver can be used
191 to access the SPI NOR flash, MMC-over-SPI on platforms based on
192 Microchip PIC32 family devices.
193
Quentin Schulz3add62d2018-08-31 16:28:29 +0200194config PL022_SPI
195 bool "ARM AMBA PL022 SSP controller driver"
196 depends on ARM
197 help
198 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
199 controller. If you have an embedded system with an AMBA(R)
200 bus and a PL022 controller, say Y or M here.
201
Marek Vasut6ca967b2017-11-29 06:29:46 +0100202config RENESAS_RPC_SPI
203 bool "Renesas RPC SPI driver"
Marek Vasutf9db3b32019-05-04 18:52:33 +0200204 depends on RCAR_GEN3 || RZA1
Vignesh R1f66bca2019-02-05 11:29:28 +0530205 imply SPI_FLASH_BAR
Marek Vasut6ca967b2017-11-29 06:29:46 +0100206 help
207 Enable the Renesas RPC SPI driver, used to access SPI NOR flash
208 on Renesas RCar Gen3 SoCs. This uses driver model and requires a
209 device tree binding to operate.
210
Simon Glassd1c13772015-09-01 19:19:37 -0600211config ROCKCHIP_SPI
212 bool "Rockchip SPI driver"
213 help
214 Enable the Rockchip SPI driver, used to access SPI NOR flash and
215 other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
216 This uses driver model and requires a device tree binding to
217 operate.
218
Simon Glass4b322d32015-03-06 13:19:05 -0700219config SANDBOX_SPI
220 bool "Sandbox SPI driver"
221 depends on SANDBOX && DM
222 help
223 Enable SPI support for sandbox. This is an emulation of a real SPI
224 bus. Devices can be attached to the bus using the device tree
225 which specifies the driver to use. As an example, see this device
226 tree fragment from sandbox.dts. It shows that the SPI bus has a
227 single flash device on chip select 0 which is emulated by the driver
228 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
229
230 spi@0 {
231 #address-cells = <1>;
232 #size-cells = <0>;
233 reg = <0>;
234 compatible = "sandbox,spi";
235 cs-gpios = <0>, <&gpio_a 0>;
236 flash@0 {
237 reg = <0>;
Simon Glass7e368682019-05-18 11:59:49 -0600238 compatible = "spansion,m25p16", "jedec,spi-nor";
Simon Glass4b322d32015-03-06 13:19:05 -0700239 spi-max-frequency = <40000000>;
240 sandbox,filename = "spi.bin";
241 };
Jagan Teki15a932c2015-06-27 22:37:00 +0530242 };
Jagan Tekidd32f512015-06-27 04:41:11 +0530243
Bhargav Shah3c34f752019-07-17 04:23:43 +0000244config SPI_SIFIVE
245 bool "SiFive SPI driver"
246 help
247 This driver supports the SiFive SPI IP. If unsure say N.
248 Enable the SiFive SPI controller driver.
249
250 The SiFive SPI controller driver is found on various SiFive SoCs.
251
Jagan Teki7b68ef42019-02-27 20:02:13 +0530252config SPI_SUNXI
253 bool "Allwinner SoC SPI controllers"
254 help
255 Enable the Allwinner SoC SPi controller driver.
256
257 Same controller driver can reuse in all Allwinner SoC variants.
258
Michael Kurz337ff2a2017-01-22 16:04:30 +0100259config STM32_QSPI
260 bool "STM32F7 QSPI driver"
Patrice Chotardd43c4962019-04-30 16:09:18 +0200261 depends on STM32F4 || STM32F7 || ARCH_STM32MP
Michael Kurz337ff2a2017-01-22 16:04:30 +0100262 help
263 Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
264 used to access the SPI NOR flash chips on platforms embedding
265 this ST IP core.
266
Patrice Chotard0b08bf82019-04-30 18:08:28 +0200267config STM32_SPI
268 bool "STM32 SPI driver"
269 depends on ARCH_STM32MP
270 help
271 Enable the STM32 Serial Peripheral Interface (SPI) driver for STM32MP
272 SoCs. This uses driver model and requires a device tree binding to
273 operate.
274
Jagan Teki7977d662015-06-27 15:57:53 +0530275config TEGRA114_SPI
276 bool "nVidia Tegra114 SPI driver"
277 help
278 Enable the nVidia Tegra114 SPI driver. This driver can be used to
279 access the SPI NOR flash on platforms embedding this nVidia Tegra114
280 IP core.
281
282 This controller is different than the older SoCs SPI controller and
283 also register interface get changed with this controller.
284
Jagan Tekia900d402015-06-27 16:04:05 +0530285config TEGRA20_SFLASH
286 bool "nVidia Tegra20 Serial Flash controller driver"
287 help
288 Enable the nVidia Tegra20 Serial Flash controller driver. This driver
289 can be used to access the SPI NOR flash on platforms embedding this
290 nVidia Tegra20 IP core.
291
Jagan Teki271aa562015-06-27 16:07:54 +0530292config TEGRA20_SLINK
293 bool "nVidia Tegra20/Tegra30 SLINK driver"
294 help
295 Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
296 be used to access the SPI NOR flash on platforms embedding this
297 nVidia Tegra20/Tegra30 IP cores.
298
Tom Warren5fb0c842015-10-12 14:50:54 -0700299config TEGRA210_QSPI
300 bool "nVidia Tegra210 QSPI driver"
301 help
302 Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
303 be used to access SPI chips on platforms embedding this
304 NVIDIA Tegra210 IP core.
305
Vignesh Raghavendraf3603b82019-04-16 21:31:59 +0530306config TI_QSPI
307 bool "TI QSPI driver"
308 imply TI_EDMA3
309 help
310 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
311 This driver support spi flash single, quad and memory reads.
312
Kunihiko Hayashi7a40ec02019-07-05 10:03:18 +0900313config UNIPHIER_SPI
314 bool "Socionext UniPhier SPI driver"
315 depends on ARCH_UNIPHIER
316 help
317 Enable the Socionext UniPhier SPI driver. This driver can
318 be used to access SPI chips on platforms embedding this
319 UniPhier IP core.
320
Jagan Tekicd70d7d2015-06-27 04:32:43 +0530321config XILINX_SPI
322 bool "Xilinx SPI driver"
Jagan Tekicd70d7d2015-06-27 04:32:43 +0530323 help
324 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
325 controller support 8 bit SPI transfers only, with or w/o FIFO.
326 For more info on Xilinx SPI Register Definitions and Overview
327 see driver file - drivers/spi/xilinx_spi.c
328
Jagan Tekicad526f2015-06-27 00:51:38 +0530329config ZYNQ_SPI
330 bool "Zynq SPI driver"
Michal Simek4b066a12018-08-22 14:55:27 +0200331 depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
Jagan Tekicad526f2015-06-27 00:51:38 +0530332 help
333 Enable the Zynq SPI driver. This driver can be used to
334 access the SPI NOR flash on platforms embedding this Zynq
335 SPI IP core.
Jagan Tekibfd3f8b2015-06-27 22:35:14 +0530336
Jagan Tekif2e1c412015-08-16 00:19:38 +0530337config ZYNQ_QSPI
338 bool "Zynq QSPI driver"
339 depends on ARCH_ZYNQ
Vignesh R1f66bca2019-02-05 11:29:28 +0530340 imply SPI_FLASH_BAR
Jagan Tekif2e1c412015-08-16 00:19:38 +0530341 help
342 Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
343 used to access the SPI NOR flash on platforms embedding this
344 Zynq QSPI IP core. This IP is used to connect the flash in
345 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
346
Siva Durga Prasad Paladugu76597382018-07-04 17:31:23 +0530347config ZYNQMP_GQSPI
348 bool "Configure ZynqMP Generic QSPI"
Michal Simek4b066a12018-08-22 14:55:27 +0200349 depends on ARCH_ZYNQMP || ARCH_VERSAL
Siva Durga Prasad Paladugu76597382018-07-04 17:31:23 +0530350 help
351 This option is used to enable ZynqMP QSPI controller driver which
352 is used to communicate with qspi flash devices.
353
Jagan Teki15a932c2015-06-27 22:37:00 +0530354endif # if DM_SPI
355
Peng Fan176ee212017-04-13 14:09:55 +0800356config SOFT_SPI
357 bool "Soft SPI driver"
Jagan Teki6c2d37e2019-05-29 17:01:34 -0400358 depends on DM_SPI || (DEPRECATED && !DM_SPI)
Peng Fan176ee212017-04-13 14:09:55 +0800359 help
360 Enable Soft SPI driver. This driver is to use GPIO simulate
361 the SPI protocol.
362
Lars Povlsenf01b7322019-01-08 10:38:33 +0100363config MSCC_BB_SPI
364 bool "MSCC bitbang SPI driver"
365 depends on SOC_VCOREIII
366 help
367 Enable MSCC bitbang SPI driver. This driver can be used on
368 MSCC SOCs.
369
Tuomas Tynkkynen4afde862018-02-07 02:42:23 +0200370config CF_SPI
371 bool "ColdFire SPI driver"
372 help
373 Enable the ColdFire SPI driver. This driver can be used on
374 some m68k SoCs.
375
Jagan Tekia0497a32015-06-27 15:21:36 +0530376config FSL_ESPI
377 bool "Freescale eSPI driver"
378 help
379 Enable the Freescale eSPI driver. This driver can be used to
380 access the SPI interface and SPI NOR flash on platforms embedding
381 this Freescale eSPI IP core.
382
Jagan Teki467c6292016-09-03 12:58:33 +0530383config FSL_QSPI
384 bool "Freescale QSPI driver"
Vignesh R1f66bca2019-02-05 11:29:28 +0530385 imply SPI_FLASH_BAR
Jagan Teki467c6292016-09-03 12:58:33 +0530386 help
387 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
388 used to access the SPI NOR flash on platforms embedding this
389 Freescale IP core.
390
Adam Ford19b336e2017-12-30 07:33:42 -0600391config DAVINCI_SPI
392 bool "Davinci & Keystone SPI driver"
393 depends on ARCH_DAVINCI || ARCH_KEYSTONE
394 help
395 Enable the Davinci SPI driver
396
Tuomas Tynkkynen1eadef82018-02-07 02:42:16 +0200397config SH_SPI
398 bool "SuperH SPI driver"
Jagan Tekidd5e9d92019-05-29 17:01:33 -0400399 depends on DEPRECATED
Tuomas Tynkkynen1eadef82018-02-07 02:42:16 +0200400 help
401 Enable the SuperH SPI controller driver. This driver can be used
402 on various SuperH SoCs, such as SH7757.
403
Tuomas Tynkkynenfa8fdfd2018-02-07 02:42:17 +0200404config SH_QSPI
405 bool "Renesas Quad SPI driver"
406 help
407 Enable the Renesas Quad SPI controller driver. This driver can be
408 used on Renesas SoCs.
409
Tuomas Tynkkynen13b5cb82018-02-07 02:42:22 +0200410config KIRKWOOD_SPI
411 bool "Marvell Kirkwood SPI Driver"
412 help
413 Enable support for SPI on various Marvell SoCs, such as
414 Kirkwood and Armada 375.
415
Tuomas Tynkkynen26212682018-02-07 02:42:21 +0200416config LPC32XX_SSP
417 bool "LPC32XX SPI Driver"
Jagan Teki82a17e62019-05-29 17:01:35 -0400418 depends on DEPRECATED
Tuomas Tynkkynen26212682018-02-07 02:42:21 +0200419 help
420 Enable support for SPI on LPC32xx
421
Tuomas Tynkkynend3958792018-02-07 02:42:19 +0200422config MXC_SPI
423 bool "MXC SPI Driver"
424 help
425 Enable the MXC SPI controller driver. This driver can be used
426 on various i.MX SoCs such as i.MX31/35/51/6/7.
427
Tuomas Tynkkynen3244de92018-02-07 02:42:18 +0200428config MXS_SPI
429 bool "MXS SPI Driver"
Jagan Teki9f727332019-05-29 17:01:32 -0400430 depends on DEPRECATED
Tuomas Tynkkynen3244de92018-02-07 02:42:18 +0200431 help
432 Enable the MXS SPI controller driver. This driver can be used
433 on the i.MX23 and i.MX28 SoCs.
434
Adam Ford03a333a2017-07-26 22:25:29 -0500435config OMAP3_SPI
436 bool "McSPI driver for OMAP"
437 help
438 SPI master controller for OMAP24XX and later Multichannel SPI
439 (McSPI). This driver be used to access SPI chips on platforms
440 embedding this OMAP3 McSPI IP core.
441
Adam Ford4e96ff82018-04-15 13:51:26 -0400442endif # menu "SPI Support"