blob: 516188ea88e141fb421f8ee45b973f21ed59f22d [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
Jagan Tekie4976af2015-06-27 22:37:00 +053019if DM_SPI
20
Boris Brezillond13f5b22018-08-16 17:30:11 +020021config SPI_MEM
22 bool "SPI memory extension"
23 help
24 Enable this option if you want to enable the SPI memory extension.
25 This extension is meant to simplify interaction with SPI memories
26 by providing an high-level interface to send memory-like commands.
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"
114 help
115 Enable the Intel ICH SPI driver. This driver can be used to
116 access the SPI NOR flash on platforms embedding this Intel
117 ICH IP core.
118
Stefan Roese5eee9de2018-08-16 10:48:48 +0200119config MT7621_SPI
120 bool "MediaTek MT7621 SPI driver"
121 depends on ARCH_MT7620
122 help
123 Enable the MT7621 SPI driver. This driver can be used to access
124 the SPI NOR flash on platforms embedding this Ralink / MediaTek
125 SPI core, like MT7621/7628/7688.
126
Stefan Roese3fda4ef2016-05-19 15:56:44 +0200127config MVEBU_A3700_SPI
128 bool "Marvell Armada 3700 SPI driver"
Marek Behúndbbd5bd2018-04-24 17:21:26 +0200129 select CLK_ARMADA_3720
Stefan Roese3fda4ef2016-05-19 15:56:44 +0200130 help
131 Enable the Marvell Armada 3700 SPI driver. This driver can be
132 used to access the SPI NOR flash on platforms embedding this
133 Marvell IP core.
134
Purna Chandra Mandale19b9002016-06-02 14:26:08 +0530135config PIC32_SPI
136 bool "Microchip PIC32 SPI driver"
137 depends on MACH_PIC32
138 help
139 Enable the Microchip PIC32 SPI driver. This driver can be used
140 to access the SPI NOR flash, MMC-over-SPI on platforms based on
141 Microchip PIC32 family devices.
142
Quentin Schulz8a4791f2018-08-31 16:28:29 +0200143config PL022_SPI
144 bool "ARM AMBA PL022 SSP controller driver"
145 depends on ARM
146 help
147 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
148 controller. If you have an embedded system with an AMBA(R)
149 bus and a PL022 controller, say Y or M here.
150
Marek Vasutfbebea22017-11-29 06:29:46 +0100151config RENESAS_RPC_SPI
152 bool "Renesas RPC SPI driver"
153 depends on RCAR_GEN3
154 help
155 Enable the Renesas RPC SPI driver, used to access SPI NOR flash
156 on Renesas RCar Gen3 SoCs. This uses driver model and requires a
157 device tree binding to operate.
158
Simon Glass1b2fd5b2015-09-01 19:19:37 -0600159config ROCKCHIP_SPI
160 bool "Rockchip SPI driver"
161 help
162 Enable the Rockchip SPI driver, used to access SPI NOR flash and
163 other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
164 This uses driver model and requires a device tree binding to
165 operate.
166
Simon Glass892cac72015-03-06 13:19:05 -0700167config SANDBOX_SPI
168 bool "Sandbox SPI driver"
169 depends on SANDBOX && DM
170 help
171 Enable SPI support for sandbox. This is an emulation of a real SPI
172 bus. Devices can be attached to the bus using the device tree
173 which specifies the driver to use. As an example, see this device
174 tree fragment from sandbox.dts. It shows that the SPI bus has a
175 single flash device on chip select 0 which is emulated by the driver
176 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
177
178 spi@0 {
179 #address-cells = <1>;
180 #size-cells = <0>;
181 reg = <0>;
182 compatible = "sandbox,spi";
183 cs-gpios = <0>, <&gpio_a 0>;
184 flash@0 {
185 reg = <0>;
186 compatible = "spansion,m25p16", "sandbox,spi-flash";
187 spi-max-frequency = <40000000>;
188 sandbox,filename = "spi.bin";
189 };
Jagan Tekie4976af2015-06-27 22:37:00 +0530190 };
Jagan Tekif924a202015-06-27 04:41:11 +0530191
Michael Kurzd4363ba2017-01-22 16:04:30 +0100192config STM32_QSPI
193 bool "STM32F7 QSPI driver"
194 depends on STM32F7
195 help
196 Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
197 used to access the SPI NOR flash chips on platforms embedding
198 this ST IP core.
199
Stefan Mavrodiev7f25d812018-02-06 15:14:33 +0200200config SUN4I_SPI
201 bool "Allwinner A10 SoCs SPI controller"
202 help
203 SPI driver for Allwinner sun4i, sun5i and sun7i SoCs
204
Jagan Teki5bf9a2d2015-06-27 15:57:53 +0530205config TEGRA114_SPI
206 bool "nVidia Tegra114 SPI driver"
207 help
208 Enable the nVidia Tegra114 SPI driver. This driver can be used to
209 access the SPI NOR flash on platforms embedding this nVidia Tegra114
210 IP core.
211
212 This controller is different than the older SoCs SPI controller and
213 also register interface get changed with this controller.
214
Jagan Teki2f3e6f82015-06-27 16:04:05 +0530215config TEGRA20_SFLASH
216 bool "nVidia Tegra20 Serial Flash controller driver"
217 help
218 Enable the nVidia Tegra20 Serial Flash controller driver. This driver
219 can be used to access the SPI NOR flash on platforms embedding this
220 nVidia Tegra20 IP core.
221
Jagan Teki44958302015-06-27 16:07:54 +0530222config TEGRA20_SLINK
223 bool "nVidia Tegra20/Tegra30 SLINK driver"
224 help
225 Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
226 be used to access the SPI NOR flash on platforms embedding this
227 nVidia Tegra20/Tegra30 IP cores.
228
Tom Warren4e675ff2015-10-12 14:50:54 -0700229config TEGRA210_QSPI
230 bool "nVidia Tegra210 QSPI driver"
231 help
232 Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
233 be used to access SPI chips on platforms embedding this
234 NVIDIA Tegra210 IP core.
235
Jagan Teki075143d2015-06-27 04:32:43 +0530236config XILINX_SPI
237 bool "Xilinx SPI driver"
Jagan Teki075143d2015-06-27 04:32:43 +0530238 help
239 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
240 controller support 8 bit SPI transfers only, with or w/o FIFO.
241 For more info on Xilinx SPI Register Definitions and Overview
242 see driver file - drivers/spi/xilinx_spi.c
243
Jagan Tekidf30a422015-06-27 00:51:38 +0530244config ZYNQ_SPI
245 bool "Zynq SPI driver"
Michal Simekec48b6c2018-08-22 14:55:27 +0200246 depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
Jagan Tekidf30a422015-06-27 00:51:38 +0530247 help
248 Enable the Zynq SPI driver. This driver can be used to
249 access the SPI NOR flash on platforms embedding this Zynq
250 SPI IP core.
Jagan Tekide823052015-06-27 22:35:14 +0530251
Jagan Teki78a025a2015-08-16 00:19:38 +0530252config ZYNQ_QSPI
253 bool "Zynq QSPI driver"
254 depends on ARCH_ZYNQ
255 help
256 Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
257 used to access the SPI NOR flash on platforms embedding this
258 Zynq QSPI IP core. This IP is used to connect the flash in
259 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
260
Siva Durga Prasad Paladugu22cca172018-07-04 17:31:23 +0530261config ZYNQMP_GQSPI
262 bool "Configure ZynqMP Generic QSPI"
Michal Simekec48b6c2018-08-22 14:55:27 +0200263 depends on ARCH_ZYNQMP || ARCH_VERSAL
Siva Durga Prasad Paladugu22cca172018-07-04 17:31:23 +0530264 help
265 This option is used to enable ZynqMP QSPI controller driver which
266 is used to communicate with qspi flash devices.
267
Jagan Tekie4976af2015-06-27 22:37:00 +0530268endif # if DM_SPI
269
Peng Fan41eb8ff2017-04-13 14:09:55 +0800270config SOFT_SPI
271 bool "Soft SPI driver"
272 help
273 Enable Soft SPI driver. This driver is to use GPIO simulate
274 the SPI protocol.
275
Tuomas Tynkkynenfbca0e62018-02-07 02:42:23 +0200276config CF_SPI
277 bool "ColdFire SPI driver"
278 help
279 Enable the ColdFire SPI driver. This driver can be used on
280 some m68k SoCs.
281
Jagan Teki3debffa2015-06-27 15:21:36 +0530282config FSL_ESPI
283 bool "Freescale eSPI driver"
284 help
285 Enable the Freescale eSPI driver. This driver can be used to
286 access the SPI interface and SPI NOR flash on platforms embedding
287 this Freescale eSPI IP core.
288
Jagan Teki21b1dd12016-09-03 12:58:33 +0530289config FSL_QSPI
290 bool "Freescale QSPI driver"
291 help
292 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
293 used to access the SPI NOR flash on platforms embedding this
294 Freescale IP core.
295
Adam Ford26410c12017-12-30 07:33:42 -0600296config DAVINCI_SPI
297 bool "Davinci & Keystone SPI driver"
298 depends on ARCH_DAVINCI || ARCH_KEYSTONE
299 help
300 Enable the Davinci SPI driver
301
Tuomas Tynkkynen95d38772018-02-07 02:42:16 +0200302config SH_SPI
303 bool "SuperH SPI driver"
304 help
305 Enable the SuperH SPI controller driver. This driver can be used
306 on various SuperH SoCs, such as SH7757.
307
Tuomas Tynkkynena5dfabe2018-02-07 02:42:17 +0200308config SH_QSPI
309 bool "Renesas Quad SPI driver"
310 help
311 Enable the Renesas Quad SPI controller driver. This driver can be
312 used on Renesas SoCs.
313
Jagan Tekie4976af2015-06-27 22:37:00 +0530314config TI_QSPI
315 bool "TI QSPI driver"
316 help
317 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
318 This driver support spi flash single, quad and memory reads.
319
Tuomas Tynkkynen4a942f42018-02-07 02:42:22 +0200320config KIRKWOOD_SPI
321 bool "Marvell Kirkwood SPI Driver"
322 help
323 Enable support for SPI on various Marvell SoCs, such as
324 Kirkwood and Armada 375.
325
Tuomas Tynkkynen2c4b0962018-02-07 02:42:21 +0200326config LPC32XX_SSP
327 bool "LPC32XX SPI Driver"
328 help
329 Enable support for SPI on LPC32xx
330
Christophe Leroyf88c4312017-07-06 10:33:25 +0200331config MPC8XX_SPI
332 bool "MPC8XX SPI Driver"
Christophe Leroyee1e6002018-03-16 17:20:41 +0100333 depends on MPC8xx
Christophe Leroyf88c4312017-07-06 10:33:25 +0200334 help
335 Enable support for SPI on MPC8XX
336
Tuomas Tynkkynenbbdf3862018-02-07 02:42:20 +0200337config MPC8XXX_SPI
338 bool "MPC8XXX SPI Driver"
339 help
340 Enable support for SPI on the MPC8XXX PowerPC SoCs.
341
Tuomas Tynkkynen60e54562018-02-07 02:42:19 +0200342config MXC_SPI
343 bool "MXC SPI Driver"
344 help
345 Enable the MXC SPI controller driver. This driver can be used
346 on various i.MX SoCs such as i.MX31/35/51/6/7.
347
Tuomas Tynkkynen7b819b52018-02-07 02:42:18 +0200348config MXS_SPI
349 bool "MXS SPI Driver"
350 help
351 Enable the MXS SPI controller driver. This driver can be used
352 on the i.MX23 and i.MX28 SoCs.
353
Adam Forda41e3e12017-07-26 22:25:29 -0500354config OMAP3_SPI
355 bool "McSPI driver for OMAP"
356 help
357 SPI master controller for OMAP24XX and later Multichannel SPI
358 (McSPI). This driver be used to access SPI chips on platforms
359 embedding this OMAP3 McSPI IP core.
360
Adam Fordf1b1f772018-04-15 13:51:26 -0400361endif # menu "SPI Support"