Jagan Teki | de82305 | 2015-06-27 22:35:14 +0530 | [diff] [blame] | 1 | menu "SPI Support" |
| 2 | |
Masahiro Yamada | da333ae | 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 | f94a1be | 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 | 892cac7 | 2015-03-06 13:19:05 -0700 | [diff] [blame] | 15 | |
Jagan Teki | e4976af | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 16 | if DM_SPI |
| 17 | |
| 18 | config 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 | |
| 25 | config 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 Teki | 94ea308 | 2015-06-27 14:17:06 +0530 | [diff] [blame] | 32 | config FSL_DSPI |
| 33 | bool "Freescale DSPI driver" |
| 34 | help |
| 35 | Enable the Freescale DSPI driver. This driver can be used to |
| 36 | access the SPI NOR flash and SPI Data flash on platforms embedding |
| 37 | this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms |
| 38 | use this driver. |
| 39 | |
Jagan Teki | 91c22d0 | 2015-06-27 15:23:07 +0530 | [diff] [blame^] | 40 | config FSL_QSPI |
| 41 | bool "Freescale QSPI driver" |
| 42 | help |
| 43 | Enable the Freescale Quad-SPI (QSPI) driver. This driver can be |
| 44 | used to access the SPI NOR flash on platforms embedding this |
| 45 | Freescale IP core. |
| 46 | |
Simon Glass | 892cac7 | 2015-03-06 13:19:05 -0700 | [diff] [blame] | 47 | config SANDBOX_SPI |
| 48 | bool "Sandbox SPI driver" |
| 49 | depends on SANDBOX && DM |
| 50 | help |
| 51 | Enable SPI support for sandbox. This is an emulation of a real SPI |
| 52 | bus. Devices can be attached to the bus using the device tree |
| 53 | which specifies the driver to use. As an example, see this device |
| 54 | tree fragment from sandbox.dts. It shows that the SPI bus has a |
| 55 | single flash device on chip select 0 which is emulated by the driver |
| 56 | for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c. |
| 57 | |
| 58 | spi@0 { |
| 59 | #address-cells = <1>; |
| 60 | #size-cells = <0>; |
| 61 | reg = <0>; |
| 62 | compatible = "sandbox,spi"; |
| 63 | cs-gpios = <0>, <&gpio_a 0>; |
| 64 | flash@0 { |
| 65 | reg = <0>; |
| 66 | compatible = "spansion,m25p16", "sandbox,spi-flash"; |
| 67 | spi-max-frequency = <40000000>; |
| 68 | sandbox,filename = "spi.bin"; |
| 69 | }; |
Jagan Teki | e4976af | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 70 | }; |
Jagan Teki | f924a20 | 2015-06-27 04:41:11 +0530 | [diff] [blame] | 71 | |
Jagan Teki | 075143d | 2015-06-27 04:32:43 +0530 | [diff] [blame] | 72 | config XILINX_SPI |
| 73 | bool "Xilinx SPI driver" |
Jagan Teki | 075143d | 2015-06-27 04:32:43 +0530 | [diff] [blame] | 74 | help |
| 75 | Enable the Xilinx SPI driver from the Xilinx EDK. This SPI |
| 76 | controller support 8 bit SPI transfers only, with or w/o FIFO. |
| 77 | For more info on Xilinx SPI Register Definitions and Overview |
| 78 | see driver file - drivers/spi/xilinx_spi.c |
| 79 | |
Jagan Teki | df30a42 | 2015-06-27 00:51:38 +0530 | [diff] [blame] | 80 | config ZYNQ_SPI |
| 81 | bool "Zynq SPI driver" |
Jagan Teki | e4976af | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 82 | depends on ARCH_ZYNQ || TARGET_XILINX_ZYNQMP |
Jagan Teki | df30a42 | 2015-06-27 00:51:38 +0530 | [diff] [blame] | 83 | help |
| 84 | Enable the Zynq SPI driver. This driver can be used to |
| 85 | access the SPI NOR flash on platforms embedding this Zynq |
| 86 | SPI IP core. |
Jagan Teki | de82305 | 2015-06-27 22:35:14 +0530 | [diff] [blame] | 87 | |
Jagan Teki | e4976af | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 88 | endif # if DM_SPI |
| 89 | |
Jagan Teki | 3debffa | 2015-06-27 15:21:36 +0530 | [diff] [blame] | 90 | config FSL_ESPI |
| 91 | bool "Freescale eSPI driver" |
| 92 | help |
| 93 | Enable the Freescale eSPI driver. This driver can be used to |
| 94 | access the SPI interface and SPI NOR flash on platforms embedding |
| 95 | this Freescale eSPI IP core. |
| 96 | |
Jagan Teki | e4976af | 2015-06-27 22:37:00 +0530 | [diff] [blame] | 97 | config TI_QSPI |
| 98 | bool "TI QSPI driver" |
| 99 | help |
| 100 | Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms. |
| 101 | This driver support spi flash single, quad and memory reads. |
| 102 | |
Jagan Teki | de82305 | 2015-06-27 22:35:14 +0530 | [diff] [blame] | 103 | endmenu # menu "SPI Support" |