summaryrefslogtreecommitdiffstats
path: root/include/spi
diff options
context:
space:
mode:
authorFranck Jullien <franck.jullien@gmail.com>2011-07-06 00:14:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-07-06 10:25:39 +0200
commit4c35079c1cc05159f31042686dd74e390fd55986 (patch)
tree24505e639c4e9c81892a918aaea8701f64416321 /include/spi
parente6c03f01bf7da74f4d846efb3e014f053ace92bd (diff)
downloadbarebox-4c35079c1cc05159f31042686dd74e390fd55986.tar.gz
barebox-4c35079c1cc05159f31042686dd74e390fd55986.tar.xz
spi: add bits_per_word to proxy structure
During the creation of a new spi device, we need to have the possiblility to give the bits_per_word value to master->setup. As a matter of fact, spi master could check the spi device bits_per_word and compare this value against its capabilities. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/spi')
-rw-r--r--include/spi/spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spi/spi.h b/include/spi/spi.h
index ac2013ad51..948e0501cd 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -15,6 +15,7 @@ struct spi_board_info {
* where the default of SPI_CS_HIGH = 0 is wrong.
*/
u8 mode;
+ u8 bits_per_word;
void *platform_data;
};