hw/block/m25p80: Check SPI mode before running some Numonyx commands
commit23486231170bfdc336646e1e6c6440143003be68
authorJoe Komlodi <joe.komlodi@xilinx.com>
Mon, 16 Nov 2020 23:11:03 +0000 (16 15:11 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Dec 2020 13:39:30 +0000 (15 13:39 +0000)
treec020f25245dadd40b8dc8de7e1a3aa47dc91a713
parentfc5df349dab3b703b5810a7eea029da13babc756
hw/block/m25p80: Check SPI mode before running some Numonyx commands

Some Numonyx flash commands cannot be executed in DIO and QIO mode, such as
trying to do DPP or DOR when in QIO mode.

Signed-off-by: Joe Komlodi <komlodi@xilinx.com>
Reviewed-by: Francisco Iglesias <francisco.iglesias@xilinx.com>
Message-id: 1605568264-26376-4-git-send-email-komlodi@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/block/m25p80.c