You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/sd
Strahinja Jankovic 93e2da36ed hw/sd: Fix sun4i allwinner-sdhost for U-Boot
Trying to run U-Boot for Cubieboard (Allwinner A10) fails because it cannot
access SD card. The problem is that FIFO register in current
allwinner-sdhost implementation is at the address corresponding to
Allwinner H3, but not A10.
Linux kernel is not affected since Linux driver uses DMA access and does
not use FIFO register for reading/writing.

This patch adds new class parameter `is_sun4i` and based on that
parameter uses register at offset 0x100 either as FIFO register (if
sun4i) or as threshold register (if not sun4i; in this case register at
0x200 is FIFO register).

Tested with U-Boot and Linux kernel image built for Cubieboard and
OrangePi PC.

Signed-off-by: Strahinja Jankovic <strahinja.p.jankovic@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20221112214900.24152-1-strahinja.p.jankovic@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2 years ago
..
Kconfig hw/sd: Add Cadence SDHCI emulation 4 years ago
allwinner-sdhost.c hw/sd: Fix sun4i allwinner-sdhost for U-Boot 2 years ago
aspeed_sdhci.c Mark remaining global TypeInfo instances as const 3 years ago
bcm2835_sdhost.c Mark remaining global TypeInfo instances as const 3 years ago
cadence_sdhci.c Mark remaining global TypeInfo instances as const 3 years ago
core.c hw/sd: Introduce receive_ready() callback 4 years ago
meson.build hw/sd: add nuvoton MMC 3 years ago
npcm7xx_sdhci.c Mark remaining global TypeInfo instances as const 3 years ago
omap_mmc.c hw/sd/omap_mmc: Use device_cold_reset() instead of device_legacy_reset() 4 years ago
pl181.c qbus: Rename qbus_create_inplace() to qbus_init() 3 years ago
pxa2xx_mmci.c qbus: Rename qbus_create_inplace() to qbus_init() 3 years ago
sd.c block: Change blk_{pread,pwrite}() param order 2 years ago
sdhci-internal.h hw/sd/sdhci-internal: Unexport ESDHC defines 2 years ago
sdhci-pci.c sd: Use ERRP_GUARD() 4 years ago
sdhci.c hw/sd/sdhci: Rename ESDHC_* defines to USDHC_* 2 years ago
sdmmc-internal.c sdcard: Display command name when tracing CMD/ACMD 7 years ago
sdmmc-internal.h Clean up header guards that don't match their file name 6 years ago
ssi-sd.c hw/sd/ssi-sd: Do not create SD card within controller's realize 3 years ago
trace-events speed/sdhci: Add trace events 3 years ago
trace.h trace: switch position of headers to what Meson requires 4 years ago