[U-Boot] [PATCH 5/8] SPI: Add SPI slave mode flag
Rajeshwari Shinde
rajeshwari.s at samsung.com
Tue Jul 31 12:42:37 CEST 2012
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 at samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s at samsung.com>
---
include/spi.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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 */
--
1.7.4.4
More information about the U-Boot
mailing list