blob: cc174dd0363a846d323dcc9cf548bcfb5f3b0595 [file] [log] [blame]
Adam Fordf1b1f772018-04-15 13:51:26 -04001menuconfig SPI
2 bool "SPI Support"
3
4if SPI
Jagan Tekide823052015-06-27 22:35:14 +05305
Masahiro Yamadada333ae2014-10-23 22:26:09 +09006config DM_SPI
7 bool "Enable Driver Model for SPI drivers"
8 depends on DM
9 help
Simon Glassf94a1be2015-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 Glass892cac72015-03-06 13:19:05 -070018
Boris Brezillond13f5b22018-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 R6430eea2019-02-05 11:29:15 +053026if DM_SPI
27
Thomas Chou15a56f92015-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 Teki15927ae2018-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 Wangb85dc462016-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 Ambarus24c8ff42019-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 Yang0eafd4b2016-10-28 14:17:49 +080060config ATMEL_SPI
61 bool "Atmel SPI driver"
Jagan Teki89d4fc12018-03-14 18:46:44 +053062 default y if ARCH_AT91
Wenyou Yang0eafd4b2016-10-28 14:17:49 +080063 help
64 This enables driver for the Atmel SPI Controller, present on
Andy Shevchenkodaab59a2017-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 Yang0eafd4b2016-10-28 14:17:49 +080067
Álvaro Fernández Rojas29cc4362018-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 Rojas5ac07d22018-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 Fitzsimmons894c3ad2018-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 Tekie4976af2015-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 Dureghello610e3162019-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 Tekie4976af2015-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 Tekic354eee2015-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 Teki94ea3082015-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 Teki45636012015-06-27 15:43:27 +0530126config ICH_SPI
127 bool "Intel ICH SPI driver"
Vignesh R6d825172019-02-05 11:29:28 +0530128 imply SPI_FLASH_BAR
Jagan Teki45636012015-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 Armstrong9d265062018-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 Leroyf34d0312018-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 Tekic1a3f1e2019-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 Roese5eee9de2018-08-16 10:48:48 +0200153config MT7621_SPI
154 bool "MediaTek MT7621 SPI driver"
Weijie Gao16b94902019-04-30 11:13:58 +0800155 depends on SOC_MT7628
Stefan Roese5eee9de2018-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
Guochun Mao052cafd2018-10-12 15:01:06 +0800161config MTK_QSPI
162 bool "Mediatek QSPI driver"
Vignesh R6d825172019-02-05 11:29:28 +0530163 imply SPI_FLASH_BAR
Guochun Mao052cafd2018-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
Stefan Roese3fda4ef2016-05-19 15:56:44 +0200169config MVEBU_A3700_SPI
170 bool "Marvell Armada 3700 SPI driver"
Marek Behúndbbd5bd2018-04-24 17:21:26 +0200171 select CLK_ARMADA_3720
Stefan Roese3fda4ef2016-05-19 15:56:44 +0200172 help
173 Enable the Marvell Armada 3700 SPI driver. This driver can be
174 used to access the SPI NOR flash on platforms embedding this
175 Marvell IP core.
176
Purna Chandra Mandale19b9002016-06-02 14:26:08 +0530177config PIC32_SPI
178 bool "Microchip PIC32 SPI driver"
179 depends on MACH_PIC32
180 help
181 Enable the Microchip PIC32 SPI driver. This driver can be used
182 to access the SPI NOR flash, MMC-over-SPI on platforms based on
183 Microchip PIC32 family devices.
184
Quentin Schulz8a4791f2018-08-31 16:28:29 +0200185config PL022_SPI
186 bool "ARM AMBA PL022 SSP controller driver"
187 depends on ARM
188 help
189 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
190 controller. If you have an embedded system with an AMBA(R)
191 bus and a PL022 controller, say Y or M here.
192
Marek Vasutfbebea22017-11-29 06:29:46 +0100193config RENESAS_RPC_SPI
194 bool "Renesas RPC SPI driver"
Marek Vasutb5b66562019-05-04 18:52:33 +0200195 depends on RCAR_GEN3 || RZA1
Vignesh R6d825172019-02-05 11:29:28 +0530196 imply SPI_FLASH_BAR
Marek Vasutfbebea22017-11-29 06:29:46 +0100197 help
198 Enable the Renesas RPC SPI driver, used to access SPI NOR flash
199 on Renesas RCar Gen3 SoCs. This uses driver model and requires a
200 device tree binding to operate.
201
Simon Glass1b2fd5b2015-09-01 19:19:37 -0600202config ROCKCHIP_SPI
203 bool "Rockchip SPI driver"
204 help
205 Enable the Rockchip SPI driver, used to access SPI NOR flash and
206 other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
207 This uses driver model and requires a device tree binding to
208 operate.
209
Simon Glass892cac72015-03-06 13:19:05 -0700210config SANDBOX_SPI
211 bool "Sandbox SPI driver"
212 depends on SANDBOX && DM
213 help
214 Enable SPI support for sandbox. This is an emulation of a real SPI
215 bus. Devices can be attached to the bus using the device tree
216 which specifies the driver to use. As an example, see this device
217 tree fragment from sandbox.dts. It shows that the SPI bus has a
218 single flash device on chip select 0 which is emulated by the driver
219 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
220
221 spi@0 {
222 #address-cells = <1>;
223 #size-cells = <0>;
224 reg = <0>;
225 compatible = "sandbox,spi";
226 cs-gpios = <0>, <&gpio_a 0>;
227 flash@0 {
228 reg = <0>;
Simon Glass24c27762019-05-18 11:59:49 -0600229 compatible = "spansion,m25p16", "jedec,spi-nor";
Simon Glass892cac72015-03-06 13:19:05 -0700230 spi-max-frequency = <40000000>;
231 sandbox,filename = "spi.bin";
232 };
Jagan Tekie4976af2015-06-27 22:37:00 +0530233 };
Jagan Tekif924a202015-06-27 04:41:11 +0530234
Jagan Tekia51cd542019-02-27 20:02:13 +0530235config SPI_SUNXI
236 bool "Allwinner SoC SPI controllers"
237 help
238 Enable the Allwinner SoC SPi controller driver.
239
240 Same controller driver can reuse in all Allwinner SoC variants.
241
Michael Kurzd4363ba2017-01-22 16:04:30 +0100242config STM32_QSPI
243 bool "STM32F7 QSPI driver"
Patrice Chotard351d2fe2019-04-30 16:09:18 +0200244 depends on STM32F4 || STM32F7 || ARCH_STM32MP
Michael Kurzd4363ba2017-01-22 16:04:30 +0100245 help
246 Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
247 used to access the SPI NOR flash chips on platforms embedding
248 this ST IP core.
249
Patrice Chotarda2a89b22019-04-30 18:08:28 +0200250config STM32_SPI
251 bool "STM32 SPI driver"
252 depends on ARCH_STM32MP
253 help
254 Enable the STM32 Serial Peripheral Interface (SPI) driver for STM32MP
255 SoCs. This uses driver model and requires a device tree binding to
256 operate.
257
Jagan Teki5bf9a2d2015-06-27 15:57:53 +0530258config TEGRA114_SPI
259 bool "nVidia Tegra114 SPI driver"
260 help
261 Enable the nVidia Tegra114 SPI driver. This driver can be used to
262 access the SPI NOR flash on platforms embedding this nVidia Tegra114
263 IP core.
264
265 This controller is different than the older SoCs SPI controller and
266 also register interface get changed with this controller.
267
Jagan Teki2f3e6f82015-06-27 16:04:05 +0530268config TEGRA20_SFLASH
269 bool "nVidia Tegra20 Serial Flash controller driver"
270 help
271 Enable the nVidia Tegra20 Serial Flash controller driver. This driver
272 can be used to access the SPI NOR flash on platforms embedding this
273 nVidia Tegra20 IP core.
274
Jagan Teki44958302015-06-27 16:07:54 +0530275config TEGRA20_SLINK
276 bool "nVidia Tegra20/Tegra30 SLINK driver"
277 help
278 Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
279 be used to access the SPI NOR flash on platforms embedding this
280 nVidia Tegra20/Tegra30 IP cores.
281
Tom Warren4e675ff2015-10-12 14:50:54 -0700282config TEGRA210_QSPI
283 bool "nVidia Tegra210 QSPI driver"
284 help
285 Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
286 be used to access SPI chips on platforms embedding this
287 NVIDIA Tegra210 IP core.
288
Vignesh Raghavendra61ae9782019-04-16 21:31:59 +0530289config TI_QSPI
290 bool "TI QSPI driver"
291 imply TI_EDMA3
292 help
293 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
294 This driver support spi flash single, quad and memory reads.
295
Kunihiko Hayashi9424ecd2019-07-05 10:03:18 +0900296config UNIPHIER_SPI
297 bool "Socionext UniPhier SPI driver"
298 depends on ARCH_UNIPHIER
299 help
300 Enable the Socionext UniPhier SPI driver. This driver can
301 be used to access SPI chips on platforms embedding this
302 UniPhier IP core.
303
Jagan Teki075143d2015-06-27 04:32:43 +0530304config XILINX_SPI
305 bool "Xilinx SPI driver"
Jagan Teki075143d2015-06-27 04:32:43 +0530306 help
307 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
308 controller support 8 bit SPI transfers only, with or w/o FIFO.
309 For more info on Xilinx SPI Register Definitions and Overview
310 see driver file - drivers/spi/xilinx_spi.c
311
Jagan Tekidf30a422015-06-27 00:51:38 +0530312config ZYNQ_SPI
313 bool "Zynq SPI driver"
Michal Simekec48b6c2018-08-22 14:55:27 +0200314 depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
Jagan Tekidf30a422015-06-27 00:51:38 +0530315 help
316 Enable the Zynq SPI driver. This driver can be used to
317 access the SPI NOR flash on platforms embedding this Zynq
318 SPI IP core.
Jagan Tekide823052015-06-27 22:35:14 +0530319
Jagan Teki78a025a2015-08-16 00:19:38 +0530320config ZYNQ_QSPI
321 bool "Zynq QSPI driver"
322 depends on ARCH_ZYNQ
Vignesh R6d825172019-02-05 11:29:28 +0530323 imply SPI_FLASH_BAR
Jagan Teki78a025a2015-08-16 00:19:38 +0530324 help
325 Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
326 used to access the SPI NOR flash on platforms embedding this
327 Zynq QSPI IP core. This IP is used to connect the flash in
328 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
329
Siva Durga Prasad Paladugu22cca172018-07-04 17:31:23 +0530330config ZYNQMP_GQSPI
331 bool "Configure ZynqMP Generic QSPI"
Michal Simekec48b6c2018-08-22 14:55:27 +0200332 depends on ARCH_ZYNQMP || ARCH_VERSAL
Siva Durga Prasad Paladugu22cca172018-07-04 17:31:23 +0530333 help
334 This option is used to enable ZynqMP QSPI controller driver which
335 is used to communicate with qspi flash devices.
336
Jagan Tekie4976af2015-06-27 22:37:00 +0530337endif # if DM_SPI
338
Peng Fan41eb8ff2017-04-13 14:09:55 +0800339config SOFT_SPI
340 bool "Soft SPI driver"
Jagan Teki32f70d62019-05-29 17:01:34 -0400341 depends on DM_SPI || (DEPRECATED && !DM_SPI)
Peng Fan41eb8ff2017-04-13 14:09:55 +0800342 help
343 Enable Soft SPI driver. This driver is to use GPIO simulate
344 the SPI protocol.
345
Lars Povlsenfd6e0b02019-01-08 10:38:33 +0100346config MSCC_BB_SPI
347 bool "MSCC bitbang SPI driver"
348 depends on SOC_VCOREIII
349 help
350 Enable MSCC bitbang SPI driver. This driver can be used on
351 MSCC SOCs.
352
Tuomas Tynkkynenfbca0e62018-02-07 02:42:23 +0200353config CF_SPI
354 bool "ColdFire SPI driver"
355 help
356 Enable the ColdFire SPI driver. This driver can be used on
357 some m68k SoCs.
358
Jagan Teki3debffa2015-06-27 15:21:36 +0530359config FSL_ESPI
360 bool "Freescale eSPI driver"
361 help
362 Enable the Freescale eSPI driver. This driver can be used to
363 access the SPI interface and SPI NOR flash on platforms embedding
364 this Freescale eSPI IP core.
365
Jagan Teki21b1dd12016-09-03 12:58:33 +0530366config FSL_QSPI
367 bool "Freescale QSPI driver"
Vignesh R6d825172019-02-05 11:29:28 +0530368 imply SPI_FLASH_BAR
Jagan Teki21b1dd12016-09-03 12:58:33 +0530369 help
370 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
371 used to access the SPI NOR flash on platforms embedding this
372 Freescale IP core.
373
Adam Ford26410c12017-12-30 07:33:42 -0600374config DAVINCI_SPI
375 bool "Davinci & Keystone SPI driver"
376 depends on ARCH_DAVINCI || ARCH_KEYSTONE
377 help
378 Enable the Davinci SPI driver
379
Tuomas Tynkkynen95d38772018-02-07 02:42:16 +0200380config SH_SPI
381 bool "SuperH SPI driver"
Jagan Tekie1247592019-05-29 17:01:33 -0400382 depends on DEPRECATED
Tuomas Tynkkynen95d38772018-02-07 02:42:16 +0200383 help
384 Enable the SuperH SPI controller driver. This driver can be used
385 on various SuperH SoCs, such as SH7757.
386
Tuomas Tynkkynena5dfabe2018-02-07 02:42:17 +0200387config SH_QSPI
388 bool "Renesas Quad SPI driver"
389 help
390 Enable the Renesas Quad SPI controller driver. This driver can be
391 used on Renesas SoCs.
392
Tuomas Tynkkynen4a942f42018-02-07 02:42:22 +0200393config KIRKWOOD_SPI
394 bool "Marvell Kirkwood SPI Driver"
395 help
396 Enable support for SPI on various Marvell SoCs, such as
397 Kirkwood and Armada 375.
398
Tuomas Tynkkynen2c4b0962018-02-07 02:42:21 +0200399config LPC32XX_SSP
400 bool "LPC32XX SPI Driver"
Jagan Tekiea73ec02019-05-29 17:01:35 -0400401 depends on DEPRECATED
Tuomas Tynkkynen2c4b0962018-02-07 02:42:21 +0200402 help
403 Enable support for SPI on LPC32xx
404
Tuomas Tynkkynen60e54562018-02-07 02:42:19 +0200405config MXC_SPI
406 bool "MXC SPI Driver"
407 help
408 Enable the MXC SPI controller driver. This driver can be used
409 on various i.MX SoCs such as i.MX31/35/51/6/7.
410
Tuomas Tynkkynen7b819b52018-02-07 02:42:18 +0200411config MXS_SPI
412 bool "MXS SPI Driver"
Jagan Tekid5ded322019-05-29 17:01:32 -0400413 depends on DEPRECATED
Tuomas Tynkkynen7b819b52018-02-07 02:42:18 +0200414 help
415 Enable the MXS SPI controller driver. This driver can be used
416 on the i.MX23 and i.MX28 SoCs.
417
Adam Forda41e3e12017-07-26 22:25:29 -0500418config OMAP3_SPI
419 bool "McSPI driver for OMAP"
420 help
421 SPI master controller for OMAP24XX and later Multichannel SPI
422 (McSPI). This driver be used to access SPI chips on platforms
423 embedding this OMAP3 McSPI IP core.
424
Adam Fordf1b1f772018-04-15 13:51:26 -0400425endif # menu "SPI Support"