spi: Add SiFive SPI driver
[platform/kernel/u-boot.git] / drivers / spi / Kconfig
1 menuconfig SPI
2         bool "SPI Support"
3
4 if SPI
5
6 config DM_SPI
7         bool "Enable Driver Model for SPI drivers"
8         depends on DM
9         help
10           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.
18
19 config 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
26 if DM_SPI
27
28 config 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
36 config 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
43 config 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
52 config ATMEL_QSPI
53         bool "Atmel Quad SPI Controller"
54         depends on ARCH_AT91
55         help
56           Enable the Atmel Quad SPI controller in master mode. This driver
57           does not support generic SPI. The implementation supports only the
58           spi-mem interface.
59
60 config ATMEL_SPI
61         bool "Atmel SPI driver"
62         default y if ARCH_AT91
63         help
64           This enables driver for the Atmel SPI Controller, present on
65           many AT91 (ARM) chips. This driver can be used to access
66           the SPI Flash, such as AT25DF321.
67
68 config BCM63XX_HSSPI
69         bool "BCM63XX HSSPI driver"
70         depends on ARCH_BMIPS
71         help
72           Enable the BCM6328 HSSPI driver. This driver can be used to
73           access the SPI NOR flash on platforms embedding this Broadcom
74           SPI core.
75
76 config BCM63XX_SPI
77         bool "BCM6348 SPI driver"
78         depends on ARCH_BMIPS
79         help
80           Enable the BCM6348/BCM6358 SPI driver. This driver can be used to
81           access the SPI NOR flash on platforms embedding these Broadcom
82           SPI cores.
83
84 config BCMSTB_SPI
85         bool "BCMSTB SPI driver"
86         help
87           Enable the Broadcom set-top box SPI driver. This driver can
88           be used to access the SPI flash on platforms embedding this
89           Broadcom SPI core.
90
91 config CADENCE_QSPI
92         bool "Cadence QSPI driver"
93         help
94           Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
95           used to access the SPI NOR flash on platforms embedding this
96           Cadence IP core.
97
98 config CF_SPI
99         bool "ColdFire SPI driver"
100         help
101           Enable the ColdFire SPI driver. This driver can be used on
102           some m68k SoCs.
103
104 config DESIGNWARE_SPI
105         bool "Designware SPI driver"
106         help
107           Enable the Designware SPI driver. This driver can be used to
108           access the SPI NOR flash on platforms embedding this Designware
109           IP core.
110
111 config EXYNOS_SPI
112         bool "Samsung Exynos SPI driver"
113         help
114           Enable the Samsung Exynos SPI driver. This driver can be used to
115           access the SPI NOR flash on platforms embedding this Samsung
116           Exynos IP core.
117
118 config FSL_DSPI
119         bool "Freescale DSPI driver"
120         help
121           Enable the Freescale DSPI driver. This driver can be used to
122           access the SPI NOR flash and SPI Data flash on platforms embedding
123           this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
124           use this driver.
125
126 config ICH_SPI
127         bool "Intel ICH SPI driver"
128         imply SPI_FLASH_BAR
129         help
130           Enable the Intel ICH SPI driver. This driver can be used to
131           access the SPI NOR flash on platforms embedding this Intel
132           ICH IP core.
133
134 config MESON_SPIFC
135         bool "Amlogic Meson SPI Flash Controller driver"
136         depends on ARCH_MESON
137         help
138           Enable the Amlogic Meson SPI Flash Controller SPIFC) driver.
139           This driver can be used to access the SPI NOR flash chips on
140           Amlogic Meson SoCs.
141
142 config MPC8XX_SPI
143         bool "MPC8XX SPI Driver"
144         depends on MPC8xx
145         help
146           Enable support for SPI on MPC8XX
147
148 config MPC8XXX_SPI
149         bool "MPC8XXX SPI Driver"
150         help
151           Enable support for SPI on the MPC8XXX PowerPC SoCs.
152
153 config MT7621_SPI
154         bool "MediaTek MT7621 SPI driver"
155         depends on SOC_MT7628
156         help
157           Enable the MT7621 SPI driver. This driver can be used to access
158           the SPI NOR flash on platforms embedding this Ralink / MediaTek
159           SPI core, like MT7621/7628/7688.
160
161 config MTK_QSPI
162         bool "Mediatek QSPI driver"
163         imply SPI_FLASH_BAR
164         help
165           Enable the Mediatek QSPI driver. This driver can be
166           used to access the SPI NOR flash on platforms embedding this
167           Mediatek QSPI IP core.
168
169 config MVEBU_A3700_SPI
170         bool "Marvell Armada 3700 SPI driver"
171         select CLK_ARMADA_3720
172         help
173           Enable the Marvell Armada 3700 SPI driver. This driver can be
174           used to access the SPI NOR flash on platforms embedding this
175           Marvell IP core.
176
177 config PIC32_SPI
178         bool "Microchip PIC32 SPI driver"
179         depends on MACH_PIC32
180         help
181           Enable the Microchip PIC32 SPI driver. This driver can be used
182           to access the SPI NOR flash, MMC-over-SPI on platforms based on
183           Microchip PIC32 family devices.
184
185 config PL022_SPI
186         bool "ARM AMBA PL022 SSP controller driver"
187         depends on ARM
188         help
189           This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
190           controller. If you have an embedded system with an AMBA(R)
191           bus and a PL022 controller, say Y or M here.
192
193 config RENESAS_RPC_SPI
194         bool "Renesas RPC SPI driver"
195         depends on RCAR_GEN3 || RZA1
196         imply SPI_FLASH_BAR
197         help
198           Enable the Renesas RPC SPI driver, used to access SPI NOR flash
199           on Renesas RCar Gen3 SoCs. This uses driver model and requires a
200           device tree binding to operate.
201
202 config ROCKCHIP_SPI
203         bool "Rockchip SPI driver"
204         help
205           Enable the Rockchip SPI driver, used to access SPI NOR flash and
206           other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
207           This uses driver model and requires a device tree binding to
208           operate.
209
210 config SANDBOX_SPI
211         bool "Sandbox SPI driver"
212         depends on SANDBOX && DM
213         help
214           Enable SPI support for sandbox. This is an emulation of a real SPI
215           bus. Devices can be attached to the bus using the device tree
216           which specifies the driver to use. As an example, see this device
217           tree fragment from sandbox.dts. It shows that the SPI bus has a
218           single flash device on chip select 0 which is emulated by the driver
219           for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
220
221           spi@0 {
222                 #address-cells = <1>;
223                 #size-cells = <0>;
224                 reg = <0>;
225                 compatible = "sandbox,spi";
226                 cs-gpios = <0>, <&gpio_a 0>;
227                 flash@0 {
228                         reg = <0>;
229                         compatible = "spansion,m25p16", "jedec,spi-nor";
230                         spi-max-frequency = <40000000>;
231                         sandbox,filename = "spi.bin";
232                 };
233           };
234
235 config SPI_SIFIVE
236         bool "SiFive SPI driver"
237         help
238           This driver supports the SiFive SPI IP. If unsure say N.
239           Enable the SiFive SPI controller driver.
240
241           The SiFive SPI controller driver is found on various SiFive SoCs.
242
243 config SPI_SUNXI
244         bool "Allwinner SoC SPI controllers"
245         help
246           Enable the Allwinner SoC SPi controller driver.
247
248           Same controller driver can reuse in all Allwinner SoC variants.
249
250 config STM32_QSPI
251         bool "STM32F7 QSPI driver"
252         depends on STM32F4 || STM32F7 || ARCH_STM32MP
253         help
254           Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
255           used to access the SPI NOR flash chips on platforms embedding
256           this ST IP core.
257
258 config STM32_SPI
259         bool "STM32 SPI driver"
260         depends on ARCH_STM32MP
261         help
262           Enable the STM32 Serial Peripheral Interface (SPI) driver for STM32MP
263           SoCs. This uses driver model and requires a device tree binding to
264           operate.
265
266 config TEGRA114_SPI
267         bool "nVidia Tegra114 SPI driver"
268         help
269           Enable the nVidia Tegra114 SPI driver. This driver can be used to
270           access the SPI NOR flash on platforms embedding this nVidia Tegra114
271           IP core.
272
273           This controller is different than the older SoCs SPI controller and
274           also register interface get changed with this controller.
275
276 config TEGRA20_SFLASH
277         bool "nVidia Tegra20 Serial Flash controller driver"
278         help
279           Enable the nVidia Tegra20 Serial Flash controller driver. This driver
280           can be used to access the SPI NOR flash on platforms embedding this
281           nVidia Tegra20 IP core.
282
283 config TEGRA20_SLINK
284         bool "nVidia Tegra20/Tegra30 SLINK driver"
285         help
286           Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
287           be used to access the SPI NOR flash on platforms embedding this
288           nVidia Tegra20/Tegra30 IP cores.
289
290 config TEGRA210_QSPI
291         bool "nVidia Tegra210 QSPI driver"
292         help
293           Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
294           be used to access SPI chips on platforms embedding this
295           NVIDIA Tegra210 IP core.
296
297 config TI_QSPI
298         bool "TI QSPI driver"
299         imply TI_EDMA3
300         help
301           Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
302           This driver support spi flash single, quad and memory reads.
303
304 config UNIPHIER_SPI
305         bool "Socionext UniPhier SPI driver"
306         depends on ARCH_UNIPHIER
307         help
308           Enable the Socionext UniPhier SPI driver. This driver can
309           be used to access SPI chips on platforms embedding this
310           UniPhier IP core.
311
312 config XILINX_SPI
313         bool "Xilinx SPI driver"
314         help
315           Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
316           controller support 8 bit SPI transfers only, with or w/o FIFO.
317           For more info on Xilinx SPI Register Definitions and Overview
318           see driver file - drivers/spi/xilinx_spi.c
319
320 config ZYNQ_SPI
321         bool "Zynq SPI driver"
322         depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
323         help
324           Enable the Zynq SPI driver. This driver can be used to
325           access the SPI NOR flash on platforms embedding this Zynq
326           SPI IP core.
327
328 config ZYNQ_QSPI
329         bool "Zynq QSPI driver"
330         depends on ARCH_ZYNQ
331         imply SPI_FLASH_BAR
332         help
333           Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
334           used to access the SPI NOR flash on platforms embedding this
335           Zynq QSPI IP core. This IP is used to connect the flash in
336           4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
337
338 config ZYNQMP_GQSPI
339         bool "Configure ZynqMP Generic QSPI"
340         depends on ARCH_ZYNQMP || ARCH_VERSAL
341         help
342           This option is used to enable ZynqMP QSPI controller driver which
343           is used to communicate with qspi flash devices.
344
345 endif # if DM_SPI
346
347 config SOFT_SPI
348         bool "Soft SPI driver"
349         depends on DM_SPI || (DEPRECATED && !DM_SPI)
350         help
351          Enable Soft SPI driver. This driver is to use GPIO simulate
352          the SPI protocol.
353
354 config MSCC_BB_SPI
355         bool "MSCC bitbang SPI driver"
356         depends on SOC_VCOREIII
357         help
358           Enable MSCC bitbang SPI driver. This driver can be used on
359           MSCC SOCs.
360
361 config CF_SPI
362         bool "ColdFire SPI driver"
363         help
364           Enable the ColdFire SPI driver. This driver can be used on
365           some m68k SoCs.
366
367 config FSL_ESPI
368         bool "Freescale eSPI driver"
369         help
370           Enable the Freescale eSPI driver. This driver can be used to
371           access the SPI interface and SPI NOR flash on platforms embedding
372           this Freescale eSPI IP core.
373
374 config FSL_QSPI
375         bool "Freescale QSPI driver"
376         imply SPI_FLASH_BAR
377         help
378           Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
379           used to access the SPI NOR flash on platforms embedding this
380           Freescale IP core.
381
382 config DAVINCI_SPI
383         bool "Davinci & Keystone SPI driver"
384         depends on ARCH_DAVINCI || ARCH_KEYSTONE
385         help
386           Enable the Davinci SPI driver
387
388 config SH_SPI
389         bool "SuperH SPI driver"
390         depends on DEPRECATED
391         help
392           Enable the SuperH SPI controller driver. This driver can be used
393           on various SuperH SoCs, such as SH7757.
394
395 config SH_QSPI
396         bool "Renesas Quad SPI driver"
397         help
398           Enable the Renesas Quad SPI controller driver. This driver can be
399           used on Renesas SoCs.
400
401 config KIRKWOOD_SPI
402         bool "Marvell Kirkwood SPI Driver"
403         help
404           Enable support for SPI on various Marvell SoCs, such as
405           Kirkwood and Armada 375.
406
407 config LPC32XX_SSP
408         bool "LPC32XX SPI Driver"
409         depends on DEPRECATED
410         help
411           Enable support for SPI on LPC32xx
412
413 config MXC_SPI
414         bool "MXC SPI Driver"
415         help
416           Enable the MXC SPI controller driver. This driver can be used
417           on various i.MX SoCs such as i.MX31/35/51/6/7.
418
419 config MXS_SPI
420         bool "MXS SPI Driver"
421         depends on DEPRECATED
422         help
423           Enable the MXS SPI controller driver. This driver can be used
424           on the i.MX23 and i.MX28 SoCs.
425
426 config OMAP3_SPI
427         bool "McSPI driver for OMAP"
428         help
429           SPI master controller for OMAP24XX and later Multichannel SPI
430           (McSPI). This driver be used to access SPI chips on platforms
431           embedding this OMAP3 McSPI IP core.
432
433 endif # menu "SPI Support"