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