mirror_qemu/hw/ssi
Cédric Le Goater a7538ca079 aspeed/smc: Only wire flash devices at reset
The Aspeed machines have many Static Memory Controllers (SMC), up to
8, which can only drive flash memory devices. Commit 27a2c66c92
("aspeed/smc: Wire CS lines at reset") tried to ease the definitions
of these devices by allowing flash devices from the command line to be
attached to a SSI bus. For that, the wiring of the CS lines of the
Aspeed SMC controller was moved at reset. Two assumptions are made
though, first that the device has a SSI_GPIO_CS GPIO line, which is
not always the case, and second that it is a flash device.

Correct this problem by ensuring that the devices attached to the bus
are of the correct flash type. This fixes a QEMU abort when devices
without a CS line, such as the max111x, are passed on the command
line.

While at it, export TYPE_M25P80 used in the Xilinx Versal Virtual
machine.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2228
Fixes: 27a2c66c92 ("aspeed/smc: Wire CS lines at reset")
Reported-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
[ clg: minor fixes in the commit log ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2024-03-19 11:58:15 +01:00
..
Kconfig hw/ssi: Implement BCM2835 SPI Controller 2024-02-02 13:51:59 +00:00
aspeed_smc.c aspeed/smc: Only wire flash devices at reset 2024-03-19 11:58:15 +01:00
bcm2835_spi.c hw/ssi: Implement BCM2835 SPI Controller 2024-02-02 13:51:59 +00:00
ibex_spi_host.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
imx_spi.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
meson.build hw/ssi: Implement BCM2835 SPI Controller 2024-02-02 13:51:59 +00:00
mss-spi.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
npcm7xx_fiu.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
npcm_pspi.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
omap_spi.c hw/arm/omap: Drop useless casts from void * to pointer 2023-01-12 17:15:09 +00:00
pl022.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
sifive_spi.c hw/ssi/sifive_spi.c: spelling: reigster 2023-01-17 10:02:37 +01:00
ssi.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
stm32f2xx_spi.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
trace-events hw/ssi: Add Nuvoton PSPI Module 2023-02-16 16:00:48 +00:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
xilinx_spi.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
xilinx_spips.c hw/ssi: Constify VMState 2023-12-30 07:38:06 +11:00
xlnx-versal-ospi.c xlnx-versal-ospi: disable reentrancy detection for iomem_dac 2024-02-27 13:01:41 +00:00