blob: 7d4d47da4b5a95777ee9f133cdc044613f662c9f [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
Thomas Chouc5899542015-10-14 08:33:34 +080021config ALTERA_SPI
22 bool "Altera SPI driver"
23 help
24 Enable the Altera SPI driver. This driver can be used to
25 access the SPI NOR flash on platforms embedding this Altera
26 IP core. Please find details on the "Embedded Peripherals IP
27 User Guide" of Altera.
28
Jagan Teki353dffb2018-03-07 10:33:33 +053029config ATCSPI200_SPI
30 bool "Andestech ATCSPI200 SPI driver"
31 help
32 Enable the Andestech ATCSPI200 SPI driver. This driver can be
33 used to access the SPI flash on AE3XX and AE250 platforms embedding
34 this Andestech IP core.
35
Wills Wangf5021482016-03-16 16:59:58 +080036config ATH79_SPI
37 bool "Atheros SPI driver"
38 depends on ARCH_ATH79
39 help
40 Enable the Atheros ar7xxx/ar9xxx SoC SPI driver, it was used
41 to access SPI NOR flash and other SPI peripherals. This driver
42 uses driver model and requires a device tree binding to operate.
43 please refer to doc/device-tree-bindings/spi/spi-ath79.txt.
44
Wenyou Yangda8ee982016-10-28 14:17:49 +080045config ATMEL_SPI
46 bool "Atmel SPI driver"
Jagan Teki1d831b62018-03-14 18:46:44 +053047 default y if ARCH_AT91
Wenyou Yangda8ee982016-10-28 14:17:49 +080048 help
49 This enables driver for the Atmel SPI Controller, present on
Andy Shevchenko8cb5cdd2017-07-05 16:25:22 +030050 many AT91 (ARM) chips. This driver can be used to access
51 the SPI Flash, such as AT25DF321.
Wenyou Yangda8ee982016-10-28 14:17:49 +080052
Álvaro Fernández Rojas55d96ec2018-01-20 02:13:38 +010053config BCM63XX_HSSPI
54 bool "BCM63XX HSSPI driver"
55 depends on ARCH_BMIPS
56 help
57 Enable the BCM6328 HSSPI driver. This driver can be used to
58 access the SPI NOR flash on platforms embedding this Broadcom
59 SPI core.
60
Álvaro Fernández Rojascc243c62018-01-23 17:14:58 +010061config BCM63XX_SPI
62 bool "BCM6348 SPI driver"
63 depends on ARCH_BMIPS
64 help
65 Enable the BCM6348/BCM6358 SPI driver. This driver can be used to
66 access the SPI NOR flash on platforms embedding these Broadcom
67 SPI cores.
68
Thomas Fitzsimmons919646d2018-06-08 17:59:45 -040069config BCMSTB_SPI
70 bool "BCMSTB SPI driver"
71 help
72 Enable the Broadcom set-top box SPI driver. This driver can
73 be used to access the SPI flash on platforms embedding this
74 Broadcom SPI core.
75
Jagan Teki15a932c2015-06-27 22:37:00 +053076config CADENCE_QSPI
77 bool "Cadence QSPI driver"
78 help
79 Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
80 used to access the SPI NOR flash on platforms embedding this
81 Cadence IP core.
82
83config DESIGNWARE_SPI
84 bool "Designware SPI driver"
85 help
86 Enable the Designware SPI driver. This driver can be used to
87 access the SPI NOR flash on platforms embedding this Designware
88 IP core.
89
Jagan Teki6274bf92015-06-27 15:32:19 +053090config EXYNOS_SPI
91 bool "Samsung Exynos SPI driver"
92 help
93 Enable the Samsung Exynos SPI driver. This driver can be used to
94 access the SPI NOR flash on platforms embedding this Samsung
95 Exynos IP core.
96
Jagan Tekiae30c022015-06-27 14:17:06 +053097config FSL_DSPI
98 bool "Freescale DSPI driver"
99 help
100 Enable the Freescale DSPI driver. This driver can be used to
101 access the SPI NOR flash and SPI Data flash on platforms embedding
102 this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
103 use this driver.
104
Jagan Teki3872b7c2015-06-27 15:43:27 +0530105config ICH_SPI
106 bool "Intel ICH SPI driver"
107 help
108 Enable the Intel ICH SPI driver. This driver can be used to
109 access the SPI NOR flash on platforms embedding this Intel
110 ICH IP core.
111
Stefan Roese9ec1c782016-05-19 15:56:44 +0200112config MVEBU_A3700_SPI
113 bool "Marvell Armada 3700 SPI driver"
Marek Behún0afd9342018-04-24 17:21:26 +0200114 select CLK_ARMADA_3720
Stefan Roese9ec1c782016-05-19 15:56:44 +0200115 help
116 Enable the Marvell Armada 3700 SPI driver. This driver can be
117 used to access the SPI NOR flash on platforms embedding this
118 Marvell IP core.
119
Purna Chandra Mandalffa54422016-06-02 14:26:08 +0530120config PIC32_SPI
121 bool "Microchip PIC32 SPI driver"
122 depends on MACH_PIC32
123 help
124 Enable the Microchip PIC32 SPI driver. This driver can be used
125 to access the SPI NOR flash, MMC-over-SPI on platforms based on
126 Microchip PIC32 family devices.
127
Quentin Schulz3add62d2018-08-31 16:28:29 +0200128config PL022_SPI
129 bool "ARM AMBA PL022 SSP controller driver"
130 depends on ARM
131 help
132 This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
133 controller. If you have an embedded system with an AMBA(R)
134 bus and a PL022 controller, say Y or M here.
135
Marek Vasut6ca967b2017-11-29 06:29:46 +0100136config RENESAS_RPC_SPI
137 bool "Renesas RPC SPI driver"
138 depends on RCAR_GEN3
139 help
140 Enable the Renesas RPC SPI driver, used to access SPI NOR flash
141 on Renesas RCar Gen3 SoCs. This uses driver model and requires a
142 device tree binding to operate.
143
Simon Glassd1c13772015-09-01 19:19:37 -0600144config ROCKCHIP_SPI
145 bool "Rockchip SPI driver"
146 help
147 Enable the Rockchip SPI driver, used to access SPI NOR flash and
148 other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
149 This uses driver model and requires a device tree binding to
150 operate.
151
Simon Glass4b322d32015-03-06 13:19:05 -0700152config SANDBOX_SPI
153 bool "Sandbox SPI driver"
154 depends on SANDBOX && DM
155 help
156 Enable SPI support for sandbox. This is an emulation of a real SPI
157 bus. Devices can be attached to the bus using the device tree
158 which specifies the driver to use. As an example, see this device
159 tree fragment from sandbox.dts. It shows that the SPI bus has a
160 single flash device on chip select 0 which is emulated by the driver
161 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
162
163 spi@0 {
164 #address-cells = <1>;
165 #size-cells = <0>;
166 reg = <0>;
167 compatible = "sandbox,spi";
168 cs-gpios = <0>, <&gpio_a 0>;
169 flash@0 {
170 reg = <0>;
171 compatible = "spansion,m25p16", "sandbox,spi-flash";
172 spi-max-frequency = <40000000>;
173 sandbox,filename = "spi.bin";
174 };
Jagan Teki15a932c2015-06-27 22:37:00 +0530175 };
Jagan Tekidd32f512015-06-27 04:41:11 +0530176
Michael Kurz337ff2a2017-01-22 16:04:30 +0100177config STM32_QSPI
178 bool "STM32F7 QSPI driver"
179 depends on STM32F7
180 help
181 Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
182 used to access the SPI NOR flash chips on platforms embedding
183 this ST IP core.
184
Stefan Mavrodiev5d716042018-02-06 15:14:33 +0200185config SUN4I_SPI
186 bool "Allwinner A10 SoCs SPI controller"
187 help
188 SPI driver for Allwinner sun4i, sun5i and sun7i SoCs
189
Jagan Teki7977d662015-06-27 15:57:53 +0530190config TEGRA114_SPI
191 bool "nVidia Tegra114 SPI driver"
192 help
193 Enable the nVidia Tegra114 SPI driver. This driver can be used to
194 access the SPI NOR flash on platforms embedding this nVidia Tegra114
195 IP core.
196
197 This controller is different than the older SoCs SPI controller and
198 also register interface get changed with this controller.
199
Jagan Tekia900d402015-06-27 16:04:05 +0530200config TEGRA20_SFLASH
201 bool "nVidia Tegra20 Serial Flash controller driver"
202 help
203 Enable the nVidia Tegra20 Serial Flash controller driver. This driver
204 can be used to access the SPI NOR flash on platforms embedding this
205 nVidia Tegra20 IP core.
206
Jagan Teki271aa562015-06-27 16:07:54 +0530207config TEGRA20_SLINK
208 bool "nVidia Tegra20/Tegra30 SLINK driver"
209 help
210 Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
211 be used to access the SPI NOR flash on platforms embedding this
212 nVidia Tegra20/Tegra30 IP cores.
213
Tom Warren5fb0c842015-10-12 14:50:54 -0700214config TEGRA210_QSPI
215 bool "nVidia Tegra210 QSPI driver"
216 help
217 Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
218 be used to access SPI chips on platforms embedding this
219 NVIDIA Tegra210 IP core.
220
Jagan Tekicd70d7d2015-06-27 04:32:43 +0530221config XILINX_SPI
222 bool "Xilinx SPI driver"
Jagan Tekicd70d7d2015-06-27 04:32:43 +0530223 help
224 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
225 controller support 8 bit SPI transfers only, with or w/o FIFO.
226 For more info on Xilinx SPI Register Definitions and Overview
227 see driver file - drivers/spi/xilinx_spi.c
228
Jagan Tekicad526f2015-06-27 00:51:38 +0530229config ZYNQ_SPI
230 bool "Zynq SPI driver"
Michal Simekf5a03712015-12-07 11:33:58 +0100231 depends on ARCH_ZYNQ || ARCH_ZYNQMP
Jagan Tekicad526f2015-06-27 00:51:38 +0530232 help
233 Enable the Zynq SPI driver. This driver can be used to
234 access the SPI NOR flash on platforms embedding this Zynq
235 SPI IP core.
Jagan Tekibfd3f8b2015-06-27 22:35:14 +0530236
Jagan Tekif2e1c412015-08-16 00:19:38 +0530237config ZYNQ_QSPI
238 bool "Zynq QSPI driver"
239 depends on ARCH_ZYNQ
240 help
241 Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
242 used to access the SPI NOR flash on platforms embedding this
243 Zynq QSPI IP core. This IP is used to connect the flash in
244 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
245
Siva Durga Prasad Paladugu76597382018-07-04 17:31:23 +0530246config ZYNQMP_GQSPI
247 bool "Configure ZynqMP Generic QSPI"
248 depends on ARCH_ZYNQMP
249 help
250 This option is used to enable ZynqMP QSPI controller driver which
251 is used to communicate with qspi flash devices.
252
Jagan Teki15a932c2015-06-27 22:37:00 +0530253endif # if DM_SPI
254
Peng Fan176ee212017-04-13 14:09:55 +0800255config SOFT_SPI
256 bool "Soft SPI driver"
257 help
258 Enable Soft SPI driver. This driver is to use GPIO simulate
259 the SPI protocol.
260
Tuomas Tynkkynen4afde862018-02-07 02:42:23 +0200261config CF_SPI
262 bool "ColdFire SPI driver"
263 help
264 Enable the ColdFire SPI driver. This driver can be used on
265 some m68k SoCs.
266
Jagan Tekia0497a32015-06-27 15:21:36 +0530267config FSL_ESPI
268 bool "Freescale eSPI driver"
269 help
270 Enable the Freescale eSPI driver. This driver can be used to
271 access the SPI interface and SPI NOR flash on platforms embedding
272 this Freescale eSPI IP core.
273
Jagan Teki467c6292016-09-03 12:58:33 +0530274config FSL_QSPI
275 bool "Freescale QSPI driver"
276 help
277 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
278 used to access the SPI NOR flash on platforms embedding this
279 Freescale IP core.
280
Adam Ford19b336e2017-12-30 07:33:42 -0600281config DAVINCI_SPI
282 bool "Davinci & Keystone SPI driver"
283 depends on ARCH_DAVINCI || ARCH_KEYSTONE
284 help
285 Enable the Davinci SPI driver
286
Tuomas Tynkkynen1eadef82018-02-07 02:42:16 +0200287config SH_SPI
288 bool "SuperH SPI driver"
289 help
290 Enable the SuperH SPI controller driver. This driver can be used
291 on various SuperH SoCs, such as SH7757.
292
Tuomas Tynkkynenfa8fdfd2018-02-07 02:42:17 +0200293config SH_QSPI
294 bool "Renesas Quad SPI driver"
295 help
296 Enable the Renesas Quad SPI controller driver. This driver can be
297 used on Renesas SoCs.
298
Jagan Teki15a932c2015-06-27 22:37:00 +0530299config TI_QSPI
300 bool "TI QSPI driver"
301 help
302 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
303 This driver support spi flash single, quad and memory reads.
304
Tuomas Tynkkynen13b5cb82018-02-07 02:42:22 +0200305config KIRKWOOD_SPI
306 bool "Marvell Kirkwood SPI Driver"
307 help
308 Enable support for SPI on various Marvell SoCs, such as
309 Kirkwood and Armada 375.
310
Tuomas Tynkkynen26212682018-02-07 02:42:21 +0200311config LPC32XX_SSP
312 bool "LPC32XX SPI Driver"
313 help
314 Enable support for SPI on LPC32xx
315
Christophe Leroy8c3f1222017-07-06 10:33:25 +0200316config MPC8XX_SPI
317 bool "MPC8XX SPI Driver"
Christophe Leroyb3510fb2018-03-16 17:20:41 +0100318 depends on MPC8xx
Christophe Leroy8c3f1222017-07-06 10:33:25 +0200319 help
320 Enable support for SPI on MPC8XX
321
Tuomas Tynkkynend3318912018-02-07 02:42:20 +0200322config MPC8XXX_SPI
323 bool "MPC8XXX SPI Driver"
324 help
325 Enable support for SPI on the MPC8XXX PowerPC SoCs.
326
Tuomas Tynkkynend3958792018-02-07 02:42:19 +0200327config MXC_SPI
328 bool "MXC SPI Driver"
329 help
330 Enable the MXC SPI controller driver. This driver can be used
331 on various i.MX SoCs such as i.MX31/35/51/6/7.
332
Tuomas Tynkkynen3244de92018-02-07 02:42:18 +0200333config MXS_SPI
334 bool "MXS SPI Driver"
335 help
336 Enable the MXS SPI controller driver. This driver can be used
337 on the i.MX23 and i.MX28 SoCs.
338
Adam Ford03a333a2017-07-26 22:25:29 -0500339config OMAP3_SPI
340 bool "McSPI driver for OMAP"
341 help
342 SPI master controller for OMAP24XX and later Multichannel SPI
343 (McSPI). This driver be used to access SPI chips on platforms
344 embedding this OMAP3 McSPI IP core.
345
Adam Ford4e96ff82018-04-15 13:51:26 -0400346endif # menu "SPI Support"