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