sdhci: Add i.MX specific subtype of SDHCI
commitfd1e5c81796454b6459f44bef8759a970eb9e92a
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Fri, 9 Feb 2018 10:40:29 +0000 (9 10:40 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 9 Feb 2018 10:40:29 +0000 (9 10:40 +0000)
treeb7aa173fcf8ea3a4b37f6e8bc84249cdaf7b2c0a
parent955f56d44a73d74016b2e71765d984ac7a6db1dc
sdhci: Add i.MX specific subtype of SDHCI

IP block found on several generations of i.MX family does not use
vanilla SDHCI implementation and it comes with a number of quirks.

Introduce i.MX SDHCI subtype of SDHCI block to add code necessary to
support unmodified Linux guest driver.

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Marcel Apfelbaum <marcel.apfelbaum@zoho.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org
Cc: yurovsky@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[PMM: define and use ESDHC_UNDOCUMENTED_REG27]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd/sdhci-internal.h
hw/sd/sdhci.c
include/hw/sd/sdhci.h