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