summaryrefslogtreecommitdiffstats
path: root/include/spi
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-08-31 16:55:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-08-31 17:12:28 +0200
commitcd4df8f82b77e2599a65b81cfa06f3bc58399e15 (patch)
tree0f61c94c195d173d757d9b354863ce76f94cd1e5 /include/spi
parent311f02fbe4f00cafbb365ef76b8ad2231a2934cd (diff)
downloadbarebox-cd4df8f82b77e2599a65b81cfa06f3bc58399e15.tar.gz
barebox-cd4df8f82b77e2599a65b81cfa06f3bc58399e15.tar.xz
spi: i.MX: use start mode control bit
The i.MX SPI controller in version 2.3 can immediately start a transfer when the txfifo is written to. In this mode we no longer have to trigger the transfer with the xch bit which makes the code a bit simpler. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/spi')
-rw-r--r--include/spi/imx-spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spi/imx-spi.h b/include/spi/imx-spi.h
index 560b092bd2..5c89634770 100644
--- a/include/spi/imx-spi.h
+++ b/include/spi/imx-spi.h
@@ -61,6 +61,7 @@
#define CSPI_2_3_CTRL 0x08
#define CSPI_2_3_CTRL_ENABLE (1 << 0)
#define CSPI_2_3_CTRL_XCH (1 << 2)
+#define CSPI_2_3_CTRL_SMC (1 << 3)
#define CSPI_2_3_CTRL_MODE(cs) (1 << ((cs) + 4))
#define CSPI_2_3_CTRL_POSTDIV_OFFSET 8
#define CSPI_2_3_CTRL_PREDIV_OFFSET 12