From: Francisco Iglesias <frasse.igles...@gmail.com>

Use 8 dummy cycles (4 dummy bytes) with the QIOR/QIOR4 commands in legacy mode
for matching what is expected by Micron (Numonyx) flashes (the default target
flash type of the QSPI).

Signed-off-by: Francisco Iglesias <frasse.igles...@gmail.com>
Tested-by: Alistair Francis <alistair.fran...@xilinx.com>
Reviewed-by: Alistair Francis <alistair.fran...@xilinx.com>
Message-id: 20180223232233.31482-3-frasse.igles...@gmail.com
Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
---
 hw/ssi/xilinx_spips.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c
index 0cb484ecf4..426f971311 100644
--- a/hw/ssi/xilinx_spips.c
+++ b/hw/ssi/xilinx_spips.c
@@ -577,7 +577,7 @@ static int xilinx_spips_num_dummies(XilinxQSPIPS *qs, 
uint8_t command)
         return 2;
     case QIOR:
     case QIOR_4:
-        return 5;
+        return 4;
     default:
         return -1;
     }
-- 
2.16.2


Reply via email to