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/include/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
..
allwinner-sdhost.h hw/sd: Fix sun4i allwinner-sdhost for U-Boot 2 years ago
aspeed_sdhci.h Fix SPDX-License-Identifier typos 4 years ago
bcm2835_sdhost.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
cadence_sdhci.h hw/sd: Add Cadence SDHCI emulation 4 years ago
npcm7xx_sdhci.h hw/sd: add nuvoton MMC 3 years ago
sd.h hw/sd: Introduce receive_ready() callback 4 years ago
sdcard_legacy.h hw/sd: Rename read/write_data() as read/write_byte() 4 years ago
sdhci.h Use DECLARE_*CHECKER* macros 4 years ago