Commit 0c456cee952f3fa5ae6f5c42f960eeaa39140b62

Authored by Simon Glass
1 parent 1853030e21

spi: Add parameter for maximum write size

Some SPI controllers (e.g. Intel ICH) have a limit on the number of SPI
bytes that can be written at a time. Add this as a parameter so that
clients of the SPI interface can respect this value.

Signed-off-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -49,10 +49,13 @@
49 49 *
50 50 * bus: ID of the bus that the slave is attached to.
51 51 * cs: ID of the chip select connected to the slave.
  52 + * max_write_size: If non-zero, the maximum number of bytes which can
  53 + * be written at once, excluding command bytes.
52 54 */
53 55 struct spi_slave {
54 56 unsigned int bus;
55 57 unsigned int cs;
  58 + unsigned int max_write_size;
56 59 };
57 60  
58 61 /*-----------------------------------------------------------------------