From patchwork Wed Dec 26 22:28:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,08/15] spi: Add parameter for maximum write size Date: Wed, 26 Dec 2012 12:28:26 -0000 From: Simon Glass X-Patchwork-Id: 208237 Message-Id: <1356560913-2205-9-git-send-email-sjg@chromium.org> To: U-Boot Mailing List Cc: Graeme Russ , Tom Warren 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 --- include/spi.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/spi.h b/include/spi.h index ebc9652..3fe2e1e 100644 --- a/include/spi.h +++ b/include/spi.h @@ -49,10 +49,13 @@ * * bus: ID of the bus that the slave is attached to. * cs: ID of the chip select connected to the slave. + * max_write_size: If non-zero, the maximum number of bytes which can + * be written at once, excluding command bytes. */ struct spi_slave { unsigned int bus; unsigned int cs; + unsigned int max_write_size; }; /*-----------------------------------------------------------------------