All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/12] Add support for the ZynqMP Generic QSPI
@ 2017-10-21 14:35 Francisco Iglesias
  2017-10-21 14:35 ` [Qemu-devel] [PATCH 01/12] m25p80: Add support for continuous read out of RDSR and READ_FSR Francisco Iglesias
  2017-10-21 14:35 ` [Qemu-devel] [PATCH 04/12] m25p80: Add support for n25q512a11 and n25q512a13 Francisco Iglesias
  0 siblings, 2 replies; 3+ messages in thread
From: Francisco Iglesias @ 2017-10-21 14:35 UTC (permalink / raw)
  To: qemu-devel, francisco.iglesias; +Cc: edgari, alistai

Hi,

This patch series starts by adding support in m25p80 for continous
read out of status registers, SST flash READ ID commands, bank address register
accesses, bulk erase (0x60) and two Numonyx flashes (n25q512a11 and
n25q512a13). Thereafter it updates the striping behaviour to be bit big endiann
in the Xilinx QSPI model and adds support for RX discard, endiannes
configuration of TX/RX registers, zero pumping according tranfer register and 4
byte LQSPI addresses. Finally it adds support for the ZynqMP Generic QSPI and 
adds the ZynqMP QSPI to the xlnx-zcu102 board.

Best regards,
Francisco Iglesias


Francisco Iglesias (12):
  m25p80: Add support for continuous read out of RDSR and READ_FSR
  m25p80: Add support for SST READ ID 0x90/0xAB commands
  m25p80: Add support for BRRD/BRWR and BULK_ERASE (0x60)
  m25p80: Add support for n25q512a11 and n25q512a13
  xilinx_spips: Move FlashCMD, XilinxQSPIPS and XilinxSPIPSClass
  xilinx_spips: Update striping to be big-endian bit order
  xilinx_spips: Add support for RX discard and RX drain
  xilinx_spips: Support configured endiannes of TX/RX registers
  xilinx_spips: Add support for zero pumping
  xilinx_spips: Add support for 4 byte addresses in the LQSPI
  xilinx_spips: Add support for the ZynqMP Generic QSPI
  xlnx-zcu102: Add support for the ZynqMP QSPI

 default-configs/arm-softmmu.mak |   1 +
 hw/arm/xlnx-zcu102.c            |  23 ++
 hw/arm/xlnx-zynqmp.c            |  24 ++
 hw/block/m25p80.c               |  50 ++-
 hw/ssi/xilinx_spips.c           | 834 +++++++++++++++++++++++++++++++++-------
 include/hw/arm/xlnx-zynqmp.h    |   5 +
 include/hw/ssi/xilinx_spips.h   |  72 +++-
 7 files changed, 871 insertions(+), 138 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PATCH 01/12] m25p80: Add support for continuous read out of RDSR and READ_FSR
  2017-10-21 14:35 [Qemu-devel] [PATCH 00/12] Add support for the ZynqMP Generic QSPI Francisco Iglesias
@ 2017-10-21 14:35 ` Francisco Iglesias
  2017-10-21 14:35 ` [Qemu-devel] [PATCH 04/12] m25p80: Add support for n25q512a11 and n25q512a13 Francisco Iglesias
  1 sibling, 0 replies; 3+ messages in thread
From: Francisco Iglesias @ 2017-10-21 14:35 UTC (permalink / raw)
  To: qemu-devel, francisco.iglesias; +Cc: edgari, alistai

Add support for continuous read out of the RDSR and READ_FSR status
registers until the chip select is deasserted.

Signed-off-by: Francisco Iglesias <francisco.iglesias@feimtech.se>
---
 hw/block/m25p80.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index a2438b9..2971519 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -423,6 +423,7 @@ typedef struct Flash {
     uint8_t data[M25P80_INTERNAL_DATA_BUFFER_SZ];
     uint32_t len;
     uint32_t pos;
+    bool data_read_loop;
     uint8_t needed_bytes;
     uint8_t cmd_in_progress;
     uint32_t cur_addr;
@@ -983,6 +984,7 @@ static void decode_new_cmd(Flash *s, uint32_t value)
         }
         s->pos = 0;
         s->len = 1;
+        s->data_read_loop = true;
         s->state = STATE_READING_DATA;
         break;
 
@@ -993,6 +995,7 @@ static void decode_new_cmd(Flash *s, uint32_t value)
         }
         s->pos = 0;
         s->len = 1;
+        s->data_read_loop = true;
         s->state = STATE_READING_DATA;
         break;
 
@@ -1133,6 +1136,7 @@ static int m25p80_cs(SSISlave *ss, bool select)
         s->pos = 0;
         s->state = STATE_IDLE;
         flash_sync_dirty(s, -1);
+        s->data_read_loop = false;
     }
 
     DB_PRINT_L(0, "%sselect\n", select ? "de" : "");
@@ -1198,7 +1202,9 @@ static uint32_t m25p80_transfer8(SSISlave *ss, uint32_t tx)
         s->pos++;
         if (s->pos == s->len) {
             s->pos = 0;
-            s->state = STATE_IDLE;
+            if (!s->data_read_loop) {
+                s->state = STATE_IDLE;
+            }
         }
         break;
 
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PATCH 04/12] m25p80: Add support for n25q512a11 and n25q512a13
  2017-10-21 14:35 [Qemu-devel] [PATCH 00/12] Add support for the ZynqMP Generic QSPI Francisco Iglesias
  2017-10-21 14:35 ` [Qemu-devel] [PATCH 01/12] m25p80: Add support for continuous read out of RDSR and READ_FSR Francisco Iglesias
@ 2017-10-21 14:35 ` Francisco Iglesias
  1 sibling, 0 replies; 3+ messages in thread
From: Francisco Iglesias @ 2017-10-21 14:35 UTC (permalink / raw)
  To: qemu-devel, francisco.iglesias; +Cc: edgari, alistai

Add support for Micron (Numonyx) n25q512a11 and n25q512a13 flashes.

Signed-off-by: Francisco Iglesias <francisco.iglesias@feimtech.se>
---
 hw/block/m25p80.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index 3d2975c..7f3fcc4 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -240,6 +240,8 @@ static const FlashPartInfo known_devices[] = {
     { INFO("n25q128a13",  0x20ba18,      0,  64 << 10, 256, ER_4K) },
     { INFO("n25q256a11",  0x20bb19,      0,  64 << 10, 512, ER_4K) },
     { INFO("n25q256a13",  0x20ba19,      0,  64 << 10, 512, ER_4K) },
+    { INFO("n25q512a11",  0x20bb20,      0,  64 << 10, 1024, ER_4K) },
+    { INFO("n25q512a13",  0x20ba20,      0,  64 << 10, 1024, ER_4K) },
     { INFO("n25q128",     0x20ba18,      0,  64 << 10, 256, 0) },
     { INFO("n25q256a",    0x20ba19,      0,  64 << 10, 512, ER_4K) },
     { INFO("n25q512a",    0x20ba20,      0,  64 << 10, 1024, ER_4K) },
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-21 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-21 14:35 [Qemu-devel] [PATCH 00/12] Add support for the ZynqMP Generic QSPI Francisco Iglesias
2017-10-21 14:35 ` [Qemu-devel] [PATCH 01/12] m25p80: Add support for continuous read out of RDSR and READ_FSR Francisco Iglesias
2017-10-21 14:35 ` [Qemu-devel] [PATCH 04/12] m25p80: Add support for n25q512a11 and n25q512a13 Francisco Iglesias

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.