blob: d5e688116d4c57bca4fa28318e5e8d6cee59efe7 [file] [log] [blame]
Jagan Tekibfd3f8b2015-06-27 22:35:14 +05301menu "SPI Support"
2
Masahiro Yamada57ad8ee2014-10-23 22:26:09 +09003config DM_SPI
4 bool "Enable Driver Model for SPI drivers"
5 depends on DM
6 help
Simon Glassd8b771d2015-02-05 21:41:35 -07007 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.
Simon Glass4b322d32015-03-06 13:19:05 -070015
Jagan Teki15a932c2015-06-27 22:37:00 +053016if DM_SPI
17
18config CADENCE_QSPI
19 bool "Cadence QSPI driver"
20 help
21 Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
22 used to access the SPI NOR flash on platforms embedding this
23 Cadence IP core.
24
25config DESIGNWARE_SPI
26 bool "Designware SPI driver"
27 help
28 Enable the Designware SPI driver. This driver can be used to
29 access the SPI NOR flash on platforms embedding this Designware
30 IP core.
31
Jagan Teki6274bf92015-06-27 15:32:19 +053032config EXYNOS_SPI
33 bool "Samsung Exynos SPI driver"
34 help
35 Enable the Samsung Exynos SPI driver. This driver can be used to
36 access the SPI NOR flash on platforms embedding this Samsung
37 Exynos IP core.
38
Jagan Tekiae30c022015-06-27 14:17:06 +053039config FSL_DSPI
40 bool "Freescale DSPI driver"
41 help
42 Enable the Freescale DSPI driver. This driver can be used to
43 access the SPI NOR flash and SPI Data flash on platforms embedding
44 this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
45 use this driver.
46
Jagan Teki0e9be242015-06-27 15:23:07 +053047config FSL_QSPI
48 bool "Freescale QSPI driver"
49 help
50 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
51 used to access the SPI NOR flash on platforms embedding this
52 Freescale IP core.
53
Simon Glass4b322d32015-03-06 13:19:05 -070054config SANDBOX_SPI
55 bool "Sandbox SPI driver"
56 depends on SANDBOX && DM
57 help
58 Enable SPI support for sandbox. This is an emulation of a real SPI
59 bus. Devices can be attached to the bus using the device tree
60 which specifies the driver to use. As an example, see this device
61 tree fragment from sandbox.dts. It shows that the SPI bus has a
62 single flash device on chip select 0 which is emulated by the driver
63 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
64
65 spi@0 {
66 #address-cells = <1>;
67 #size-cells = <0>;
68 reg = <0>;
69 compatible = "sandbox,spi";
70 cs-gpios = <0>, <&gpio_a 0>;
71 flash@0 {
72 reg = <0>;
73 compatible = "spansion,m25p16", "sandbox,spi-flash";
74 spi-max-frequency = <40000000>;
75 sandbox,filename = "spi.bin";
76 };
Jagan Teki15a932c2015-06-27 22:37:00 +053077 };
Jagan Tekidd32f512015-06-27 04:41:11 +053078
Jagan Tekicd70d7d2015-06-27 04:32:43 +053079config XILINX_SPI
80 bool "Xilinx SPI driver"
Jagan Tekicd70d7d2015-06-27 04:32:43 +053081 help
82 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
83 controller support 8 bit SPI transfers only, with or w/o FIFO.
84 For more info on Xilinx SPI Register Definitions and Overview
85 see driver file - drivers/spi/xilinx_spi.c
86
Jagan Tekicad526f2015-06-27 00:51:38 +053087config ZYNQ_SPI
88 bool "Zynq SPI driver"
Jagan Teki15a932c2015-06-27 22:37:00 +053089 depends on ARCH_ZYNQ || TARGET_XILINX_ZYNQMP
Jagan Tekicad526f2015-06-27 00:51:38 +053090 help
91 Enable the Zynq SPI driver. This driver can be used to
92 access the SPI NOR flash on platforms embedding this Zynq
93 SPI IP core.
Jagan Tekibfd3f8b2015-06-27 22:35:14 +053094
Jagan Teki15a932c2015-06-27 22:37:00 +053095endif # if DM_SPI
96
Jagan Tekia0497a32015-06-27 15:21:36 +053097config FSL_ESPI
98 bool "Freescale eSPI driver"
99 help
100 Enable the Freescale eSPI driver. This driver can be used to
101 access the SPI interface and SPI NOR flash on platforms embedding
102 this Freescale eSPI IP core.
103
Jagan Teki15a932c2015-06-27 22:37:00 +0530104config TI_QSPI
105 bool "TI QSPI driver"
106 help
107 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
108 This driver support spi flash single, quad and memory reads.
109
Jagan Tekibfd3f8b2015-06-27 22:35:14 +0530110endmenu # menu "SPI Support"