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