[5/8] SPI: Add SPI slave mode flag

Message ID 1343732461-3092-6-git-send-email-rajeshwari.s@samsung.com
State New
Headers show

Commit Message

Rajeshwari Shinde July 31, 2012, 11 a.m.
This patch adds a new SPI mode flags for SPI slave mode.  It enables
slave mode in a SPI interface, and is set/clear in spi_setup_slave()
from the mode parameter.

Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
Changes in V2:
	- None.
 include/spi.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/include/spi.h b/include/spi.h
index 60e85db..733c395 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -37,6 +37,7 @@ 
 #define	SPI_LSB_FIRST	0x08			/* per-word bits-on-wire */
 #define	SPI_3WIRE	0x10			/* SI/SO signals shared */
 #define	SPI_LOOP	0x20			/* loopback mode */
+#define	SPI_SLAVE	0x40			/* slave mode */
 
 /* SPI transfer flags */
 #define SPI_XFER_BEGIN	0x01			/* Assert CS before transfer */