blob: 2f8cf19613a741a96bccdfe379146e608b8745c7 [file] [log] [blame]
Jagan Tekide823052015-06-27 22:35:14 +05301menu "SPI Support"
2
Masahiro Yamadada333ae2014-10-23 22:26:09 +09003config DM_SPI
4 bool "Enable Driver Model for SPI drivers"
5 depends on DM
6 help
Simon Glassf94a1be2015-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 Glass892cac72015-03-06 13:19:05 -070015
Jagan Tekie4976af2015-06-27 22:37:00 +053016if DM_SPI
17
Thomas Chou15a56f92015-10-14 08:33:34 +080018config ALTERA_SPI
19 bool "Altera SPI driver"
20 help
21 Enable the Altera SPI driver. This driver can be used to
22 access the SPI NOR flash on platforms embedding this Altera
23 IP core. Please find details on the "Embedded Peripherals IP
24 User Guide" of Altera.
25
Jagan Tekie4976af2015-06-27 22:37:00 +053026config CADENCE_QSPI
27 bool "Cadence QSPI driver"
28 help
29 Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
30 used to access the SPI NOR flash on platforms embedding this
31 Cadence IP core.
32
33config DESIGNWARE_SPI
34 bool "Designware SPI driver"
35 help
36 Enable the Designware SPI driver. This driver can be used to
37 access the SPI NOR flash on platforms embedding this Designware
38 IP core.
39
Jagan Tekic354eee2015-06-27 15:32:19 +053040config EXYNOS_SPI
41 bool "Samsung Exynos SPI driver"
42 help
43 Enable the Samsung Exynos SPI driver. This driver can be used to
44 access the SPI NOR flash on platforms embedding this Samsung
45 Exynos IP core.
46
Jagan Teki94ea3082015-06-27 14:17:06 +053047config FSL_DSPI
48 bool "Freescale DSPI driver"
49 help
50 Enable the Freescale DSPI driver. This driver can be used to
51 access the SPI NOR flash and SPI Data flash on platforms embedding
52 this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
53 use this driver.
54
Jagan Teki91c22d02015-06-27 15:23:07 +053055config FSL_QSPI
56 bool "Freescale QSPI driver"
57 help
58 Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
59 used to access the SPI NOR flash on platforms embedding this
60 Freescale IP core.
61
Jagan Teki45636012015-06-27 15:43:27 +053062config ICH_SPI
63 bool "Intel ICH SPI driver"
64 help
65 Enable the Intel ICH SPI driver. This driver can be used to
66 access the SPI NOR flash on platforms embedding this Intel
67 ICH IP core.
68
Simon Glass1b2fd5b2015-09-01 19:19:37 -060069config ROCKCHIP_SPI
70 bool "Rockchip SPI driver"
71 help
72 Enable the Rockchip SPI driver, used to access SPI NOR flash and
73 other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
74 This uses driver model and requires a device tree binding to
75 operate.
76
Simon Glass892cac72015-03-06 13:19:05 -070077config SANDBOX_SPI
78 bool "Sandbox SPI driver"
79 depends on SANDBOX && DM
80 help
81 Enable SPI support for sandbox. This is an emulation of a real SPI
82 bus. Devices can be attached to the bus using the device tree
83 which specifies the driver to use. As an example, see this device
84 tree fragment from sandbox.dts. It shows that the SPI bus has a
85 single flash device on chip select 0 which is emulated by the driver
86 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
87
88 spi@0 {
89 #address-cells = <1>;
90 #size-cells = <0>;
91 reg = <0>;
92 compatible = "sandbox,spi";
93 cs-gpios = <0>, <&gpio_a 0>;
94 flash@0 {
95 reg = <0>;
96 compatible = "spansion,m25p16", "sandbox,spi-flash";
97 spi-max-frequency = <40000000>;
98 sandbox,filename = "spi.bin";
99 };
Jagan Tekie4976af2015-06-27 22:37:00 +0530100 };
Jagan Tekif924a202015-06-27 04:41:11 +0530101
Jagan Teki5bf9a2d2015-06-27 15:57:53 +0530102config TEGRA114_SPI
103 bool "nVidia Tegra114 SPI driver"
104 help
105 Enable the nVidia Tegra114 SPI driver. This driver can be used to
106 access the SPI NOR flash on platforms embedding this nVidia Tegra114
107 IP core.
108
109 This controller is different than the older SoCs SPI controller and
110 also register interface get changed with this controller.
111
Jagan Teki2f3e6f82015-06-27 16:04:05 +0530112config TEGRA20_SFLASH
113 bool "nVidia Tegra20 Serial Flash controller driver"
114 help
115 Enable the nVidia Tegra20 Serial Flash controller driver. This driver
116 can be used to access the SPI NOR flash on platforms embedding this
117 nVidia Tegra20 IP core.
118
Jagan Teki44958302015-06-27 16:07:54 +0530119config TEGRA20_SLINK
120 bool "nVidia Tegra20/Tegra30 SLINK driver"
121 help
122 Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
123 be used to access the SPI NOR flash on platforms embedding this
124 nVidia Tegra20/Tegra30 IP cores.
125
Jagan Teki075143d2015-06-27 04:32:43 +0530126config XILINX_SPI
127 bool "Xilinx SPI driver"
Jagan Teki075143d2015-06-27 04:32:43 +0530128 help
129 Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
130 controller support 8 bit SPI transfers only, with or w/o FIFO.
131 For more info on Xilinx SPI Register Definitions and Overview
132 see driver file - drivers/spi/xilinx_spi.c
133
Jagan Tekidf30a422015-06-27 00:51:38 +0530134config ZYNQ_SPI
135 bool "Zynq SPI driver"
Jagan Tekie4976af2015-06-27 22:37:00 +0530136 depends on ARCH_ZYNQ || TARGET_XILINX_ZYNQMP
Jagan Tekidf30a422015-06-27 00:51:38 +0530137 help
138 Enable the Zynq SPI driver. This driver can be used to
139 access the SPI NOR flash on platforms embedding this Zynq
140 SPI IP core.
Jagan Tekide823052015-06-27 22:35:14 +0530141
Jagan Tekie4976af2015-06-27 22:37:00 +0530142endif # if DM_SPI
143
Jagan Teki3debffa2015-06-27 15:21:36 +0530144config FSL_ESPI
145 bool "Freescale eSPI driver"
146 help
147 Enable the Freescale eSPI driver. This driver can be used to
148 access the SPI interface and SPI NOR flash on platforms embedding
149 this Freescale eSPI IP core.
150
Jagan Tekie4976af2015-06-27 22:37:00 +0530151config TI_QSPI
152 bool "TI QSPI driver"
153 help
154 Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
155 This driver support spi flash single, quad and memory reads.
156
Jagan Tekide823052015-06-27 22:35:14 +0530157endmenu # menu "SPI Support"