Adam Ford | 4e96ff8 | 2018-04-15 13:51:26 -0400 | [diff] [blame] | 1 | menuconfig SPI |
| 2 | bool "SPI Support" |
| 3 | |
| 4 | if SPI |
Jagan Teki | bfd3f8b | 2015-06-27 22:35:14 +0530 | [diff] [blame] | 5 | |
Masahiro Yamada | 57ad8ee | 2014-10-23 22:26:09 +0900 | [diff] [blame] | 6 | config DM_SPI |
| 7 | bool "Enable Driver Model for SPI drivers" |
| 8 | depends on DM |
| 9 | help |
Simon Glass | d8b771d | 2015-02-05 21:41:35 -0700 | [diff] [blame] | 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. |
Simon Glass | 4b322d3 | 2015-03-06 13:19:05 -0700 | [diff] [blame] | 18 | |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 19 | if DM_SPI |
| 20 | |
Boris Brezillon | 32473fe | 2018-08-16 17:30:11 +0200 | [diff] [blame] | 21 | config SPI_MEM |
| 22 | bool "SPI memory extension" |
| 23 | help |
| 24 | Enable this option if you want to enable the SPI memory extension. |
| 25 | This extension is meant to simplify interaction with SPI memories |
| 26 | by providing an high-level interface to send memory-like commands. |
| 27 | |
Thomas Chou | c589954 | 2015-10-14 08:33:34 +0800 | [diff] [blame] | 28 | config 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 | |
Jagan Teki | 353dffb | 2018-03-07 10:33:33 +0530 | [diff] [blame] | 36 | config 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 | |
Wills Wang | f502148 | 2016-03-16 16:59:58 +0800 | [diff] [blame] | 43 | config 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 | |
Wenyou Yang | da8ee98 | 2016-10-28 14:17:49 +0800 | [diff] [blame] | 52 | config ATMEL_SPI |
| 53 | bool "Atmel SPI driver" |
Jagan Teki | 1d831b6 | 2018-03-14 18:46:44 +0530 | [diff] [blame] | 54 | default y if ARCH_AT91 |
Wenyou Yang | da8ee98 | 2016-10-28 14:17:49 +0800 | [diff] [blame] | 55 | help |
| 56 | This enables driver for the Atmel SPI Controller, present on |
Andy Shevchenko | 8cb5cdd | 2017-07-05 16:25:22 +0300 | [diff] [blame] | 57 | many AT91 (ARM) chips. This driver can be used to access |
| 58 | the SPI Flash, such as AT25DF321. |
Wenyou Yang | da8ee98 | 2016-10-28 14:17:49 +0800 | [diff] [blame] | 59 | |
Álvaro Fernández Rojas | 55d96ec | 2018-01-20 02:13:38 +0100 | [diff] [blame] | 60 | config 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 | |
Álvaro Fernández Rojas | cc243c6 | 2018-01-23 17:14:58 +0100 | [diff] [blame] | 68 | config 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 | |
Thomas Fitzsimmons | 919646d | 2018-06-08 17:59:45 -0400 | [diff] [blame] | 76 | config 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 | |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 83 | config 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 | |
| 90 | config 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 | |
Jagan Teki | 6274bf9 | 2015-06-27 15:32:19 +0530 | [diff] [blame] | 97 | config 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 | |
Jagan Teki | ae30c02 | 2015-06-27 14:17:06 +0530 | [diff] [blame] | 104 | config 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 | |
Jagan Teki | 3872b7c | 2015-06-27 15:43:27 +0530 | [diff] [blame] | 112 | config 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 | |
Neil Armstrong | 5c16217 | 2018-11-22 11:01:05 +0100 | [diff] [blame^] | 119 | config MESON_SPIFC |
| 120 | bool "Amlogic Meson SPI Flash Controller driver" |
| 121 | depends on ARCH_MESON |
| 122 | help |
| 123 | Enable the Amlogic Meson SPI Flash Controller SPIFC) driver. |
| 124 | This driver can be used to access the SPI NOR flash chips on |
| 125 | Amlogic Meson SoCs. |
| 126 | |
Stefan Roese | 8adb8cb | 2018-08-16 10:48:48 +0200 | [diff] [blame] | 127 | config MT7621_SPI |
| 128 | bool "MediaTek MT7621 SPI driver" |
| 129 | depends on ARCH_MT7620 |
| 130 | help |
| 131 | Enable the MT7621 SPI driver. This driver can be used to access |
| 132 | the SPI NOR flash on platforms embedding this Ralink / MediaTek |
| 133 | SPI core, like MT7621/7628/7688. |
| 134 | |
Stefan Roese | 9ec1c78 | 2016-05-19 15:56:44 +0200 | [diff] [blame] | 135 | config MVEBU_A3700_SPI |
| 136 | bool "Marvell Armada 3700 SPI driver" |
Marek Behún | 0afd934 | 2018-04-24 17:21:26 +0200 | [diff] [blame] | 137 | select CLK_ARMADA_3720 |
Stefan Roese | 9ec1c78 | 2016-05-19 15:56:44 +0200 | [diff] [blame] | 138 | help |
| 139 | Enable the Marvell Armada 3700 SPI driver. This driver can be |
| 140 | used to access the SPI NOR flash on platforms embedding this |
| 141 | Marvell IP core. |
| 142 | |
Purna Chandra Mandal | ffa5442 | 2016-06-02 14:26:08 +0530 | [diff] [blame] | 143 | config PIC32_SPI |
| 144 | bool "Microchip PIC32 SPI driver" |
| 145 | depends on MACH_PIC32 |
| 146 | help |
| 147 | Enable the Microchip PIC32 SPI driver. This driver can be used |
| 148 | to access the SPI NOR flash, MMC-over-SPI on platforms based on |
| 149 | Microchip PIC32 family devices. |
| 150 | |
Quentin Schulz | 3add62d | 2018-08-31 16:28:29 +0200 | [diff] [blame] | 151 | config PL022_SPI |
| 152 | bool "ARM AMBA PL022 SSP controller driver" |
| 153 | depends on ARM |
| 154 | help |
| 155 | This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP |
| 156 | controller. If you have an embedded system with an AMBA(R) |
| 157 | bus and a PL022 controller, say Y or M here. |
| 158 | |
Marek Vasut | 6ca967b | 2017-11-29 06:29:46 +0100 | [diff] [blame] | 159 | config RENESAS_RPC_SPI |
| 160 | bool "Renesas RPC SPI driver" |
| 161 | depends on RCAR_GEN3 |
| 162 | help |
| 163 | Enable the Renesas RPC SPI driver, used to access SPI NOR flash |
| 164 | on Renesas RCar Gen3 SoCs. This uses driver model and requires a |
| 165 | device tree binding to operate. |
| 166 | |
Simon Glass | d1c1377 | 2015-09-01 19:19:37 -0600 | [diff] [blame] | 167 | config ROCKCHIP_SPI |
| 168 | bool "Rockchip SPI driver" |
| 169 | help |
| 170 | Enable the Rockchip SPI driver, used to access SPI NOR flash and |
| 171 | other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs. |
| 172 | This uses driver model and requires a device tree binding to |
| 173 | operate. |
| 174 | |
Simon Glass | 4b322d3 | 2015-03-06 13:19:05 -0700 | [diff] [blame] | 175 | config SANDBOX_SPI |
| 176 | bool "Sandbox SPI driver" |
| 177 | depends on SANDBOX && DM |
| 178 | help |
| 179 | Enable SPI support for sandbox. This is an emulation of a real SPI |
| 180 | bus. Devices can be attached to the bus using the device tree |
| 181 | which specifies the driver to use. As an example, see this device |
| 182 | tree fragment from sandbox.dts. It shows that the SPI bus has a |
| 183 | single flash device on chip select 0 which is emulated by the driver |
| 184 | for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c. |
| 185 | |
| 186 | spi@0 { |
| 187 | #address-cells = <1>; |
| 188 | #size-cells = <0>; |
| 189 | reg = <0>; |
| 190 | compatible = "sandbox,spi"; |
| 191 | cs-gpios = <0>, <&gpio_a 0>; |
| 192 | flash@0 { |
| 193 | reg = <0>; |
| 194 | compatible = "spansion,m25p16", "sandbox,spi-flash"; |
| 195 | spi-max-frequency = <40000000>; |
| 196 | sandbox,filename = "spi.bin"; |
| 197 | }; |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 198 | }; |
Jagan Teki | dd32f51 | 2015-06-27 04:41:11 +0530 | [diff] [blame] | 199 | |
Michael Kurz | 337ff2a | 2017-01-22 16:04:30 +0100 | [diff] [blame] | 200 | config STM32_QSPI |
| 201 | bool "STM32F7 QSPI driver" |
| 202 | depends on STM32F7 |
| 203 | help |
| 204 | Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be |
| 205 | used to access the SPI NOR flash chips on platforms embedding |
| 206 | this ST IP core. |
| 207 | |
Stefan Mavrodiev | 5d71604 | 2018-02-06 15:14:33 +0200 | [diff] [blame] | 208 | config SUN4I_SPI |
| 209 | bool "Allwinner A10 SoCs SPI controller" |
| 210 | help |
| 211 | SPI driver for Allwinner sun4i, sun5i and sun7i SoCs |
| 212 | |
Jagan Teki | 7977d66 | 2015-06-27 15:57:53 +0530 | [diff] [blame] | 213 | config TEGRA114_SPI |
| 214 | bool "nVidia Tegra114 SPI driver" |
| 215 | help |
| 216 | Enable the nVidia Tegra114 SPI driver. This driver can be used to |
| 217 | access the SPI NOR flash on platforms embedding this nVidia Tegra114 |
| 218 | IP core. |
| 219 | |
| 220 | This controller is different than the older SoCs SPI controller and |
| 221 | also register interface get changed with this controller. |
| 222 | |
Jagan Teki | a900d40 | 2015-06-27 16:04:05 +0530 | [diff] [blame] | 223 | config TEGRA20_SFLASH |
| 224 | bool "nVidia Tegra20 Serial Flash controller driver" |
| 225 | help |
| 226 | Enable the nVidia Tegra20 Serial Flash controller driver. This driver |
| 227 | can be used to access the SPI NOR flash on platforms embedding this |
| 228 | nVidia Tegra20 IP core. |
| 229 | |
Jagan Teki | 271aa56 | 2015-06-27 16:07:54 +0530 | [diff] [blame] | 230 | config TEGRA20_SLINK |
| 231 | bool "nVidia Tegra20/Tegra30 SLINK driver" |
| 232 | help |
| 233 | Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can |
| 234 | be used to access the SPI NOR flash on platforms embedding this |
| 235 | nVidia Tegra20/Tegra30 IP cores. |
| 236 | |
Tom Warren | 5fb0c84 | 2015-10-12 14:50:54 -0700 | [diff] [blame] | 237 | config TEGRA210_QSPI |
| 238 | bool "nVidia Tegra210 QSPI driver" |
| 239 | help |
| 240 | Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver |
| 241 | be used to access SPI chips on platforms embedding this |
| 242 | NVIDIA Tegra210 IP core. |
| 243 | |
Jagan Teki | cd70d7d | 2015-06-27 04:32:43 +0530 | [diff] [blame] | 244 | config XILINX_SPI |
| 245 | bool "Xilinx SPI driver" |
Jagan Teki | cd70d7d | 2015-06-27 04:32:43 +0530 | [diff] [blame] | 246 | help |
| 247 | Enable the Xilinx SPI driver from the Xilinx EDK. This SPI |
| 248 | controller support 8 bit SPI transfers only, with or w/o FIFO. |
| 249 | For more info on Xilinx SPI Register Definitions and Overview |
| 250 | see driver file - drivers/spi/xilinx_spi.c |
| 251 | |
Jagan Teki | cad526f | 2015-06-27 00:51:38 +0530 | [diff] [blame] | 252 | config ZYNQ_SPI |
| 253 | bool "Zynq SPI driver" |
Michal Simek | 4b066a1 | 2018-08-22 14:55:27 +0200 | [diff] [blame] | 254 | depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL |
Jagan Teki | cad526f | 2015-06-27 00:51:38 +0530 | [diff] [blame] | 255 | help |
| 256 | Enable the Zynq SPI driver. This driver can be used to |
| 257 | access the SPI NOR flash on platforms embedding this Zynq |
| 258 | SPI IP core. |
Jagan Teki | bfd3f8b | 2015-06-27 22:35:14 +0530 | [diff] [blame] | 259 | |
Jagan Teki | f2e1c41 | 2015-08-16 00:19:38 +0530 | [diff] [blame] | 260 | config ZYNQ_QSPI |
| 261 | bool "Zynq QSPI driver" |
| 262 | depends on ARCH_ZYNQ |
| 263 | help |
| 264 | Enable the Zynq Quad-SPI (QSPI) driver. This driver can be |
| 265 | used to access the SPI NOR flash on platforms embedding this |
| 266 | Zynq QSPI IP core. This IP is used to connect the flash in |
| 267 | 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel. |
| 268 | |
Siva Durga Prasad Paladugu | 7659738 | 2018-07-04 17:31:23 +0530 | [diff] [blame] | 269 | config ZYNQMP_GQSPI |
| 270 | bool "Configure ZynqMP Generic QSPI" |
Michal Simek | 4b066a1 | 2018-08-22 14:55:27 +0200 | [diff] [blame] | 271 | depends on ARCH_ZYNQMP || ARCH_VERSAL |
Siva Durga Prasad Paladugu | 7659738 | 2018-07-04 17:31:23 +0530 | [diff] [blame] | 272 | help |
| 273 | This option is used to enable ZynqMP QSPI controller driver which |
| 274 | is used to communicate with qspi flash devices. |
| 275 | |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 276 | endif # if DM_SPI |
| 277 | |
Peng Fan | 176ee21 | 2017-04-13 14:09:55 +0800 | [diff] [blame] | 278 | config SOFT_SPI |
| 279 | bool "Soft SPI driver" |
| 280 | help |
| 281 | Enable Soft SPI driver. This driver is to use GPIO simulate |
| 282 | the SPI protocol. |
| 283 | |
Tuomas Tynkkynen | 4afde86 | 2018-02-07 02:42:23 +0200 | [diff] [blame] | 284 | config CF_SPI |
| 285 | bool "ColdFire SPI driver" |
| 286 | help |
| 287 | Enable the ColdFire SPI driver. This driver can be used on |
| 288 | some m68k SoCs. |
| 289 | |
Jagan Teki | a0497a3 | 2015-06-27 15:21:36 +0530 | [diff] [blame] | 290 | config FSL_ESPI |
| 291 | bool "Freescale eSPI driver" |
| 292 | help |
| 293 | Enable the Freescale eSPI driver. This driver can be used to |
| 294 | access the SPI interface and SPI NOR flash on platforms embedding |
| 295 | this Freescale eSPI IP core. |
| 296 | |
Jagan Teki | 467c629 | 2016-09-03 12:58:33 +0530 | [diff] [blame] | 297 | config FSL_QSPI |
| 298 | bool "Freescale QSPI driver" |
| 299 | help |
| 300 | Enable the Freescale Quad-SPI (QSPI) driver. This driver can be |
| 301 | used to access the SPI NOR flash on platforms embedding this |
| 302 | Freescale IP core. |
| 303 | |
Adam Ford | 19b336e | 2017-12-30 07:33:42 -0600 | [diff] [blame] | 304 | config DAVINCI_SPI |
| 305 | bool "Davinci & Keystone SPI driver" |
| 306 | depends on ARCH_DAVINCI || ARCH_KEYSTONE |
| 307 | help |
| 308 | Enable the Davinci SPI driver |
| 309 | |
Tuomas Tynkkynen | 1eadef8 | 2018-02-07 02:42:16 +0200 | [diff] [blame] | 310 | config SH_SPI |
| 311 | bool "SuperH SPI driver" |
| 312 | help |
| 313 | Enable the SuperH SPI controller driver. This driver can be used |
| 314 | on various SuperH SoCs, such as SH7757. |
| 315 | |
Tuomas Tynkkynen | fa8fdfd | 2018-02-07 02:42:17 +0200 | [diff] [blame] | 316 | config SH_QSPI |
| 317 | bool "Renesas Quad SPI driver" |
| 318 | help |
| 319 | Enable the Renesas Quad SPI controller driver. This driver can be |
| 320 | used on Renesas SoCs. |
| 321 | |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 322 | config TI_QSPI |
| 323 | bool "TI QSPI driver" |
| 324 | help |
| 325 | Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms. |
| 326 | This driver support spi flash single, quad and memory reads. |
| 327 | |
Tuomas Tynkkynen | 13b5cb8 | 2018-02-07 02:42:22 +0200 | [diff] [blame] | 328 | config KIRKWOOD_SPI |
| 329 | bool "Marvell Kirkwood SPI Driver" |
| 330 | help |
| 331 | Enable support for SPI on various Marvell SoCs, such as |
| 332 | Kirkwood and Armada 375. |
| 333 | |
Tuomas Tynkkynen | 2621268 | 2018-02-07 02:42:21 +0200 | [diff] [blame] | 334 | config LPC32XX_SSP |
| 335 | bool "LPC32XX SPI Driver" |
| 336 | help |
| 337 | Enable support for SPI on LPC32xx |
| 338 | |
Christophe Leroy | 8c3f122 | 2017-07-06 10:33:25 +0200 | [diff] [blame] | 339 | config MPC8XX_SPI |
| 340 | bool "MPC8XX SPI Driver" |
Christophe Leroy | b3510fb | 2018-03-16 17:20:41 +0100 | [diff] [blame] | 341 | depends on MPC8xx |
Christophe Leroy | 8c3f122 | 2017-07-06 10:33:25 +0200 | [diff] [blame] | 342 | help |
| 343 | Enable support for SPI on MPC8XX |
| 344 | |
Tuomas Tynkkynen | d331891 | 2018-02-07 02:42:20 +0200 | [diff] [blame] | 345 | config MPC8XXX_SPI |
| 346 | bool "MPC8XXX SPI Driver" |
| 347 | help |
| 348 | Enable support for SPI on the MPC8XXX PowerPC SoCs. |
| 349 | |
Tuomas Tynkkynen | d395879 | 2018-02-07 02:42:19 +0200 | [diff] [blame] | 350 | config MXC_SPI |
| 351 | bool "MXC SPI Driver" |
| 352 | help |
| 353 | Enable the MXC SPI controller driver. This driver can be used |
| 354 | on various i.MX SoCs such as i.MX31/35/51/6/7. |
| 355 | |
Tuomas Tynkkynen | 3244de9 | 2018-02-07 02:42:18 +0200 | [diff] [blame] | 356 | config MXS_SPI |
| 357 | bool "MXS SPI Driver" |
| 358 | help |
| 359 | Enable the MXS SPI controller driver. This driver can be used |
| 360 | on the i.MX23 and i.MX28 SoCs. |
| 361 | |
Adam Ford | 03a333a | 2017-07-26 22:25:29 -0500 | [diff] [blame] | 362 | config OMAP3_SPI |
| 363 | bool "McSPI driver for OMAP" |
| 364 | help |
| 365 | SPI master controller for OMAP24XX and later Multichannel SPI |
| 366 | (McSPI). This driver be used to access SPI chips on platforms |
| 367 | embedding this OMAP3 McSPI IP core. |
| 368 | |
Adam Ford | 4e96ff8 | 2018-04-15 13:51:26 -0400 | [diff] [blame] | 369 | endif # menu "SPI Support" |