hw/arm/exynos: Add generic SDHCI devices
authorKrzysztof Kozlowski <krzk@kernel.org>
Sat, 22 Apr 2017 19:07:09 +0000 (21:07 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 25 Apr 2017 10:17:49 +0000 (11:17 +0100)
commitd77b71c2a4eb89bbf5ad6c5c023056a17fd8c514
tree681f07e140ce3fccb660394c2b06592aa7004eef
parentf4b5b021c847669b1c78050aea26fe9abceef6dd
hw/arm/exynos: Add generic SDHCI devices

Exynos4210 has four SD/MMC controllers supporting:
 - SD Standard Host Specification Version 2.0,
 - MMC Specification Version 4.3,
 - SDIO Card Specification Version 2.0,
 - DMA and ADMA.

Add emulation of SDHCI devices which allows accessing storage through SD
cards. Differences from real hardware:
 - Devices are shipped with eMMC memory, not SD card.
 - The Exynos4210 SDHCI has few more registers, e.g. for
   controlling the clocks, additional status (0x80, 0x84, 0x8c). These
   are not implemented.

Testing on smdkc210 machine with "-drive file=FILE,if=sd,bus=0,index=2".

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Message-id: 20170422190709.8676-1-krzk@kernel.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/exynos4210.c