summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2015-12-23 20:39:37 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:27 +0530
commitf8e2f92d41f1ddbb14174c47deb4d0fce87a1fc0 (patch)
tree30c622928294c0e369ad5cfd6de76dffe01214f0 /include
parent223091443ccf821e0abdc8ead8441424321c5d3c (diff)
downloadu-boot-imx-f8e2f92d41f1ddbb14174c47deb4d0fce87a1fc0.zip
u-boot-imx-f8e2f92d41f1ddbb14174c47deb4d0fce87a1fc0.tar.gz
u-boot-imx-f8e2f92d41f1ddbb14174c47deb4d0fce87a1fc0.tar.bz2
spi: Add support for dual and quad mode
spi bus can support dual and quad wire data transfers for tx and rx. So defining dual and quad modes for both tx and rx. Also add support to parse bus width used for spi tx and rx transfers. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Jagan Teki <jteki@openedev.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include')
-rw-r--r--include/spi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spi.h b/include/spi.h
index 25470e4..4b88d39 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -61,11 +61,13 @@ struct dm_spi_bus {
* @cs: Chip select number (0..n-1)
* @max_hz: Maximum bus speed that this slave can tolerate
* @mode: SPI mode to use for this device (see SPI mode flags)
+ * @mode_rx: SPI RX mode to use for this slave (see SPI mode_rx flags)
*/
struct dm_spi_slave_platdata {
unsigned int cs;
uint max_hz;
uint mode;
+ u8 mode_rx;
};
#endif /* CONFIG_DM_SPI */