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