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