[PATCH v2 2/2] drivers: spi: add commands for micron SPI

Rayagonda Kokatanur rayagonda.kokatanur at broadcom.com
Sun May 17 09:24:12 CEST 2020


Add commands for dual and quad SPI transfers on Micon SPI.

Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
---
 include/spi.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/spi.h b/include/spi.h
index 2b4929fc79..491f1f805c 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -150,6 +150,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