blob: 7ae2727cf7eeff5205250f16fad1ec9061b0106b [file] [log] [blame]
Masahiro Yamada57ad8ee2014-10-23 22:26:09 +09001config DM_SPI
2 bool "Enable Driver Model for SPI drivers"
3 depends on DM
4 help
Simon Glassd8b771d2015-02-05 21:41:35 -07005 Enable driver model for SPI. The SPI slave interface
6 (spi_setup_slave(), spi_xfer(), etc.) is then implemented by
7 the SPI uclass. Drivers provide methods to access the SPI
8 buses that they control. The uclass interface is defined in
9 include/spi.h. The existing spi_slave structure is attached
10 as 'parent data' to every slave on each bus. Slaves
11 typically use driver-private data instead of extending the
12 spi_slave structure.