blob: 196767a3f6c04383056a60b6c2940a338066e135 [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
Jagan Teki15a932c2015-06-27 22:37:00 +053019if DM_SPI
20
Boris Brezillon32473fe2018-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 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
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 Teki6274bf92015-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 Tekiae30c022015-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 Teki3872b7c2015-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 Roese9ec1c782016-05-19 15:56:44 +0200119config MVEBU_A3700_SPI
120 bool "Marvell Armada 3700 SPI driver"
Marek Behún0afd9342018-04-24 17:21:26 +0200121 select CLK_ARMADA_3720
Stefan Roese9ec1c782016-05-19 15:56:44 +0200122 help
123 Enable the Marvell Armada 3700 SPI driver. This driver can be
124 used to access the SPI NOR flash on platforms embedding this
125 Marvell IP core.
126
Purna Chandra Mandalffa54422016-06-02 14:26:08 +0530127config PIC32_SPI
128 bool "Microchip PIC32 SPI driver"
129 depends on MACH_PIC32
130 help
131 Enable the Microchip PIC32 SPI driver. This driver can be used
132 to access the SPI NOR flash, MMC-over-SPI on platforms based on
133 Microchip PIC32 family devices.
134
Quentin Schulz3add62d2018-08-31 16:28:29 +0200135config PL022_SPI
136 bool "ARM AMBA PL022 SSP controller driver"
137 depends on ARM
138 help
139 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
140 controller. If you have an embedded system with an AMBA(R)
141 bus and a PL022 controller, say Y or M here.
142
Marek Vasut6ca967b2017-11-29 06:29:46 +0100143config RENESAS_RPC_SPI
144 bool "Renesas RPC SPI driver"
145 depends on RCAR_GEN3
146 help
147 Enable the Renesas RPC SPI driver, used to access SPI NOR flash
148 on Renesas RCar Gen3 SoCs. This uses driver model and requires a
149 device tree binding to operate.
150
Simon Glassd1c13772015-09-01 19:19:37 -0600151config ROCKCHIP_SPI
152 bool "Rockchip SPI driver"
153 help
154 Enable the Rockchip SPI driver, used to access SPI NOR flash and
155 other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
156 This uses driver model and requires a device tree binding to
157 operate.
158
Simon Glass4b322d32015-03-06 13:19:05 -0700159config SANDBOX_SPI
160 bool "Sandbox SPI driver"
161 depends on SANDBOX && DM
162 help
163 Enable SPI support for sandbox. This is an emulation of a real SPI
164 bus. Devices can be attached to the bus using the device tree
165 which specifies the driver to use. As an example, see this device
166 tree fragment from sandbox.dts. It shows that the SPI bus has a
167 single flash device on chip select 0 which is emulated by the driver
168 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
169
170 spi@0 {
171 #address-cells = <1>;
172 #size-cells = <0>;
173 reg = <0>;
174 compatible = "sandbox,spi";
175 cs-gpios = <0>, <&gpio_a 0>;
176 flash@0 {
177 reg = <0>;
178 compatible = "spansion,m25p16", "sandbox,spi-flash";
179 spi-max-frequency = <40000000>;
180 sandbox,filename = "spi.bin";
181 };
Jagan Teki15a932c2015-06-27 22:37:00 +0530182 };
Jagan Tekidd32f512015-06-27 04:41:11 +0530183
Michael Kurz337ff2a2017-01-22 16:04:30 +0100184config STM32_QSPI
185 bool "STM32F7 QSPI driver"
186 depends on STM32F7
187 help
188 Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
189 used to access the SPI NOR flash chips on platforms embedding
190 this ST IP core.
191
Stefan Mavrodiev5d716042018-02-06 15:14:33 +0200192config SUN4I_SPI
193 bool "Allwinner A10 SoCs SPI controller"
194 help
195 SPI driver for Allwinner sun4i, sun5i and sun7i SoCs
196
Jagan Teki7977d662015-06-27 15:57:53 +0530197config TEGRA114_SPI
198 bool "nVidia Tegra114 SPI driver"
199 help
200 Enable the nVidia Tegra114 SPI driver. This driver can be used to
201 access the SPI NOR flash on platforms embedding this nVidia Tegra114
202 IP core.
203
204 This controller is different than the older SoCs SPI controller and
205 also register interface get changed with this controller.
206
Jagan Tekia900d402015-06-27 16:04:05 +0530207config TEGRA20_SFLASH
208 bool "nVidia Tegra20 Serial Flash controller driver"
209 help
210 Enable the nVidia Tegra20 Serial Flash controller driver. This driver
211 can be used to access the SPI NOR flash on platforms embedding this
212 nVidia Tegra20 IP core.
213
Jagan Teki271aa562015-06-27 16:07:54 +0530214config TEGRA20_SLINK
215 bool "nVidia Tegra20/Tegra30 SLINK driver"
216 help
217 Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
218 be used to access the SPI NOR flash on platforms embedding this
219 nVidia Tegra20/Tegra30 IP cores.
220
Tom Warren5fb0c842015-10-12 14:50:54 -0700221config TEGRA210_QSPI
222 bool "nVidia Tegra210 QSPI driver"
223 help
224 Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
225 be used to access SPI chips on platforms embedding this
226 NVIDIA Tegra210 IP core.
227
Jagan Tekicd70d7d2015-06-27 04:32:43 +0530228config XILINX_SPI
229 bool "Xilinx SPI driver"
Jagan Tekicd70d7d2015-06-27 04:32:43 +0530230 help
231 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
232 controller support 8 bit SPI transfers only, with or w/o FIFO.
233 For more info on Xilinx SPI Register Definitions and Overview
234 see driver file - drivers/spi/xilinx_spi.c
235
Jagan Tekicad526f2015-06-27 00:51:38 +0530236config ZYNQ_SPI
237 bool "Zynq SPI driver"
Michal Simekf5a03712015-12-07 11:33:58 +0100238 depends on ARCH_ZYNQ || ARCH_ZYNQMP
Jagan Tekicad526f2015-06-27 00:51:38 +0530239 help
240 Enable the Zynq SPI driver. This driver can be used to
241 access the SPI NOR flash on platforms embedding this Zynq
242 SPI IP core.
Jagan Tekibfd3f8b2015-06-27 22:35:14 +0530243
Jagan Tekif2e1c412015-08-16 00:19:38 +0530244config ZYNQ_QSPI
245 bool "Zynq QSPI driver"
246 depends on ARCH_ZYNQ
247 help
248 Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
249 used to access the SPI NOR flash on platforms embedding this
250 Zynq QSPI IP core. This IP is used to connect the flash in
251 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
252
Siva Durga Prasad Paladugu76597382018-07-04 17:31:23 +0530253config ZYNQMP_GQSPI
254 bool "Configure ZynqMP Generic QSPI"
255 depends on ARCH_ZYNQMP
256 help
257 This option is used to enable ZynqMP QSPI controller driver which
258 is used to communicate with qspi flash devices.
259
Jagan Teki15a932c2015-06-27 22:37:00 +0530260endif # if DM_SPI
261
Peng Fan176ee212017-04-13 14:09:55 +0800262config SOFT_SPI
263 bool "Soft SPI driver"
264 help
265 Enable Soft SPI driver. This driver is to use GPIO simulate
266 the SPI protocol.
267
Tuomas Tynkkynen4afde862018-02-07 02:42:23 +0200268config CF_SPI
269 bool "ColdFire SPI driver"
270 help
271 Enable the ColdFire SPI driver. This driver can be used on
272 some m68k SoCs.
273
Jagan Tekia0497a32015-06-27 15:21:36 +0530274config FSL_ESPI
275 bool "Freescale eSPI driver"
276 help
277 Enable the Freescale eSPI driver. This driver can be used to
278 access the SPI interface and SPI NOR flash on platforms embedding
279 this Freescale eSPI IP core.
280
Jagan Teki467c6292016-09-03 12:58:33 +0530281config FSL_QSPI
282 bool "Freescale QSPI driver"
283 help
284 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
285 used to access the SPI NOR flash on platforms embedding this
286 Freescale IP core.
287
Adam Ford19b336e2017-12-30 07:33:42 -0600288config DAVINCI_SPI
289 bool "Davinci & Keystone SPI driver"
290 depends on ARCH_DAVINCI || ARCH_KEYSTONE
291 help
292 Enable the Davinci SPI driver
293
Tuomas Tynkkynen1eadef82018-02-07 02:42:16 +0200294config SH_SPI
295 bool "SuperH SPI driver"
296 help
297 Enable the SuperH SPI controller driver. This driver can be used
298 on various SuperH SoCs, such as SH7757.
299
Tuomas Tynkkynenfa8fdfd2018-02-07 02:42:17 +0200300config SH_QSPI
301 bool "Renesas Quad SPI driver"
302 help
303 Enable the Renesas Quad SPI controller driver. This driver can be
304 used on Renesas SoCs.
305
Jagan Teki15a932c2015-06-27 22:37:00 +0530306config TI_QSPI
307 bool "TI QSPI driver"
308 help
309 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
310 This driver support spi flash single, quad and memory reads.
311
Tuomas Tynkkynen13b5cb82018-02-07 02:42:22 +0200312config KIRKWOOD_SPI
313 bool "Marvell Kirkwood SPI Driver"
314 help
315 Enable support for SPI on various Marvell SoCs, such as
316 Kirkwood and Armada 375.
317
Tuomas Tynkkynen26212682018-02-07 02:42:21 +0200318config LPC32XX_SSP
319 bool "LPC32XX SPI Driver"
320 help
321 Enable support for SPI on LPC32xx
322
Christophe Leroy8c3f1222017-07-06 10:33:25 +0200323config MPC8XX_SPI
324 bool "MPC8XX SPI Driver"
Christophe Leroyb3510fb2018-03-16 17:20:41 +0100325 depends on MPC8xx
Christophe Leroy8c3f1222017-07-06 10:33:25 +0200326 help
327 Enable support for SPI on MPC8XX
328
Tuomas Tynkkynend3318912018-02-07 02:42:20 +0200329config MPC8XXX_SPI
330 bool "MPC8XXX SPI Driver"
331 help
332 Enable support for SPI on the MPC8XXX PowerPC SoCs.
333
Tuomas Tynkkynend3958792018-02-07 02:42:19 +0200334config MXC_SPI
335 bool "MXC SPI Driver"
336 help
337 Enable the MXC SPI controller driver. This driver can be used
338 on various i.MX SoCs such as i.MX31/35/51/6/7.
339
Tuomas Tynkkynen3244de92018-02-07 02:42:18 +0200340config MXS_SPI
341 bool "MXS SPI Driver"
342 help
343 Enable the MXS SPI controller driver. This driver can be used
344 on the i.MX23 and i.MX28 SoCs.
345
Adam Ford03a333a2017-07-26 22:25:29 -0500346config OMAP3_SPI
347 bool "McSPI driver for OMAP"
348 help
349 SPI master controller for OMAP24XX and later Multichannel SPI
350 (McSPI). This driver be used to access SPI chips on platforms
351 embedding this OMAP3 McSPI IP core.
352
Adam Ford4e96ff82018-04-15 13:51:26 -0400353endif # menu "SPI Support"