summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-03-11 06:08:05 +0000
committerSimon Glass <sjg@chromium.org>2013-03-19 08:45:36 -0700
commit0c456cee952f3fa5ae6f5c42f960eeaa39140b62 (patch)
treebf065ddb5bef5467ab1f0bebe38bd9d5a9951c66 /include
parent1853030e2164c849c09f1ba051d243265e2591ec (diff)
downloadu-boot-imx-0c456cee952f3fa5ae6f5c42f960eeaa39140b62.zip
u-boot-imx-0c456cee952f3fa5ae6f5c42f960eeaa39140b62.tar.gz
u-boot-imx-0c456cee952f3fa5ae6f5c42f960eeaa39140b62.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/spi.h3
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;
};
/*-----------------------------------------------------------------------