[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v4 17/25] hw/arm/fsl-imx6: implement SDHCI Spec v3
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-arm] [PATCH v4 17/25] hw/arm/fsl-imx6: implement SDHCI Spec v3 |
Date: |
Wed, 3 Jan 2018 15:34:10 -0300 |
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/arm/fsl-imx6.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c
index 59ef33efa9..d4de428dbc 100644
--- a/hw/arm/fsl-imx6.c
+++ b/hw/arm/fsl-imx6.c
@@ -348,6 +348,18 @@ static void fsl_imx6_realize(DeviceState *dev, Error
**errp)
{ FSL_IMX6_uSDHC4_ADDR, FSL_IMX6_uSDHC4_IRQ },
};
+ /* UHS-I SDIO3.0 SDR104 1.8V ADMA */
+ object_property_set_uint(OBJECT(&s->esdhc[i]), 3, "sd-spec-version",
+ &err);
+ object_property_set_uint(OBJECT(&s->esdhc[i]), 52, "timeout-freq",
+ &err);
+ object_property_set_uint(OBJECT(&s->esdhc[i]), 52, "clock-freq", &err);
+ object_property_set_bool(OBJECT(&s->esdhc[i]), true, "adma1", &err);
+ object_property_set_bool(OBJECT(&s->esdhc[i]), true, "1v8", &err);
+ if (err) {
+ error_propagate(errp, err);
+ return;
+ }
object_property_set_bool(OBJECT(&s->esdhc[i]), true, "realized", &err);
if (err) {
error_propagate(errp, err);
--
2.15.1