blob: 098372e0932408779194a10addb1553d2abe6545 [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
Wenyou Yang0eafd4b2016-10-28 14:17:49 +080052config ATMEL_SPI
53 bool "Atmel SPI driver"
Jagan Teki89d4fc12018-03-14 18:46:44 +053054 default y if ARCH_AT91
Wenyou Yang0eafd4b2016-10-28 14:17:49 +080055 help
56 This enables driver for the Atmel SPI Controller, present on
Andy Shevchenkodaab59a2017-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 Yang0eafd4b2016-10-28 14:17:49 +080059
Álvaro Fernández Rojas29cc4362018-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 Rojas5ac07d22018-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 Fitzsimmons894c3ad2018-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 Tekie4976af2015-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
90config DESIGNWARE_SPI
91 bool "Designware SPI driver"
92 help
93 Enable the Designware SPI driver. This driver can be used to
94 access the SPI NOR flash on platforms embedding this Designware
95 IP core.
96
Jagan Tekic354eee2015-06-27 15:32:19 +053097config EXYNOS_SPI
98 bool "Samsung Exynos SPI driver"
99 help
100 Enable the Samsung Exynos SPI driver. This driver can be used to
101 access the SPI NOR flash on platforms embedding this Samsung
102 Exynos IP core.
103
Jagan Teki94ea3082015-06-27 14:17:06 +0530104config FSL_DSPI
105 bool "Freescale DSPI driver"
106 help
107 Enable the Freescale DSPI driver. This driver can be used to
108 access the SPI NOR flash and SPI Data flash on platforms embedding
109 this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
110 use this driver.
111
Jagan Teki45636012015-06-27 15:43:27 +0530112config ICH_SPI
113 bool "Intel ICH SPI driver"
Vignesh R6d825172019-02-05 11:29:28 +0530114 imply SPI_FLASH_BAR
Jagan Teki45636012015-06-27 15:43:27 +0530115 help
116 Enable the Intel ICH SPI driver. This driver can be used to
117 access the SPI NOR flash on platforms embedding this Intel
118 ICH IP core.
119
Neil Armstrong9d265062018-11-22 11:01:05 +0100120config MESON_SPIFC
121 bool "Amlogic Meson SPI Flash Controller driver"
122 depends on ARCH_MESON
123 help
124 Enable the Amlogic Meson SPI Flash Controller SPIFC) driver.
125 This driver can be used to access the SPI NOR flash chips on
126 Amlogic Meson SoCs.
127
Christophe Leroyf34d0312018-11-21 08:51:57 +0000128config MPC8XX_SPI
129 bool "MPC8XX SPI Driver"
130 depends on MPC8xx
131 help
132 Enable support for SPI on MPC8XX
133
Stefan Roese5eee9de2018-08-16 10:48:48 +0200134config MT7621_SPI
135 bool "MediaTek MT7621 SPI driver"
136 depends on ARCH_MT7620
137 help
138 Enable the MT7621 SPI driver. This driver can be used to access
139 the SPI NOR flash on platforms embedding this Ralink / MediaTek
140 SPI core, like MT7621/7628/7688.
141
Guochun Mao052cafd2018-10-12 15:01:06 +0800142config MTK_QSPI
143 bool "Mediatek QSPI driver"
Vignesh R6d825172019-02-05 11:29:28 +0530144 imply SPI_FLASH_BAR
Guochun Mao052cafd2018-10-12 15:01:06 +0800145 help
146 Enable the Mediatek QSPI driver. This driver can be
147 used to access the SPI NOR flash on platforms embedding this
148 Mediatek QSPI IP core.
149
Stefan Roese3fda4ef2016-05-19 15:56:44 +0200150config MVEBU_A3700_SPI
151 bool "Marvell Armada 3700 SPI driver"
Marek Behúndbbd5bd2018-04-24 17:21:26 +0200152 select CLK_ARMADA_3720
Stefan Roese3fda4ef2016-05-19 15:56:44 +0200153 help
154 Enable the Marvell Armada 3700 SPI driver. This driver can be
155 used to access the SPI NOR flash on platforms embedding this
156 Marvell IP core.
157
Purna Chandra Mandale19b9002016-06-02 14:26:08 +0530158config PIC32_SPI
159 bool "Microchip PIC32 SPI driver"
160 depends on MACH_PIC32
161 help
162 Enable the Microchip PIC32 SPI driver. This driver can be used
163 to access the SPI NOR flash, MMC-over-SPI on platforms based on
164 Microchip PIC32 family devices.
165
Quentin Schulz8a4791f2018-08-31 16:28:29 +0200166config PL022_SPI
167 bool "ARM AMBA PL022 SSP controller driver"
168 depends on ARM
169 help
170 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
171 controller. If you have an embedded system with an AMBA(R)
172 bus and a PL022 controller, say Y or M here.
173
Marek Vasutfbebea22017-11-29 06:29:46 +0100174config RENESAS_RPC_SPI
175 bool "Renesas RPC SPI driver"
176 depends on RCAR_GEN3
Vignesh R6d825172019-02-05 11:29:28 +0530177 imply SPI_FLASH_BAR
Marek Vasutfbebea22017-11-29 06:29:46 +0100178 help
179 Enable the Renesas RPC SPI driver, used to access SPI NOR flash
180 on Renesas RCar Gen3 SoCs. This uses driver model and requires a
181 device tree binding to operate.
182
Simon Glass1b2fd5b2015-09-01 19:19:37 -0600183config ROCKCHIP_SPI
184 bool "Rockchip SPI driver"
185 help
186 Enable the Rockchip SPI driver, used to access SPI NOR flash and
187 other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
188 This uses driver model and requires a device tree binding to
189 operate.
190
Simon Glass892cac72015-03-06 13:19:05 -0700191config SANDBOX_SPI
192 bool "Sandbox SPI driver"
193 depends on SANDBOX && DM
194 help
195 Enable SPI support for sandbox. This is an emulation of a real SPI
196 bus. Devices can be attached to the bus using the device tree
197 which specifies the driver to use. As an example, see this device
198 tree fragment from sandbox.dts. It shows that the SPI bus has a
199 single flash device on chip select 0 which is emulated by the driver
200 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
201
202 spi@0 {
203 #address-cells = <1>;
204 #size-cells = <0>;
205 reg = <0>;
206 compatible = "sandbox,spi";
207 cs-gpios = <0>, <&gpio_a 0>;
208 flash@0 {
209 reg = <0>;
210 compatible = "spansion,m25p16", "sandbox,spi-flash";
211 spi-max-frequency = <40000000>;
212 sandbox,filename = "spi.bin";
213 };
Jagan Tekie4976af2015-06-27 22:37:00 +0530214 };
Jagan Tekif924a202015-06-27 04:41:11 +0530215
Jagan Tekia51cd542019-02-27 20:02:13 +0530216config SPI_SUNXI
217 bool "Allwinner SoC SPI controllers"
218 help
219 Enable the Allwinner SoC SPi controller driver.
220
221 Same controller driver can reuse in all Allwinner SoC variants.
222
Michael Kurzd4363ba2017-01-22 16:04:30 +0100223config STM32_QSPI
224 bool "STM32F7 QSPI driver"
225 depends on STM32F7
Vignesh R6d825172019-02-05 11:29:28 +0530226 imply SPI_FLASH_BAR
Michael Kurzd4363ba2017-01-22 16:04:30 +0100227 help
228 Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
229 used to access the SPI NOR flash chips on platforms embedding
230 this ST IP core.
231
Jagan Teki5bf9a2d2015-06-27 15:57:53 +0530232config TEGRA114_SPI
233 bool "nVidia Tegra114 SPI driver"
234 help
235 Enable the nVidia Tegra114 SPI driver. This driver can be used to
236 access the SPI NOR flash on platforms embedding this nVidia Tegra114
237 IP core.
238
239 This controller is different than the older SoCs SPI controller and
240 also register interface get changed with this controller.
241
Jagan Teki2f3e6f82015-06-27 16:04:05 +0530242config TEGRA20_SFLASH
243 bool "nVidia Tegra20 Serial Flash controller driver"
244 help
245 Enable the nVidia Tegra20 Serial Flash controller driver. This driver
246 can be used to access the SPI NOR flash on platforms embedding this
247 nVidia Tegra20 IP core.
248
Jagan Teki44958302015-06-27 16:07:54 +0530249config TEGRA20_SLINK
250 bool "nVidia Tegra20/Tegra30 SLINK driver"
251 help
252 Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
253 be used to access the SPI NOR flash on platforms embedding this
254 nVidia Tegra20/Tegra30 IP cores.
255
Tom Warren4e675ff2015-10-12 14:50:54 -0700256config TEGRA210_QSPI
257 bool "nVidia Tegra210 QSPI driver"
258 help
259 Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
260 be used to access SPI chips on platforms embedding this
261 NVIDIA Tegra210 IP core.
262
Jagan Teki075143d2015-06-27 04:32:43 +0530263config XILINX_SPI
264 bool "Xilinx SPI driver"
Jagan Teki075143d2015-06-27 04:32:43 +0530265 help
266 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
267 controller support 8 bit SPI transfers only, with or w/o FIFO.
268 For more info on Xilinx SPI Register Definitions and Overview
269 see driver file - drivers/spi/xilinx_spi.c
270
Jagan Tekidf30a422015-06-27 00:51:38 +0530271config ZYNQ_SPI
272 bool "Zynq SPI driver"
Michal Simekec48b6c2018-08-22 14:55:27 +0200273 depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
Jagan Tekidf30a422015-06-27 00:51:38 +0530274 help
275 Enable the Zynq SPI driver. This driver can be used to
276 access the SPI NOR flash on platforms embedding this Zynq
277 SPI IP core.
Jagan Tekide823052015-06-27 22:35:14 +0530278
Jagan Teki78a025a2015-08-16 00:19:38 +0530279config ZYNQ_QSPI
280 bool "Zynq QSPI driver"
281 depends on ARCH_ZYNQ
Vignesh R6d825172019-02-05 11:29:28 +0530282 imply SPI_FLASH_BAR
Jagan Teki78a025a2015-08-16 00:19:38 +0530283 help
284 Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
285 used to access the SPI NOR flash on platforms embedding this
286 Zynq QSPI IP core. This IP is used to connect the flash in
287 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
288
Siva Durga Prasad Paladugu22cca172018-07-04 17:31:23 +0530289config ZYNQMP_GQSPI
290 bool "Configure ZynqMP Generic QSPI"
Michal Simekec48b6c2018-08-22 14:55:27 +0200291 depends on ARCH_ZYNQMP || ARCH_VERSAL
Siva Durga Prasad Paladugu22cca172018-07-04 17:31:23 +0530292 help
293 This option is used to enable ZynqMP QSPI controller driver which
294 is used to communicate with qspi flash devices.
295
Jagan Tekie4976af2015-06-27 22:37:00 +0530296endif # if DM_SPI
297
Peng Fan41eb8ff2017-04-13 14:09:55 +0800298config SOFT_SPI
299 bool "Soft SPI driver"
300 help
301 Enable Soft SPI driver. This driver is to use GPIO simulate
302 the SPI protocol.
303
Lars Povlsenfd6e0b02019-01-08 10:38:33 +0100304config MSCC_BB_SPI
305 bool "MSCC bitbang SPI driver"
306 depends on SOC_VCOREIII
307 help
308 Enable MSCC bitbang SPI driver. This driver can be used on
309 MSCC SOCs.
310
Tuomas Tynkkynenfbca0e62018-02-07 02:42:23 +0200311config CF_SPI
312 bool "ColdFire SPI driver"
313 help
314 Enable the ColdFire SPI driver. This driver can be used on
315 some m68k SoCs.
316
Jagan Teki3debffa2015-06-27 15:21:36 +0530317config FSL_ESPI
318 bool "Freescale eSPI driver"
319 help
320 Enable the Freescale eSPI driver. This driver can be used to
321 access the SPI interface and SPI NOR flash on platforms embedding
322 this Freescale eSPI IP core.
323
Jagan Teki21b1dd12016-09-03 12:58:33 +0530324config FSL_QSPI
325 bool "Freescale QSPI driver"
Vignesh R6d825172019-02-05 11:29:28 +0530326 imply SPI_FLASH_BAR
Jagan Teki21b1dd12016-09-03 12:58:33 +0530327 help
328 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
329 used to access the SPI NOR flash on platforms embedding this
330 Freescale IP core.
331
Adam Ford26410c12017-12-30 07:33:42 -0600332config DAVINCI_SPI
333 bool "Davinci & Keystone SPI driver"
334 depends on ARCH_DAVINCI || ARCH_KEYSTONE
335 help
336 Enable the Davinci SPI driver
337
Tuomas Tynkkynen95d38772018-02-07 02:42:16 +0200338config SH_SPI
339 bool "SuperH SPI driver"
340 help
341 Enable the SuperH SPI controller driver. This driver can be used
342 on various SuperH SoCs, such as SH7757.
343
Tuomas Tynkkynena5dfabe2018-02-07 02:42:17 +0200344config SH_QSPI
345 bool "Renesas Quad SPI driver"
346 help
347 Enable the Renesas Quad SPI controller driver. This driver can be
348 used on Renesas SoCs.
349
Jagan Tekie4976af2015-06-27 22:37:00 +0530350config TI_QSPI
351 bool "TI QSPI driver"
352 help
353 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
354 This driver support spi flash single, quad and memory reads.
355
Tuomas Tynkkynen4a942f42018-02-07 02:42:22 +0200356config KIRKWOOD_SPI
357 bool "Marvell Kirkwood SPI Driver"
358 help
359 Enable support for SPI on various Marvell SoCs, such as
360 Kirkwood and Armada 375.
361
Tuomas Tynkkynen2c4b0962018-02-07 02:42:21 +0200362config LPC32XX_SSP
363 bool "LPC32XX SPI Driver"
364 help
365 Enable support for SPI on LPC32xx
366
Tuomas Tynkkynenbbdf3862018-02-07 02:42:20 +0200367config MPC8XXX_SPI
368 bool "MPC8XXX SPI Driver"
369 help
370 Enable support for SPI on the MPC8XXX PowerPC SoCs.
371
Tuomas Tynkkynen60e54562018-02-07 02:42:19 +0200372config MXC_SPI
373 bool "MXC SPI Driver"
374 help
375 Enable the MXC SPI controller driver. This driver can be used
376 on various i.MX SoCs such as i.MX31/35/51/6/7.
377
Tuomas Tynkkynen7b819b52018-02-07 02:42:18 +0200378config MXS_SPI
379 bool "MXS SPI Driver"
380 help
381 Enable the MXS SPI controller driver. This driver can be used
382 on the i.MX23 and i.MX28 SoCs.
383
Adam Forda41e3e12017-07-26 22:25:29 -0500384config OMAP3_SPI
385 bool "McSPI driver for OMAP"
386 help
387 SPI master controller for OMAP24XX and later Multichannel SPI
388 (McSPI). This driver be used to access SPI chips on platforms
389 embedding this OMAP3 McSPI IP core.
390
Adam Fordf1b1f772018-04-15 13:51:26 -0400391endif # menu "SPI Support"