[U-Boot] [PATCH 1/2] drivers: spi: Add commands for Micron SPI
Vladimir Olovyannikov
vladimir.olovyannikov at broadcom.com
Fri Nov 22 23:09:38 UTC 2019
Add commands for dual and quad SPI transfers on Micon SPI.
Signed-off-by: Corneliu Doban <corneliu.doban at broadcom.com>
Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov at broadcom.com>
---
include/spi.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/spi.h b/include/spi.h
index 6fbb4336ce..ae36835e95 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -30,6 +30,10 @@
#define SPI_RX_SLOW BIT(11) /* receive with 1 wire slow */
#define SPI_RX_DUAL BIT(12) /* receive with 2 wires */
#define SPI_RX_QUAD BIT(13) /* receive with 4 wires */
+#define SPI_RX_4X BIT(14) /*
+ * addr on 1 wire
+ * data on 4 wires
+ */
/* Header byte that marks the start of the message */
#define SPI_PREAMBLE_END_BYTE 0xec
@@ -115,6 +119,8 @@ struct spi_slave {
#define SPI_XFER_ONCE (SPI_XFER_BEGIN | SPI_XFER_END)
#define SPI_XFER_MMAP BIT(2) /* Memory Mapped start */
#define SPI_XFER_MMAP_END BIT(3) /* Memory Mapped End */
+#define SPI_XFER_DUAL BIT(30)
+#define SPI_XFER_QUAD BIT(31)
};
/**
--
2.17.1
More information about the U-Boot
mailing list