[U-Boot] [PATCH v2 09/10] spi: zynq_qspi: Add quad read/write commands support

Jagannadha Sutradharudu Teki jagannadha.sutradharudu-teki at xilinx.com
Wed Aug 7 22:09:42 CEST 2013


QPP - Quad Page Program
DIOR - Dual IO high perf read

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
---
Changes for v2:
	- none

 drivers/spi/zynq_qspi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c
index df090d7..02a1a80 100644
--- a/drivers/spi/zynq_qspi.c
+++ b/drivers/spi/zynq_qspi.c
@@ -42,8 +42,10 @@
 #define ZYNQ_QSPI_FLASH_INST_WREN	0x06	/* Write enable */
 #define ZYNQ_QSPI_FLASH_INST_AFR	0x0B	/* Fast read data bytes */
 #define ZYNQ_QSPI_FLASH_INST_BE_4K	0x20	/* Erase 4KiB block */
+#define ZYNQ_QSPI_FLASH_INST_QPP	0x32	/* Quad page program */
 #define ZYNQ_QSPI_FLASH_INST_RDSR2	0x35	/* Read status register 2 */
 #define ZYNQ_QSPI_FLASH_INST_BE_32K	0x52	/* Erase 32KiB block */
+#define ZYNQ_QSPI_FLASH_INST_QFR	0x6B	/* Quad output fast read */
 #define ZYNQ_QSPI_FLASH_INST_RDID	0x9F	/* Read JEDEC ID */
 #define ZYNQ_QSPI_FLASH_INST_SE		0xD8	/* Sector erase (usually 64KB)*/
 
@@ -94,8 +96,10 @@ static struct zynq_qspi_inst_format flash_inst[] = {
 	{ZYNQ_QSPI_FLASH_INST_WREN, 1, ZYNQ_QSPI_TXD_00_01_OFFSET},
 	{ZYNQ_QSPI_FLASH_INST_AFR, 1, ZYNQ_QSPI_TXD_00_01_OFFSET},
 	{ZYNQ_QSPI_FLASH_INST_BE_4K, 4, ZYNQ_QSPI_TXD_00_00_OFFSET},
+	{ZYNQ_QSPI_FLASH_INST_QPP, 4, ZYNQ_QSPI_TXD_00_00_OFFSET},
 	{ZYNQ_QSPI_FLASH_INST_RDSR2, 1, ZYNQ_QSPI_TXD_00_01_OFFSET},
 	{ZYNQ_QSPI_FLASH_INST_BE_32K, 4, ZYNQ_QSPI_TXD_00_00_OFFSET},
+	{ZYNQ_QSPI_FLASH_INST_QFR, 1, ZYNQ_QSPI_TXD_00_01_OFFSET},
 	{ZYNQ_QSPI_FLASH_INST_RDID, 1, ZYNQ_QSPI_TXD_00_01_OFFSET},
 	{ZYNQ_QSPI_FLASH_INST_SE, 4, ZYNQ_QSPI_TXD_00_00_OFFSET},
 	/* Add all the instructions supported by the flash device */
-- 
1.8.3




More information about the U-Boot mailing list