blob: 2f494c0483aa0765b580da302378cf0d26b914df [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
Wenyou Yangda8ee982016-10-28 14:17:49 +080052config ATMEL_SPI
53 bool "Atmel SPI driver"
Jagan Teki1d831b62018-03-14 18:46:44 +053054 default y if ARCH_AT91
Wenyou Yangda8ee982016-10-28 14:17:49 +080055 help
56 This enables driver for the Atmel SPI Controller, present on
Andy Shevchenko8cb5cdd2017-07-05 16:25:22 +030057 many AT91 (ARM) chips. This driver can be used to access
58 the SPI Flash, such as AT25DF321.
Wenyou Yangda8ee982016-10-28 14:17:49 +080059
Álvaro Fernández Rojas55d96ec2018-01-20 02:13:38 +010060config BCM63XX_HSSPI
61 bool "BCM63XX HSSPI driver"
62 depends on ARCH_BMIPS
63 help
64 Enable the BCM6328 HSSPI driver. This driver can be used to
65 access the SPI NOR flash on platforms embedding this Broadcom
66 SPI core.
67
Álvaro Fernández Rojascc243c62018-01-23 17:14:58 +010068config BCM63XX_SPI
69 bool "BCM6348 SPI driver"
70 depends on ARCH_BMIPS
71 help
72 Enable the BCM6348/BCM6358 SPI driver. This driver can be used to
73 access the SPI NOR flash on platforms embedding these Broadcom
74 SPI cores.
75
Thomas Fitzsimmons919646d2018-06-08 17:59:45 -040076config BCMSTB_SPI
77 bool "BCMSTB SPI driver"
78 help
79 Enable the Broadcom set-top box SPI driver. This driver can
80 be used to access the SPI flash on platforms embedding this
81 Broadcom SPI core.
82
Jagan Teki15a932c2015-06-27 22:37:00 +053083config CADENCE_QSPI
84 bool "Cadence QSPI driver"
85 help
86 Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
87 used to access the SPI NOR flash on platforms embedding this
88 Cadence IP core.
89
Angelo Dureghello72e9be32019-03-13 21:46:46 +010090config CF_SPI
91 bool "ColdFire SPI driver"
92 help
93 Enable the ColdFire SPI driver. This driver can be used on
94 some m68k SoCs.
95
Jagan Teki15a932c2015-06-27 22:37:00 +053096config DESIGNWARE_SPI
97 bool "Designware SPI driver"
98 help
99 Enable the Designware SPI driver. This driver can be used to
100 access the SPI NOR flash on platforms embedding this Designware
101 IP core.
102
Jagan Teki6274bf92015-06-27 15:32:19 +0530103config EXYNOS_SPI
104 bool "Samsung Exynos SPI driver"
105 help
106 Enable the Samsung Exynos SPI driver. This driver can be used to
107 access the SPI NOR flash on platforms embedding this Samsung
108 Exynos IP core.
109
Jagan Tekiae30c022015-06-27 14:17:06 +0530110config FSL_DSPI
111 bool "Freescale DSPI driver"
112 help
113 Enable the Freescale DSPI driver. This driver can be used to
114 access the SPI NOR flash and SPI Data flash on platforms embedding
115 this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
116 use this driver.
117
Jagan Teki3872b7c2015-06-27 15:43:27 +0530118config ICH_SPI
119 bool "Intel ICH SPI driver"
Vignesh R1f66bca2019-02-05 11:29:28 +0530120 imply SPI_FLASH_BAR
Jagan Teki3872b7c2015-06-27 15:43:27 +0530121 help
122 Enable the Intel ICH SPI driver. This driver can be used to
123 access the SPI NOR flash on platforms embedding this Intel
124 ICH IP core.
125
Neil Armstrong5c162172018-11-22 11:01:05 +0100126config MESON_SPIFC
127 bool "Amlogic Meson SPI Flash Controller driver"
128 depends on ARCH_MESON
129 help
130 Enable the Amlogic Meson SPI Flash Controller SPIFC) driver.
131 This driver can be used to access the SPI NOR flash chips on
132 Amlogic Meson SoCs.
133
Christophe Leroy847362b2018-11-21 08:51:57 +0000134config MPC8XX_SPI
135 bool "MPC8XX SPI Driver"
136 depends on MPC8xx
137 help
138 Enable support for SPI on MPC8XX
139
Jagan Teki52515d52019-04-29 01:58:53 +0530140config MPC8XXX_SPI
141 bool "MPC8XXX SPI Driver"
142 help
143 Enable support for SPI on the MPC8XXX PowerPC SoCs.
144
Stefan Roese8adb8cb2018-08-16 10:48:48 +0200145config MT7621_SPI
146 bool "MediaTek MT7621 SPI driver"
developer89f051b2019-04-30 11:13:58 +0800147 depends on SOC_MT7628
Stefan Roese8adb8cb2018-08-16 10:48:48 +0200148 help
149 Enable the MT7621 SPI driver. This driver can be used to access
150 the SPI NOR flash on platforms embedding this Ralink / MediaTek
151 SPI core, like MT7621/7628/7688.
152
developerd97a46e2018-10-12 15:01:06 +0800153config MTK_QSPI
154 bool "Mediatek QSPI driver"
Vignesh R1f66bca2019-02-05 11:29:28 +0530155 imply SPI_FLASH_BAR
developerd97a46e2018-10-12 15:01:06 +0800156 help
157 Enable the Mediatek QSPI driver. This driver can be
158 used to access the SPI NOR flash on platforms embedding this
159 Mediatek QSPI IP core.
160
Stefan Roese9ec1c782016-05-19 15:56:44 +0200161config MVEBU_A3700_SPI
162 bool "Marvell Armada 3700 SPI driver"
Marek Behún0afd9342018-04-24 17:21:26 +0200163 select CLK_ARMADA_3720
Stefan Roese9ec1c782016-05-19 15:56:44 +0200164 help
165 Enable the Marvell Armada 3700 SPI driver. This driver can be
166 used to access the SPI NOR flash on platforms embedding this
167 Marvell IP core.
168
Purna Chandra Mandalffa54422016-06-02 14:26:08 +0530169config PIC32_SPI
170 bool "Microchip PIC32 SPI driver"
171 depends on MACH_PIC32
172 help
173 Enable the Microchip PIC32 SPI driver. This driver can be used
174 to access the SPI NOR flash, MMC-over-SPI on platforms based on
175 Microchip PIC32 family devices.
176
Quentin Schulz3add62d2018-08-31 16:28:29 +0200177config PL022_SPI
178 bool "ARM AMBA PL022 SSP controller driver"
179 depends on ARM
180 help
181 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
182 controller. If you have an embedded system with an AMBA(R)
183 bus and a PL022 controller, say Y or M here.
184
Marek Vasut6ca967b2017-11-29 06:29:46 +0100185config RENESAS_RPC_SPI
186 bool "Renesas RPC SPI driver"
Marek Vasutf9db3b32019-05-04 18:52:33 +0200187 depends on RCAR_GEN3 || RZA1
Vignesh R1f66bca2019-02-05 11:29:28 +0530188 imply SPI_FLASH_BAR
Marek Vasut6ca967b2017-11-29 06:29:46 +0100189 help
190 Enable the Renesas RPC SPI driver, used to access SPI NOR flash
191 on Renesas RCar Gen3 SoCs. This uses driver model and requires a
192 device tree binding to operate.
193
Simon Glassd1c13772015-09-01 19:19:37 -0600194config ROCKCHIP_SPI
195 bool "Rockchip SPI driver"
196 help
197 Enable the Rockchip SPI driver, used to access SPI NOR flash and
198 other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
199 This uses driver model and requires a device tree binding to
200 operate.
201
Simon Glass4b322d32015-03-06 13:19:05 -0700202config SANDBOX_SPI
203 bool "Sandbox SPI driver"
204 depends on SANDBOX && DM
205 help
206 Enable SPI support for sandbox. This is an emulation of a real SPI
207 bus. Devices can be attached to the bus using the device tree
208 which specifies the driver to use. As an example, see this device
209 tree fragment from sandbox.dts. It shows that the SPI bus has a
210 single flash device on chip select 0 which is emulated by the driver
211 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
212
213 spi@0 {
214 #address-cells = <1>;
215 #size-cells = <0>;
216 reg = <0>;
217 compatible = "sandbox,spi";
218 cs-gpios = <0>, <&gpio_a 0>;
219 flash@0 {
220 reg = <0>;
221 compatible = "spansion,m25p16", "sandbox,spi-flash";
222 spi-max-frequency = <40000000>;
223 sandbox,filename = "spi.bin";
224 };
Jagan Teki15a932c2015-06-27 22:37:00 +0530225 };
Jagan Tekidd32f512015-06-27 04:41:11 +0530226
Jagan Teki7b68ef42019-02-27 20:02:13 +0530227config SPI_SUNXI
228 bool "Allwinner SoC SPI controllers"
229 help
230 Enable the Allwinner SoC SPi controller driver.
231
232 Same controller driver can reuse in all Allwinner SoC variants.
233
Michael Kurz337ff2a2017-01-22 16:04:30 +0100234config STM32_QSPI
235 bool "STM32F7 QSPI driver"
Patrice Chotardd43c4962019-04-30 16:09:18 +0200236 depends on STM32F4 || STM32F7 || ARCH_STM32MP
Michael Kurz337ff2a2017-01-22 16:04:30 +0100237 help
238 Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
239 used to access the SPI NOR flash chips on platforms embedding
240 this ST IP core.
241
Jagan Teki7977d662015-06-27 15:57:53 +0530242config TEGRA114_SPI
243 bool "nVidia Tegra114 SPI driver"
244 help
245 Enable the nVidia Tegra114 SPI driver. This driver can be used to
246 access the SPI NOR flash on platforms embedding this nVidia Tegra114
247 IP core.
248
249 This controller is different than the older SoCs SPI controller and
250 also register interface get changed with this controller.
251
Jagan Tekia900d402015-06-27 16:04:05 +0530252config TEGRA20_SFLASH
253 bool "nVidia Tegra20 Serial Flash controller driver"
254 help
255 Enable the nVidia Tegra20 Serial Flash controller driver. This driver
256 can be used to access the SPI NOR flash on platforms embedding this
257 nVidia Tegra20 IP core.
258
Jagan Teki271aa562015-06-27 16:07:54 +0530259config TEGRA20_SLINK
260 bool "nVidia Tegra20/Tegra30 SLINK driver"
261 help
262 Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
263 be used to access the SPI NOR flash on platforms embedding this
264 nVidia Tegra20/Tegra30 IP cores.
265
Tom Warren5fb0c842015-10-12 14:50:54 -0700266config TEGRA210_QSPI
267 bool "nVidia Tegra210 QSPI driver"
268 help
269 Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
270 be used to access SPI chips on platforms embedding this
271 NVIDIA Tegra210 IP core.
272
Vignesh Raghavendraf3603b82019-04-16 21:31:59 +0530273config TI_QSPI
274 bool "TI QSPI driver"
275 imply TI_EDMA3
276 help
277 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
278 This driver support spi flash single, quad and memory reads.
279
Jagan Tekicd70d7d2015-06-27 04:32:43 +0530280config XILINX_SPI
281 bool "Xilinx SPI driver"
Jagan Tekicd70d7d2015-06-27 04:32:43 +0530282 help
283 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
284 controller support 8 bit SPI transfers only, with or w/o FIFO.
285 For more info on Xilinx SPI Register Definitions and Overview
286 see driver file - drivers/spi/xilinx_spi.c
287
Jagan Tekicad526f2015-06-27 00:51:38 +0530288config ZYNQ_SPI
289 bool "Zynq SPI driver"
Michal Simek4b066a12018-08-22 14:55:27 +0200290 depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
Jagan Tekicad526f2015-06-27 00:51:38 +0530291 help
292 Enable the Zynq SPI driver. This driver can be used to
293 access the SPI NOR flash on platforms embedding this Zynq
294 SPI IP core.
Jagan Tekibfd3f8b2015-06-27 22:35:14 +0530295
Jagan Tekif2e1c412015-08-16 00:19:38 +0530296config ZYNQ_QSPI
297 bool "Zynq QSPI driver"
298 depends on ARCH_ZYNQ
Vignesh R1f66bca2019-02-05 11:29:28 +0530299 imply SPI_FLASH_BAR
Jagan Tekif2e1c412015-08-16 00:19:38 +0530300 help
301 Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
302 used to access the SPI NOR flash on platforms embedding this
303 Zynq QSPI IP core. This IP is used to connect the flash in
304 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
305
Siva Durga Prasad Paladugu76597382018-07-04 17:31:23 +0530306config ZYNQMP_GQSPI
307 bool "Configure ZynqMP Generic QSPI"
Michal Simek4b066a12018-08-22 14:55:27 +0200308 depends on ARCH_ZYNQMP || ARCH_VERSAL
Siva Durga Prasad Paladugu76597382018-07-04 17:31:23 +0530309 help
310 This option is used to enable ZynqMP QSPI controller driver which
311 is used to communicate with qspi flash devices.
312
Jagan Teki15a932c2015-06-27 22:37:00 +0530313endif # if DM_SPI
314
Peng Fan176ee212017-04-13 14:09:55 +0800315config SOFT_SPI
316 bool "Soft SPI driver"
317 help
318 Enable Soft SPI driver. This driver is to use GPIO simulate
319 the SPI protocol.
320
Lars Povlsenf01b7322019-01-08 10:38:33 +0100321config MSCC_BB_SPI
322 bool "MSCC bitbang SPI driver"
323 depends on SOC_VCOREIII
324 help
325 Enable MSCC bitbang SPI driver. This driver can be used on
326 MSCC SOCs.
327
Tuomas Tynkkynen4afde862018-02-07 02:42:23 +0200328config CF_SPI
329 bool "ColdFire SPI driver"
330 help
331 Enable the ColdFire SPI driver. This driver can be used on
332 some m68k SoCs.
333
Jagan Tekia0497a32015-06-27 15:21:36 +0530334config FSL_ESPI
335 bool "Freescale eSPI driver"
336 help
337 Enable the Freescale eSPI driver. This driver can be used to
338 access the SPI interface and SPI NOR flash on platforms embedding
339 this Freescale eSPI IP core.
340
Jagan Teki467c6292016-09-03 12:58:33 +0530341config FSL_QSPI
342 bool "Freescale QSPI driver"
Vignesh R1f66bca2019-02-05 11:29:28 +0530343 imply SPI_FLASH_BAR
Jagan Teki467c6292016-09-03 12:58:33 +0530344 help
345 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
346 used to access the SPI NOR flash on platforms embedding this
347 Freescale IP core.
348
Adam Ford19b336e2017-12-30 07:33:42 -0600349config DAVINCI_SPI
350 bool "Davinci & Keystone SPI driver"
351 depends on ARCH_DAVINCI || ARCH_KEYSTONE
352 help
353 Enable the Davinci SPI driver
354
Tuomas Tynkkynen1eadef82018-02-07 02:42:16 +0200355config SH_SPI
356 bool "SuperH SPI driver"
357 help
358 Enable the SuperH SPI controller driver. This driver can be used
359 on various SuperH SoCs, such as SH7757.
360
Tuomas Tynkkynenfa8fdfd2018-02-07 02:42:17 +0200361config SH_QSPI
362 bool "Renesas Quad SPI driver"
363 help
364 Enable the Renesas Quad SPI controller driver. This driver can be
365 used on Renesas SoCs.
366
Tuomas Tynkkynen13b5cb82018-02-07 02:42:22 +0200367config KIRKWOOD_SPI
368 bool "Marvell Kirkwood SPI Driver"
369 help
370 Enable support for SPI on various Marvell SoCs, such as
371 Kirkwood and Armada 375.
372
Tuomas Tynkkynen26212682018-02-07 02:42:21 +0200373config LPC32XX_SSP
374 bool "LPC32XX SPI Driver"
375 help
376 Enable support for SPI on LPC32xx
377
Tuomas Tynkkynend3958792018-02-07 02:42:19 +0200378config MXC_SPI
379 bool "MXC SPI Driver"
380 help
381 Enable the MXC SPI controller driver. This driver can be used
382 on various i.MX SoCs such as i.MX31/35/51/6/7.
383
Tuomas Tynkkynen3244de92018-02-07 02:42:18 +0200384config MXS_SPI
385 bool "MXS SPI Driver"
Jagan Teki9f727332019-05-29 17:01:32 -0400386 depends on DEPRECATED
Tuomas Tynkkynen3244de92018-02-07 02:42:18 +0200387 help
388 Enable the MXS SPI controller driver. This driver can be used
389 on the i.MX23 and i.MX28 SoCs.
390
Adam Ford03a333a2017-07-26 22:25:29 -0500391config OMAP3_SPI
392 bool "McSPI driver for OMAP"
393 help
394 SPI master controller for OMAP24XX and later Multichannel SPI
395 (McSPI). This driver be used to access SPI chips on platforms
396 embedding this OMAP3 McSPI IP core.
397
Adam Ford4e96ff82018-04-15 13:51:26 -0400398endif # menu "SPI Support"