summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-mvebu/spi.h
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2016-10-27 21:16:05 +1300
committerJagan Teki <jagan@openedev.com>2016-11-18 13:04:52 +0530
commitebfa18cb3d8b5e6f57ac22e39b21c4fc1c1d3597 (patch)
treec05005b35591ae1a99f010d1dbad4ebc7899119f /arch/arm/include/asm/arch-mvebu/spi.h
parentc2cbd164ea5b5f564fcf03447c7bf9ec4a9f5699 (diff)
spi: kirkwood_spi: implement mvebu_spi_set_mode()
Set the appropriate bits in the interface config register based on the SPI_ mode flags. Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Jagan Teki <jteki@openedev.com> Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'arch/arm/include/asm/arch-mvebu/spi.h')
-rw-r--r--arch/arm/include/asm/arch-mvebu/spi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mvebu/spi.h b/arch/arm/include/asm/arch-mvebu/spi.h
index 78869a253d..3545aed173 100644
--- a/arch/arm/include/asm/arch-mvebu/spi.h
+++ b/arch/arm/include/asm/arch-mvebu/spi.h
@@ -52,6 +52,10 @@ struct kwspi_registers {
#define KWSPI_ADRLEN_3BYTE (2 << 8)
#define KWSPI_ADRLEN_4BYTE (3 << 8)
#define KWSPI_ADRLEN_MASK (3 << 8)
+#define KWSPI_CPOL (1 << 11)
+#define KWSPI_CPHA (1 << 12)
+#define KWSPI_TXLSBF (1 << 13)
+#define KWSPI_RXLSBF (1 << 14)
#define KWSPI_IRQUNMASK 1 /* unmask SPI interrupt */
#define KWSPI_IRQMASK 0 /* mask SPI interrupt */