qemu-e2k/hw/ssi
Cédric Le Goater 2175eacfcd aspeed/smc: Do not map disabled segment on the AST2600
The segments can be disabled on the AST2600 (zero register value).
CS0 is open by default but not the other CS. This is closing the
access to the flash device in user mode and forbids scanning.

In the model, check the segment size and disable the associated region
when the value is zero.

Fixes: bcaa8ddd08 ("aspeed/smc: Add AST2600 support")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20191119141211.25716-12-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2019-12-16 10:46:34 +00:00
..
aspeed_smc.c aspeed/smc: Do not map disabled segment on the AST2600 2019-12-16 10:46:34 +00:00
imx_spi.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
Kconfig
Makefile.objs
mss-spi.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
omap_spi.c
pl022.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ssi.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
stm32f2xx_spi.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
xilinx_spi.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
xilinx_spips.c ssi: xilinx_spips: Skip spi bus update for a few register writes 2019-11-19 13:20:27 +00:00