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