xref: /rk3399_rockchip-uboot/drivers/spi/Kconfig (revision 01b8c4d110abb0dcbe36dc5b6b10d93b2b8e2667)
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 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 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	help
115	  Enable the Marvell Armada 3700 SPI driver. This driver can be
116	  used to access the SPI NOR flash on platforms embedding this
117	  Marvell IP core.
118
119config PIC32_SPI
120	bool "Microchip PIC32 SPI driver"
121	depends on MACH_PIC32
122	help
123	  Enable the Microchip PIC32 SPI driver. This driver can be used
124	  to access the SPI NOR flash, MMC-over-SPI on platforms based on
125	  Microchip PIC32 family devices.
126
127config RENESAS_RPC_SPI
128	bool "Renesas RPC SPI driver"
129	depends on RCAR_GEN3
130	help
131	  Enable the Renesas RPC SPI driver, used to access SPI NOR flash
132	  on Renesas RCar Gen3 SoCs. This uses driver model and requires a
133	  device tree binding to operate.
134
135config ROCKCHIP_SPI
136	bool "Rockchip SPI driver"
137	help
138	  Enable the Rockchip SPI driver, used to access SPI NOR flash and
139	  other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
140	  This uses driver model and requires a device tree binding to
141	  operate.
142
143config ROCKCHIP_SFC
144	bool "Rockchip SFC driver"
145	help
146	  Enable the Rockchip SFC driver, used to access SPI NOR flash
147	  on Rockchip SoCs.
148	  This uses driver model and requires a device tree binding to
149	  operate.
150
151config SANDBOX_SPI
152	bool "Sandbox SPI driver"
153	depends on SANDBOX && DM
154	help
155	  Enable SPI support for sandbox. This is an emulation of a real SPI
156	  bus. Devices can be attached to the bus using the device tree
157	  which specifies the driver to use. As an example, see this device
158	  tree fragment from sandbox.dts. It shows that the SPI bus has a
159	  single flash device on chip select 0 which is emulated by the driver
160	  for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
161
162	  spi@0 {
163		#address-cells = <1>;
164		#size-cells = <0>;
165		reg = <0>;
166		compatible = "sandbox,spi";
167		cs-gpios = <0>, <&gpio_a 0>;
168		flash@0 {
169			reg = <0>;
170			compatible = "spansion,m25p16", "sandbox,spi-flash";
171			spi-max-frequency = <40000000>;
172			sandbox,filename = "spi.bin";
173		};
174	  };
175
176config STM32_QSPI
177	bool "STM32F7 QSPI driver"
178	depends on STM32F7
179	help
180	  Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
181	  used to access the SPI NOR flash chips on platforms embedding
182	  this ST IP core.
183
184config TEGRA114_SPI
185	bool "nVidia Tegra114 SPI driver"
186	help
187	  Enable the nVidia Tegra114 SPI driver. This driver can be used to
188	  access the SPI NOR flash on platforms embedding this nVidia Tegra114
189	  IP core.
190
191	  This controller is different than the older SoCs SPI controller and
192	  also register interface get changed with this controller.
193
194config TEGRA20_SFLASH
195	bool "nVidia Tegra20 Serial Flash controller driver"
196	help
197	  Enable the nVidia Tegra20 Serial Flash controller driver. This driver
198	  can be used to access the SPI NOR flash on platforms embedding this
199	  nVidia Tegra20 IP core.
200
201config TEGRA20_SLINK
202	bool "nVidia Tegra20/Tegra30 SLINK driver"
203	help
204	  Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
205	  be used to access the SPI NOR flash on platforms embedding this
206	  nVidia Tegra20/Tegra30 IP cores.
207
208config TEGRA210_QSPI
209	bool "nVidia Tegra210 QSPI driver"
210	help
211	  Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
212	  be used to access SPI chips on platforms embedding this
213	  NVIDIA Tegra210 IP core.
214
215config XILINX_SPI
216	bool "Xilinx SPI driver"
217	help
218	  Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
219	  controller support 8 bit SPI transfers only, with or w/o FIFO.
220	  For more info on Xilinx SPI Register Definitions and Overview
221	  see driver file - drivers/spi/xilinx_spi.c
222
223config ZYNQ_SPI
224	bool "Zynq SPI driver"
225	depends on ARCH_ZYNQ || ARCH_ZYNQMP
226	help
227	  Enable the Zynq SPI driver. This driver can be used to
228	  access the SPI NOR flash on platforms embedding this Zynq
229	  SPI IP core.
230
231config ZYNQ_QSPI
232	bool "Zynq QSPI driver"
233	depends on ARCH_ZYNQ
234	help
235	  Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
236	  used to access the SPI NOR flash on platforms embedding this
237	  Zynq QSPI IP core. This IP is used to connect the flash in
238	  4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
239
240endif # if DM_SPI
241
242config SOFT_SPI
243	bool "Soft SPI driver"
244	help
245	 Enable Soft SPI driver. This driver is to use GPIO simulate
246	 the SPI protocol.
247
248config CF_SPI
249	bool "ColdFire SPI driver"
250	help
251	  Enable the ColdFire SPI driver. This driver can be used on
252	  some m68k SoCs.
253
254config FSL_ESPI
255	bool "Freescale eSPI driver"
256	help
257	  Enable the Freescale eSPI driver. This driver can be used to
258	  access the SPI interface and SPI NOR flash on platforms embedding
259	  this Freescale eSPI IP core.
260
261config FSL_QSPI
262	bool "Freescale QSPI driver"
263	help
264	  Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
265	  used to access the SPI NOR flash on platforms embedding this
266	  Freescale IP core.
267
268config DAVINCI_SPI
269	bool "Davinci & Keystone SPI driver"
270	depends on ARCH_DAVINCI || ARCH_KEYSTONE
271	help
272	  Enable the Davinci SPI driver
273
274config SH_SPI
275	bool "SuperH SPI driver"
276	help
277	  Enable the SuperH SPI controller driver. This driver can be used
278	  on various SuperH SoCs, such as SH7757.
279
280config SH_QSPI
281	bool "Renesas Quad SPI driver"
282	help
283	  Enable the Renesas Quad SPI controller driver. This driver can be
284	  used on Renesas SoCs.
285
286config TI_QSPI
287	bool "TI QSPI driver"
288	help
289	  Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
290	  This driver support spi flash single, quad and memory reads.
291
292config KIRKWOOD_SPI
293	bool "Marvell Kirkwood SPI Driver"
294	help
295	  Enable support for SPI on various Marvell SoCs, such as
296	  Kirkwood and Armada 375.
297
298config LPC32XX_SSP
299	bool "LPC32XX SPI Driver"
300	help
301	  Enable support for SPI on LPC32xx
302
303config MPC8XX_SPI
304	bool "MPC8XX SPI Driver"
305	depends on MPC8xx
306	help
307	  Enable support for SPI on MPC8XX
308
309config MPC8XXX_SPI
310	bool "MPC8XXX SPI Driver"
311	help
312	  Enable support for SPI on the MPC8XXX PowerPC SoCs.
313
314config MXC_SPI
315	bool "MXC SPI Driver"
316	help
317	  Enable the MXC SPI controller driver. This driver can be used
318	  on various i.MX SoCs such as i.MX31/35/51/6/7.
319
320config MXS_SPI
321	bool "MXS SPI Driver"
322	help
323	  Enable the MXS SPI controller driver. This driver can be used
324	  on the i.MX23 and i.MX28 SoCs.
325
326config OMAP3_SPI
327	bool "McSPI driver for OMAP"
328	help
329	  SPI master controller for OMAP24XX and later Multichannel SPI
330	  (McSPI). This driver be used to access SPI chips on platforms
331	  embedding this OMAP3 McSPI IP core.
332
333endif # menu "SPI Support"
334