mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
1853030e21
commit
0c456cee95
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue