summaryrefslogtreecommitdiffstats
path: root/hw/ssi
diff options
context:
space:
mode:
authorFrancisco Iglesias2018-03-01 12:05:44 +0100
committerPeter Maydell2018-03-01 12:05:44 +0100
commitb8cc8503521282fe741e4d24ade9157210fdf3ba (patch)
treeba62264e2d4bf682c36eab7e53dd909f7e010b61 /hw/ssi
parentxilinx_spips: Enable only two slaves when reading/writing with stripe (diff)
downloadqemu-b8cc8503521282fe741e4d24ade9157210fdf3ba.tar.gz
qemu-b8cc8503521282fe741e4d24ade9157210fdf3ba.tar.xz
qemu-b8cc8503521282fe741e4d24ade9157210fdf3ba.zip
xilinx_spips: Use 8 dummy cycles with the QIOR/QIOR4 commands
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.iglesias@gmail.com> Tested-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Message-id: 20180223232233.31482-3-frasse.iglesias@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ssi')
-rw-r--r--hw/ssi/xilinx_spips.c2
1 files changed, 1 insertions, 1 deletions
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;
}