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>
2022-11-21 11:45:12 +00:00
..
allwinner-sdhost.c hw/sd: Fix sun4i allwinner-sdhost for U-Boot 2022-11-21 11:45:12 +00:00
aspeed_sdhci.c
bcm2835_sdhost.c
cadence_sdhci.c
core.c
Kconfig
meson.build
npcm7xx_sdhci.c
omap_mmc.c
pl181.c
pxa2xx_mmci.c
sd.c block: Change blk_{pread,pwrite}() param order 2022-07-12 12:14:56 +02:00
sdhci-internal.h hw/sd/sdhci-internal: Unexport ESDHC defines 2022-10-28 13:26:20 -03:00
sdhci-pci.c
sdhci.c hw/sd/sdhci: Rename ESDHC_* defines to USDHC_* 2022-10-28 13:26:20 -03:00
sdmmc-internal.c
sdmmc-internal.h
ssi-sd.c
trace-events
trace.h