Jagan Teki | bfd3f8b | 2015-06-27 22:35:14 +0530 | [diff] [blame] | 1 | menu "SPI Support" |
| 2 | |
Masahiro Yamada | 57ad8ee | 2014-10-23 22:26:09 +0900 | [diff] [blame] | 3 | config DM_SPI |
| 4 | bool "Enable Driver Model for SPI drivers" |
| 5 | depends on DM |
| 6 | help |
Simon Glass | d8b771d | 2015-02-05 21:41:35 -0700 | [diff] [blame] | 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. |
Simon Glass | 4b322d3 | 2015-03-06 13:19:05 -0700 | [diff] [blame] | 15 | |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 16 | if DM_SPI |
| 17 | |
Thomas Chou | c589954 | 2015-10-14 08:33:34 +0800 | [diff] [blame] | 18 | config 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 | |
Wills Wang | f502148 | 2016-03-16 16:59:58 +0800 | [diff] [blame] | 26 | config ATH79_SPI |
| 27 | bool "Atheros SPI driver" |
| 28 | depends on ARCH_ATH79 |
| 29 | help |
| 30 | Enable the Atheros ar7xxx/ar9xxx SoC SPI driver, it was used |
| 31 | to access SPI NOR flash and other SPI peripherals. This driver |
| 32 | uses driver model and requires a device tree binding to operate. |
| 33 | please refer to doc/device-tree-bindings/spi/spi-ath79.txt. |
| 34 | |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 35 | config CADENCE_QSPI |
| 36 | bool "Cadence QSPI driver" |
| 37 | help |
| 38 | Enable the Cadence Quad-SPI (QSPI) driver. This driver can be |
| 39 | used to access the SPI NOR flash on platforms embedding this |
| 40 | Cadence IP core. |
| 41 | |
| 42 | config DESIGNWARE_SPI |
| 43 | bool "Designware SPI driver" |
| 44 | help |
| 45 | Enable the Designware SPI driver. This driver can be used to |
| 46 | access the SPI NOR flash on platforms embedding this Designware |
| 47 | IP core. |
| 48 | |
Jagan Teki | 6274bf9 | 2015-06-27 15:32:19 +0530 | [diff] [blame] | 49 | config EXYNOS_SPI |
| 50 | bool "Samsung Exynos SPI driver" |
| 51 | help |
| 52 | Enable the Samsung Exynos SPI driver. This driver can be used to |
| 53 | access the SPI NOR flash on platforms embedding this Samsung |
| 54 | Exynos IP core. |
| 55 | |
Jagan Teki | ae30c02 | 2015-06-27 14:17:06 +0530 | [diff] [blame] | 56 | config FSL_DSPI |
| 57 | bool "Freescale DSPI driver" |
| 58 | help |
| 59 | Enable the Freescale DSPI driver. This driver can be used to |
| 60 | access the SPI NOR flash and SPI Data flash on platforms embedding |
| 61 | this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms |
| 62 | use this driver. |
| 63 | |
Jagan Teki | 0e9be24 | 2015-06-27 15:23:07 +0530 | [diff] [blame] | 64 | config FSL_QSPI |
| 65 | bool "Freescale QSPI driver" |
| 66 | help |
| 67 | Enable the Freescale Quad-SPI (QSPI) driver. This driver can be |
| 68 | used to access the SPI NOR flash on platforms embedding this |
| 69 | Freescale IP core. |
| 70 | |
Jagan Teki | 3872b7c | 2015-06-27 15:43:27 +0530 | [diff] [blame] | 71 | config ICH_SPI |
| 72 | bool "Intel ICH SPI driver" |
| 73 | help |
| 74 | Enable the Intel ICH SPI driver. This driver can be used to |
| 75 | access the SPI NOR flash on platforms embedding this Intel |
| 76 | ICH IP core. |
| 77 | |
Simon Glass | d1c1377 | 2015-09-01 19:19:37 -0600 | [diff] [blame] | 78 | config ROCKCHIP_SPI |
| 79 | bool "Rockchip SPI driver" |
| 80 | help |
| 81 | Enable the Rockchip SPI driver, used to access SPI NOR flash and |
| 82 | other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs. |
| 83 | This uses driver model and requires a device tree binding to |
| 84 | operate. |
| 85 | |
Simon Glass | 4b322d3 | 2015-03-06 13:19:05 -0700 | [diff] [blame] | 86 | config SANDBOX_SPI |
| 87 | bool "Sandbox SPI driver" |
| 88 | depends on SANDBOX && DM |
| 89 | help |
| 90 | Enable SPI support for sandbox. This is an emulation of a real SPI |
| 91 | bus. Devices can be attached to the bus using the device tree |
| 92 | which specifies the driver to use. As an example, see this device |
| 93 | tree fragment from sandbox.dts. It shows that the SPI bus has a |
| 94 | single flash device on chip select 0 which is emulated by the driver |
| 95 | for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c. |
| 96 | |
| 97 | spi@0 { |
| 98 | #address-cells = <1>; |
| 99 | #size-cells = <0>; |
| 100 | reg = <0>; |
| 101 | compatible = "sandbox,spi"; |
| 102 | cs-gpios = <0>, <&gpio_a 0>; |
| 103 | flash@0 { |
| 104 | reg = <0>; |
| 105 | compatible = "spansion,m25p16", "sandbox,spi-flash"; |
| 106 | spi-max-frequency = <40000000>; |
| 107 | sandbox,filename = "spi.bin"; |
| 108 | }; |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 109 | }; |
Jagan Teki | dd32f51 | 2015-06-27 04:41:11 +0530 | [diff] [blame] | 110 | |
Jagan Teki | 7977d66 | 2015-06-27 15:57:53 +0530 | [diff] [blame] | 111 | config TEGRA114_SPI |
| 112 | bool "nVidia Tegra114 SPI driver" |
| 113 | help |
| 114 | Enable the nVidia Tegra114 SPI driver. This driver can be used to |
| 115 | access the SPI NOR flash on platforms embedding this nVidia Tegra114 |
| 116 | IP core. |
| 117 | |
| 118 | This controller is different than the older SoCs SPI controller and |
| 119 | also register interface get changed with this controller. |
| 120 | |
Jagan Teki | a900d40 | 2015-06-27 16:04:05 +0530 | [diff] [blame] | 121 | config TEGRA20_SFLASH |
| 122 | bool "nVidia Tegra20 Serial Flash controller driver" |
| 123 | help |
| 124 | Enable the nVidia Tegra20 Serial Flash controller driver. This driver |
| 125 | can be used to access the SPI NOR flash on platforms embedding this |
| 126 | nVidia Tegra20 IP core. |
| 127 | |
Jagan Teki | 271aa56 | 2015-06-27 16:07:54 +0530 | [diff] [blame] | 128 | config TEGRA20_SLINK |
| 129 | bool "nVidia Tegra20/Tegra30 SLINK driver" |
| 130 | help |
| 131 | Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can |
| 132 | be used to access the SPI NOR flash on platforms embedding this |
| 133 | nVidia Tegra20/Tegra30 IP cores. |
| 134 | |
Tom Warren | 5fb0c84 | 2015-10-12 14:50:54 -0700 | [diff] [blame] | 135 | config TEGRA210_QSPI |
| 136 | bool "nVidia Tegra210 QSPI driver" |
| 137 | help |
| 138 | Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver |
| 139 | be used to access SPI chips on platforms embedding this |
| 140 | NVIDIA Tegra210 IP core. |
| 141 | |
Jagan Teki | cd70d7d | 2015-06-27 04:32:43 +0530 | [diff] [blame] | 142 | config XILINX_SPI |
| 143 | bool "Xilinx SPI driver" |
Jagan Teki | cd70d7d | 2015-06-27 04:32:43 +0530 | [diff] [blame] | 144 | help |
| 145 | Enable the Xilinx SPI driver from the Xilinx EDK. This SPI |
| 146 | controller support 8 bit SPI transfers only, with or w/o FIFO. |
| 147 | For more info on Xilinx SPI Register Definitions and Overview |
| 148 | see driver file - drivers/spi/xilinx_spi.c |
| 149 | |
Jagan Teki | cad526f | 2015-06-27 00:51:38 +0530 | [diff] [blame] | 150 | config ZYNQ_SPI |
| 151 | bool "Zynq SPI driver" |
Michal Simek | f5a0371 | 2015-12-07 11:33:58 +0100 | [diff] [blame] | 152 | depends on ARCH_ZYNQ || ARCH_ZYNQMP |
Jagan Teki | cad526f | 2015-06-27 00:51:38 +0530 | [diff] [blame] | 153 | help |
| 154 | Enable the Zynq SPI driver. This driver can be used to |
| 155 | access the SPI NOR flash on platforms embedding this Zynq |
| 156 | SPI IP core. |
Jagan Teki | bfd3f8b | 2015-06-27 22:35:14 +0530 | [diff] [blame] | 157 | |
Jagan Teki | f2e1c41 | 2015-08-16 00:19:38 +0530 | [diff] [blame] | 158 | config ZYNQ_QSPI |
| 159 | bool "Zynq QSPI driver" |
| 160 | depends on ARCH_ZYNQ |
| 161 | help |
| 162 | Enable the Zynq Quad-SPI (QSPI) driver. This driver can be |
| 163 | used to access the SPI NOR flash on platforms embedding this |
| 164 | Zynq QSPI IP core. This IP is used to connect the flash in |
| 165 | 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel. |
| 166 | |
Jagan Teki | ea17242 | 2016-03-14 22:41:24 +0530 | [diff] [blame] | 167 | config OMAP3_SPI |
| 168 | bool "McSPI driver for OMAP" |
| 169 | help |
| 170 | SPI master controller for OMAP24XX and later Multichannel SPI |
| 171 | (McSPI). This driver be used to access SPI chips on platforms |
| 172 | embedding this OMAP3 McSPI IP core. |
| 173 | |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 174 | endif # if DM_SPI |
| 175 | |
Jagan Teki | a0497a3 | 2015-06-27 15:21:36 +0530 | [diff] [blame] | 176 | config FSL_ESPI |
| 177 | bool "Freescale eSPI driver" |
| 178 | help |
| 179 | Enable the Freescale eSPI driver. This driver can be used to |
| 180 | access the SPI interface and SPI NOR flash on platforms embedding |
| 181 | this Freescale eSPI IP core. |
| 182 | |
Jagan Teki | 15a932c | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 183 | config TI_QSPI |
| 184 | bool "TI QSPI driver" |
| 185 | help |
| 186 | Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms. |
| 187 | This driver support spi flash single, quad and memory reads. |
| 188 | |
Jagan Teki | bfd3f8b | 2015-06-27 22:35:14 +0530 | [diff] [blame] | 189 | endmenu # menu "SPI Support" |