]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - drivers/spi/Kconfig
b3b333e9ec0c88422aa16fdff6cc25e2e9941d22
[karo-tx-uboot.git] / drivers / spi / Kconfig
1 menu "SPI Support"
2
3 config SPI
4         bool "Enable SPI support"
5
6 config DM_SPI
7         bool "Enable Driver Model for SPI drivers"
8         depends on DM && SPI
9         help
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.
18
19 if DM_SPI
20
21 config CADENCE_QSPI
22         bool "Cadence QSPI driver"
23         help
24           Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
25           used to access the SPI NOR flash on platforms embedding this
26           Cadence IP core.
27
28 config DESIGNWARE_SPI
29         bool "Designware SPI driver"
30         help
31           Enable the Designware SPI driver. This driver can be used to
32           access the SPI NOR flash on platforms embedding this Designware
33           IP core.
34
35 config EXYNOS_SPI
36         bool "Samsung Exynos SPI driver"
37         help
38           Enable the Samsung Exynos SPI driver. This driver can be used to
39           access the SPI NOR flash on platforms embedding this Samsung
40           Exynos IP core.
41
42 config FSL_DSPI
43         bool "Freescale DSPI driver"
44         help
45           Enable the Freescale DSPI driver. This driver can be used to
46           access the SPI NOR flash and SPI Data flash on platforms embedding
47           this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
48           use this driver.
49
50 config FSL_QSPI
51         bool "Freescale QSPI driver"
52         help
53           Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
54           used to access the SPI NOR flash on platforms embedding this
55           Freescale IP core.
56
57 config SANDBOX_SPI
58         bool "Sandbox SPI driver"
59         depends on SANDBOX && DM
60         help
61           Enable SPI support for sandbox. This is an emulation of a real SPI
62           bus. Devices can be attached to the bus using the device tree
63           which specifies the driver to use. As an example, see this device
64           tree fragment from sandbox.dts. It shows that the SPI bus has a
65           single flash device on chip select 0 which is emulated by the driver
66           for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
67
68           spi@0 {
69                 #address-cells = <1>;
70                 #size-cells = <0>;
71                 reg = <0>;
72                 compatible = "sandbox,spi";
73                 cs-gpios = <0>, <&gpio_a 0>;
74                 flash@0 {
75                         reg = <0>;
76                         compatible = "spansion,m25p16", "sandbox,spi-flash";
77                         spi-max-frequency = <40000000>;
78                         sandbox,filename = "spi.bin";
79                 };
80           };
81
82 config XILINX_SPI
83         bool "Xilinx SPI driver"
84         help
85           Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
86           controller support 8 bit SPI transfers only, with or w/o FIFO.
87           For more info on Xilinx SPI Register Definitions and Overview
88           see driver file - drivers/spi/xilinx_spi.c
89
90 config ZYNQ_SPI
91         bool "Zynq SPI driver"
92         depends on ARCH_ZYNQ || TARGET_XILINX_ZYNQMP
93         help
94           Enable the Zynq SPI driver. This driver can be used to
95           access the SPI NOR flash on platforms embedding this Zynq
96           SPI IP core.
97
98 endif # if DM_SPI
99
100 config FSL_ESPI
101         bool "Freescale eSPI driver"
102         help
103           Enable the Freescale eSPI driver. This driver can be used to
104           access the SPI interface and SPI NOR flash on platforms embedding
105           this Freescale eSPI IP core.
106
107 config TI_QSPI
108         bool "TI QSPI driver"
109         help
110           Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
111           This driver support spi flash single, quad and memory reads.
112
113 endmenu # menu "SPI Support"