xref: /rk3399_rockchip-uboot/drivers/spi/Kconfig (revision c2d012f94d3435a04a33271d668ded9960fd42fb)
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 ATH79_SPI
34	bool "Atheros SPI driver"
35	depends on ARCH_ATH79
36	help
37	  Enable the Atheros ar7xxx/ar9xxx SoC SPI driver, it was used
38	  to access SPI NOR flash and other SPI peripherals. This driver
39	  uses driver model and requires a device tree binding to operate.
40	  please refer to doc/device-tree-bindings/spi/spi-ath79.txt.
41
42config ATMEL_SPI
43	bool "Atmel SPI driver"
44	depends on ARCH_AT91
45	help
46	  This enables driver for the Atmel SPI Controller, present on
47	  many AT91 (ARM) chips. This driver can be used to access
48	  the SPI Flash, such as AT25DF321.
49
50config BCM63XX_SPI
51	bool "BCM6348 SPI driver"
52	depends on ARCH_BMIPS
53	help
54	  Enable the BCM6348/BCM6358 SPI driver. This driver can be used to
55	  access the SPI NOR flash on platforms embedding these Broadcom
56	  SPI cores.
57
58config CADENCE_QSPI
59	bool "Cadence QSPI driver"
60	help
61	  Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
62	  used to access the SPI NOR flash on platforms embedding this
63	  Cadence IP core.
64
65config DESIGNWARE_SPI
66	bool "Designware SPI driver"
67	help
68	  Enable the Designware SPI driver. This driver can be used to
69	  access the SPI NOR flash on platforms embedding this Designware
70	  IP core.
71
72config EXYNOS_SPI
73	bool "Samsung Exynos SPI driver"
74	help
75	  Enable the Samsung Exynos SPI driver. This driver can be used to
76	  access the SPI NOR flash on platforms embedding this Samsung
77	  Exynos IP core.
78
79config FSL_DSPI
80	bool "Freescale DSPI driver"
81	help
82	  Enable the Freescale DSPI driver. This driver can be used to
83	  access the SPI NOR flash and SPI Data flash on platforms embedding
84	  this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
85	  use this driver.
86
87config ICH_SPI
88	bool "Intel ICH SPI driver"
89	help
90	  Enable the Intel ICH SPI driver. This driver can be used to
91	  access the SPI NOR flash on platforms embedding this Intel
92	  ICH IP core.
93
94config MVEBU_A3700_SPI
95	bool "Marvell Armada 3700 SPI driver"
96	help
97	  Enable the Marvell Armada 3700 SPI driver. This driver can be
98	  used to access the SPI NOR flash on platforms embedding this
99	  Marvell IP core.
100
101config PIC32_SPI
102	bool "Microchip PIC32 SPI driver"
103	depends on MACH_PIC32
104	help
105	  Enable the Microchip PIC32 SPI driver. This driver can be used
106	  to access the SPI NOR flash, MMC-over-SPI on platforms based on
107	  Microchip PIC32 family devices.
108
109config ROCKCHIP_SPI
110	bool "Rockchip SPI driver"
111	help
112	  Enable the Rockchip SPI driver, used to access SPI NOR flash and
113	  other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
114	  This uses driver model and requires a device tree binding to
115	  operate.
116
117config ROCKCHIP_SFC
118	bool "Rockchip SFC driver"
119	help
120	  Enable the Rockchip SFC driver, used to access SPI NOR flash
121	  on Rockchip SoCs.
122	  This uses driver model and requires a device tree binding to
123	  operate.
124
125config SANDBOX_SPI
126	bool "Sandbox SPI driver"
127	depends on SANDBOX && DM
128	help
129	  Enable SPI support for sandbox. This is an emulation of a real SPI
130	  bus. Devices can be attached to the bus using the device tree
131	  which specifies the driver to use. As an example, see this device
132	  tree fragment from sandbox.dts. It shows that the SPI bus has a
133	  single flash device on chip select 0 which is emulated by the driver
134	  for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
135
136	  spi@0 {
137		#address-cells = <1>;
138		#size-cells = <0>;
139		reg = <0>;
140		compatible = "sandbox,spi";
141		cs-gpios = <0>, <&gpio_a 0>;
142		flash@0 {
143			reg = <0>;
144			compatible = "spansion,m25p16", "sandbox,spi-flash";
145			spi-max-frequency = <40000000>;
146			sandbox,filename = "spi.bin";
147		};
148	  };
149
150config STM32_QSPI
151	bool "STM32F7 QSPI driver"
152	depends on STM32F7
153	help
154	  Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
155	  used to access the SPI NOR flash chips on platforms embedding
156	  this ST IP core.
157
158config TEGRA114_SPI
159	bool "nVidia Tegra114 SPI driver"
160	help
161	  Enable the nVidia Tegra114 SPI driver. This driver can be used to
162	  access the SPI NOR flash on platforms embedding this nVidia Tegra114
163	  IP core.
164
165	  This controller is different than the older SoCs SPI controller and
166	  also register interface get changed with this controller.
167
168config TEGRA20_SFLASH
169	bool "nVidia Tegra20 Serial Flash controller driver"
170	help
171	  Enable the nVidia Tegra20 Serial Flash controller driver. This driver
172	  can be used to access the SPI NOR flash on platforms embedding this
173	  nVidia Tegra20 IP core.
174
175config TEGRA20_SLINK
176	bool "nVidia Tegra20/Tegra30 SLINK driver"
177	help
178	  Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
179	  be used to access the SPI NOR flash on platforms embedding this
180	  nVidia Tegra20/Tegra30 IP cores.
181
182config TEGRA210_QSPI
183	bool "nVidia Tegra210 QSPI driver"
184	help
185	  Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
186	  be used to access SPI chips on platforms embedding this
187	  NVIDIA Tegra210 IP core.
188
189config XILINX_SPI
190	bool "Xilinx SPI driver"
191	help
192	  Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
193	  controller support 8 bit SPI transfers only, with or w/o FIFO.
194	  For more info on Xilinx SPI Register Definitions and Overview
195	  see driver file - drivers/spi/xilinx_spi.c
196
197config ZYNQ_SPI
198	bool "Zynq SPI driver"
199	depends on ARCH_ZYNQ || ARCH_ZYNQMP
200	help
201	  Enable the Zynq SPI driver. This driver can be used to
202	  access the SPI NOR flash on platforms embedding this Zynq
203	  SPI IP core.
204
205config ZYNQ_QSPI
206	bool "Zynq QSPI driver"
207	depends on ARCH_ZYNQ
208	help
209	  Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
210	  used to access the SPI NOR flash on platforms embedding this
211	  Zynq QSPI IP core. This IP is used to connect the flash in
212	  4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
213
214endif # if DM_SPI
215
216config SOFT_SPI
217	bool "Soft SPI driver"
218	help
219	 Enable Soft SPI driver. This driver is to use GPIO simulate
220	 the SPI protocol.
221
222config FSL_ESPI
223	bool "Freescale eSPI driver"
224	help
225	  Enable the Freescale eSPI driver. This driver can be used to
226	  access the SPI interface and SPI NOR flash on platforms embedding
227	  this Freescale eSPI IP core.
228
229config FSL_QSPI
230	bool "Freescale QSPI driver"
231	help
232	  Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
233	  used to access the SPI NOR flash on platforms embedding this
234	  Freescale IP core.
235
236config ATCSPI200_SPI
237	bool "Andestech ATCSPI200 SPI driver"
238	help
239	  Enable the Andestech ATCSPI200 SPI driver. This driver can be
240	  used to access the SPI flash on AE3XX and AE250 platforms embedding
241	  this Andestech IP core.
242
243config DAVINCI_SPI
244	bool "Davinci & Keystone SPI driver"
245	depends on ARCH_DAVINCI || ARCH_KEYSTONE
246	help
247	  Enable the Davinci SPI driver
248
249config TI_QSPI
250	bool "TI QSPI driver"
251	help
252	  Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
253	  This driver support spi flash single, quad and memory reads.
254
255config MPC8XX_SPI
256	bool "MPC8XX SPI Driver"
257	depends on 8xx
258	help
259	  Enable support for SPI on MPC8XX
260
261config OMAP3_SPI
262	bool "McSPI driver for OMAP"
263	help
264	  SPI master controller for OMAP24XX and later Multichannel SPI
265	  (McSPI). This driver be used to access SPI chips on platforms
266	  embedding this OMAP3 McSPI IP core.
267
268endmenu # menu "SPI Support"
269