xref: /openbmc/u-boot/drivers/spi/Kconfig (revision 2c92e4fb)
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 ALTERA_SPI
22	bool "Altera SPI driver"
23	help
24	  Enable the Altera SPI driver. This driver can be used to
25	  access the SPI NOR flash on platforms embedding this Altera
26	  IP core. Please find details on the "Embedded Peripherals IP
27	  User Guide" of Altera.
28
29config ATCSPI200_SPI
30	bool "Andestech ATCSPI200 SPI driver"
31	help
32	  Enable the Andestech ATCSPI200 SPI driver. This driver can be
33	  used to access the SPI flash on AE3XX and AE250 platforms embedding
34	  this Andestech IP core.
35
36config ATH79_SPI
37	bool "Atheros SPI driver"
38	depends on ARCH_ATH79
39	help
40	  Enable the Atheros ar7xxx/ar9xxx SoC SPI driver, it was used
41	  to access SPI NOR flash and other SPI peripherals. This driver
42	  uses driver model and requires a device tree binding to operate.
43	  please refer to doc/device-tree-bindings/spi/spi-ath79.txt.
44
45config ATMEL_SPI
46	bool "Atmel SPI driver"
47	default y if ARCH_AT91
48	help
49	  This enables driver for the Atmel SPI Controller, present on
50	  many AT91 (ARM) chips. This driver can be used to access
51	  the SPI Flash, such as AT25DF321.
52
53config BCM63XX_HSSPI
54	bool "BCM63XX HSSPI driver"
55	depends on ARCH_BMIPS
56	help
57	  Enable the BCM6328 HSSPI driver. This driver can be used to
58	  access the SPI NOR flash on platforms embedding this Broadcom
59	  SPI core.
60
61config BCM63XX_SPI
62	bool "BCM6348 SPI driver"
63	depends on ARCH_BMIPS
64	help
65	  Enable the BCM6348/BCM6358 SPI driver. This driver can be used to
66	  access the SPI NOR flash on platforms embedding these Broadcom
67	  SPI cores.
68
69config BCMSTB_SPI
70	bool "BCMSTB SPI driver"
71	help
72	  Enable the Broadcom set-top box SPI driver. This driver can
73	  be used to access the SPI flash on platforms embedding this
74	  Broadcom SPI core.
75
76config CADENCE_QSPI
77	bool "Cadence QSPI driver"
78	help
79	  Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
80	  used to access the SPI NOR flash on platforms embedding this
81	  Cadence IP core.
82
83config DESIGNWARE_SPI
84	bool "Designware SPI driver"
85	help
86	  Enable the Designware SPI driver. This driver can be used to
87	  access the SPI NOR flash on platforms embedding this Designware
88	  IP core.
89
90config EXYNOS_SPI
91	bool "Samsung Exynos SPI driver"
92	help
93	  Enable the Samsung Exynos SPI driver. This driver can be used to
94	  access the SPI NOR flash on platforms embedding this Samsung
95	  Exynos IP core.
96
97config FSL_DSPI
98	bool "Freescale DSPI driver"
99	help
100	  Enable the Freescale DSPI driver. This driver can be used to
101	  access the SPI NOR flash and SPI Data flash on platforms embedding
102	  this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
103	  use this driver.
104
105config ICH_SPI
106	bool "Intel ICH SPI driver"
107	help
108	  Enable the Intel ICH SPI driver. This driver can be used to
109	  access the SPI NOR flash on platforms embedding this Intel
110	  ICH IP core.
111
112config MVEBU_A3700_SPI
113	bool "Marvell Armada 3700 SPI driver"
114	select CLK_ARMADA_3720
115	help
116	  Enable the Marvell Armada 3700 SPI driver. This driver can be
117	  used to access the SPI NOR flash on platforms embedding this
118	  Marvell IP core.
119
120config PIC32_SPI
121	bool "Microchip PIC32 SPI driver"
122	depends on MACH_PIC32
123	help
124	  Enable the Microchip PIC32 SPI driver. This driver can be used
125	  to access the SPI NOR flash, MMC-over-SPI on platforms based on
126	  Microchip PIC32 family devices.
127
128config RENESAS_RPC_SPI
129	bool "Renesas RPC SPI driver"
130	depends on RCAR_GEN3
131	help
132	  Enable the Renesas RPC SPI driver, used to access SPI NOR flash
133	  on Renesas RCar Gen3 SoCs. This uses driver model and requires a
134	  device tree binding to operate.
135
136config ROCKCHIP_SPI
137	bool "Rockchip SPI driver"
138	help
139	  Enable the Rockchip SPI driver, used to access SPI NOR flash and
140	  other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
141	  This uses driver model and requires a device tree binding to
142	  operate.
143
144config SANDBOX_SPI
145	bool "Sandbox SPI driver"
146	depends on SANDBOX && DM
147	help
148	  Enable SPI support for sandbox. This is an emulation of a real SPI
149	  bus. Devices can be attached to the bus using the device tree
150	  which specifies the driver to use. As an example, see this device
151	  tree fragment from sandbox.dts. It shows that the SPI bus has a
152	  single flash device on chip select 0 which is emulated by the driver
153	  for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
154
155	  spi@0 {
156		#address-cells = <1>;
157		#size-cells = <0>;
158		reg = <0>;
159		compatible = "sandbox,spi";
160		cs-gpios = <0>, <&gpio_a 0>;
161		flash@0 {
162			reg = <0>;
163			compatible = "spansion,m25p16", "sandbox,spi-flash";
164			spi-max-frequency = <40000000>;
165			sandbox,filename = "spi.bin";
166		};
167	  };
168
169config STM32_QSPI
170	bool "STM32F7 QSPI driver"
171	depends on STM32F7
172	help
173	  Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
174	  used to access the SPI NOR flash chips on platforms embedding
175	  this ST IP core.
176
177config SUN4I_SPI
178	bool "Allwinner A10 SoCs SPI controller"
179	help
180	  SPI driver for Allwinner sun4i, sun5i and sun7i SoCs
181
182config TEGRA114_SPI
183	bool "nVidia Tegra114 SPI driver"
184	help
185	  Enable the nVidia Tegra114 SPI driver. This driver can be used to
186	  access the SPI NOR flash on platforms embedding this nVidia Tegra114
187	  IP core.
188
189	  This controller is different than the older SoCs SPI controller and
190	  also register interface get changed with this controller.
191
192config TEGRA20_SFLASH
193	bool "nVidia Tegra20 Serial Flash controller driver"
194	help
195	  Enable the nVidia Tegra20 Serial Flash controller driver. This driver
196	  can be used to access the SPI NOR flash on platforms embedding this
197	  nVidia Tegra20 IP core.
198
199config TEGRA20_SLINK
200	bool "nVidia Tegra20/Tegra30 SLINK driver"
201	help
202	  Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
203	  be used to access the SPI NOR flash on platforms embedding this
204	  nVidia Tegra20/Tegra30 IP cores.
205
206config TEGRA210_QSPI
207	bool "nVidia Tegra210 QSPI driver"
208	help
209	  Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
210	  be used to access SPI chips on platforms embedding this
211	  NVIDIA Tegra210 IP core.
212
213config XILINX_SPI
214	bool "Xilinx SPI driver"
215	help
216	  Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
217	  controller support 8 bit SPI transfers only, with or w/o FIFO.
218	  For more info on Xilinx SPI Register Definitions and Overview
219	  see driver file - drivers/spi/xilinx_spi.c
220
221config ZYNQ_SPI
222	bool "Zynq SPI driver"
223	depends on ARCH_ZYNQ || ARCH_ZYNQMP
224	help
225	  Enable the Zynq SPI driver. This driver can be used to
226	  access the SPI NOR flash on platforms embedding this Zynq
227	  SPI IP core.
228
229config ZYNQ_QSPI
230	bool "Zynq QSPI driver"
231	depends on ARCH_ZYNQ
232	help
233	  Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
234	  used to access the SPI NOR flash on platforms embedding this
235	  Zynq QSPI IP core. This IP is used to connect the flash in
236	  4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
237
238config ZYNQMP_GQSPI
239	bool "Configure ZynqMP Generic QSPI"
240	depends on ARCH_ZYNQMP
241	help
242	  This option is used to enable ZynqMP QSPI controller driver which
243	  is used to communicate with qspi flash devices.
244
245endif # if DM_SPI
246
247config SOFT_SPI
248	bool "Soft SPI driver"
249	help
250	 Enable Soft SPI driver. This driver is to use GPIO simulate
251	 the SPI protocol.
252
253config CF_SPI
254	bool "ColdFire SPI driver"
255	help
256	  Enable the ColdFire SPI driver. This driver can be used on
257	  some m68k SoCs.
258
259config FSL_ESPI
260	bool "Freescale eSPI driver"
261	help
262	  Enable the Freescale eSPI driver. This driver can be used to
263	  access the SPI interface and SPI NOR flash on platforms embedding
264	  this Freescale eSPI IP core.
265
266config FSL_QSPI
267	bool "Freescale QSPI driver"
268	help
269	  Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
270	  used to access the SPI NOR flash on platforms embedding this
271	  Freescale IP core.
272
273config DAVINCI_SPI
274	bool "Davinci & Keystone SPI driver"
275	depends on ARCH_DAVINCI || ARCH_KEYSTONE
276	help
277	  Enable the Davinci SPI driver
278
279config SH_SPI
280	bool "SuperH SPI driver"
281	help
282	  Enable the SuperH SPI controller driver. This driver can be used
283	  on various SuperH SoCs, such as SH7757.
284
285config SH_QSPI
286	bool "Renesas Quad SPI driver"
287	help
288	  Enable the Renesas Quad SPI controller driver. This driver can be
289	  used on Renesas SoCs.
290
291config TI_QSPI
292	bool "TI QSPI driver"
293	help
294	  Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
295	  This driver support spi flash single, quad and memory reads.
296
297config KIRKWOOD_SPI
298	bool "Marvell Kirkwood SPI Driver"
299	help
300	  Enable support for SPI on various Marvell SoCs, such as
301	  Kirkwood and Armada 375.
302
303config LPC32XX_SSP
304	bool "LPC32XX SPI Driver"
305	help
306	  Enable support for SPI on LPC32xx
307
308config MPC8XX_SPI
309	bool "MPC8XX SPI Driver"
310	depends on MPC8xx
311	help
312	  Enable support for SPI on MPC8XX
313
314config MPC8XXX_SPI
315	bool "MPC8XXX SPI Driver"
316	help
317	  Enable support for SPI on the MPC8XXX PowerPC SoCs.
318
319config MXC_SPI
320	bool "MXC SPI Driver"
321	help
322	  Enable the MXC SPI controller driver. This driver can be used
323	  on various i.MX SoCs such as i.MX31/35/51/6/7.
324
325config MXS_SPI
326	bool "MXS SPI Driver"
327	help
328	  Enable the MXS SPI controller driver. This driver can be used
329	  on the i.MX23 and i.MX28 SoCs.
330
331config OMAP3_SPI
332	bool "McSPI driver for OMAP"
333	help
334	  SPI master controller for OMAP24XX and later Multichannel SPI
335	  (McSPI). This driver be used to access SPI chips on platforms
336	  embedding this OMAP3 McSPI IP core.
337
338endif # menu "SPI Support"
339