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