summaryrefslogtreecommitdiffstats
path: root/include/spi.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-07 00:11:35 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-12 21:40:22 +0530
commit056fbc73d54df64adcb93c513cba708acb2683bd (patch)
tree4243a3f6eb6f1a2fabc57cdad08031fc4e351cd6 /include/spi.h
parentf77f469117ab3184ac45683a50dc446265be28cc (diff)
downloadtalos-obmc-uboot-056fbc73d54df64adcb93c513cba708acb2683bd.tar.gz
talos-obmc-uboot-056fbc73d54df64adcb93c513cba708acb2683bd.zip
sf: Add dual memories support - DUAL_PARALLEL
This patch added support for accessing dual memories in parallel connection with single chipselect line from controller. For more info - see doc/SPI/README.dual-flash Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/spi.h')
-rw-r--r--include/spi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/spi.h b/include/spi.h
index d214d82923..ffd66478b1 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -47,6 +47,7 @@
/* SPI bus connection options */
#define SPI_CONN_DUAL_SHARED 1 << 0
+#define SPI_CONN_DUAL_SEPARATED 1 << 1
/* Header byte that marks the start of the message */
#define SPI_PREAMBLE_END_BYTE 0xec
@@ -66,7 +67,7 @@
* @max_write_size: If non-zero, the maximum number of bytes which can
* be written at once, excluding command bytes.
* @memory_map: Address of read-only SPI flash access.
- * @option: Varies SPI bus options - separate bus.
+ * @option: Varies SPI bus options - separate, shared bus.
* @flags: Indication of SPI flags.
*/
struct spi_slave {
OpenPOWER on IntegriCloud