Masahiro Yamada | da333ae | 2014-10-23 22:26:09 +0900 | [diff] [blame] | 1 | config DM_SPI |
| 2 | bool "Enable Driver Model for SPI drivers" |
| 3 | depends on DM |
| 4 | help |
Simon Glass | f94a1be | 2015-02-05 21:41:35 -0700 | [diff] [blame] | 5 | 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. |