]> git.sur5r.net Git - u-boot/blobdiff - include/spi.h
drivers: spi: consider command bytes when sending transfers
[u-boot] / include / spi.h
index 8c4b882c54d390e91eaa8b5d01a2e9aaa1f18491..5a7df1c7063610a71f2d08e4c1a75ce2b8777aed 100644 (file)
@@ -86,8 +86,10 @@ struct dm_spi_slave_platdata {
  * @cs:                        ID of the chip select connected to the slave.
  * @mode:              SPI mode to use for this slave (see SPI mode flags)
  * @wordlen:           Size of SPI word in number of bits
+ * @max_read_size:     If non-zero, the maximum number of bytes which can
+ *                     be read at once.
  * @max_write_size:    If non-zero, the maximum number of bytes which can
- *                     be written at once, excluding command bytes.
+ *                     be written at once.
  * @memory_map:                Address of read-only SPI flash access.
  * @flags:             Indication of SPI flags.
  */
@@ -102,9 +104,9 @@ struct spi_slave {
 #endif
        uint mode;
        unsigned int wordlen;
+       unsigned int max_read_size;
        unsigned int max_write_size;
        void *memory_map;
-       u8 option;
 
        u8 flags;
 #define SPI_XFER_BEGIN         BIT(0)  /* Assert CS before transfer */