]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - drivers/spi/Kconfig
b3ba2b78ad39b5d3772d43aea990af1dca1f3ffc
[karo-tx-uboot.git] / drivers / spi / Kconfig
1 config SPI
2         bool "Enable SPI bus support"
3
4 config DM_SPI
5         bool "Enable Driver Model for SPI drivers"
6         depends on DM && SPI
7         help
8           Enable driver model for SPI. The SPI slave interface
9           (spi_setup_slave(), spi_xfer(), etc.) is then implemented by
10           the SPI uclass. Drivers provide methods to access the SPI
11           buses that they control. The uclass interface is defined in
12           include/spi.h. The existing spi_slave structure is attached
13           as 'parent data' to every slave on each bus. Slaves
14           typically use driver-private data instead of extending the
15           spi_slave structure.
16
17 config SANDBOX_SPI
18         bool "Sandbox SPI driver"
19         depends on SANDBOX && DM
20         help
21           Enable SPI support for sandbox. This is an emulation of a real SPI
22           bus. Devices can be attached to the bus using the device tree
23           which specifies the driver to use. As an example, see this device
24           tree fragment from sandbox.dts. It shows that the SPI bus has a
25           single flash device on chip select 0 which is emulated by the driver
26           for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
27
28           spi@0 {
29                 #address-cells = <1>;
30                 #size-cells = <0>;
31                 reg = <0>;
32                 compatible = "sandbox,spi";
33                 cs-gpios = <0>, <&gpio_a 0>;
34                 flash@0 {
35                         reg = <0>;
36                         compatible = "spansion,m25p16", "sandbox,spi-flash";
37                         spi-max-frequency = <40000000>;
38                         sandbox,filename = "spi.bin";
39                 };
40         };
41
42 config DESIGNWARE_SPI
43         bool "Designware SPI driver"
44         depends on DM_SPI
45         help
46           Enable the Designware SPI driver. This driver can be used to
47           access the SPI NOR flash on platforms embedding this Designware
48           IP core.
49
50 config CADENCE_QSPI
51         bool "Cadence QSPI driver"
52         depends on DM_SPI
53         help
54           Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
55           used to access the SPI NOR flash on platforms embedding this
56           Cadence IP core.
57
58 config ZYNQ_SPI
59         bool "Zynq SPI driver"
60         depends on DM_SPI && (ARCH_ZYNQ || TARGET_XILINX_ZYNQMP)
61         help
62           Enable the Zynq SPI driver. This driver can be used to
63           access the SPI NOR flash on platforms embedding this Zynq
64           SPI IP core.