hw: arm: Set vendor property for IMX SDHCI emulations
Set vendor property to IMX to enable IMX specific functionality in sdhci code. Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20200603145258.195920-3-linux@roeck-us.net Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
3b2d81766f
commit
64b397417a
@ -274,6 +274,12 @@ static void fsl_imx25_realize(DeviceState *dev, Error **errp)
|
|||||||
&err);
|
&err);
|
||||||
object_property_set_uint(OBJECT(&s->esdhc[i]), IMX25_ESDHC_CAPABILITIES,
|
object_property_set_uint(OBJECT(&s->esdhc[i]), IMX25_ESDHC_CAPABILITIES,
|
||||||
"capareg", &err);
|
"capareg", &err);
|
||||||
|
object_property_set_uint(OBJECT(&s->esdhc[i]), SDHCI_VENDOR_IMX,
|
||||||
|
"vendor", &err);
|
||||||
|
if (err) {
|
||||||
|
error_propagate(errp, err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
object_property_set_bool(OBJECT(&s->esdhc[i]), true, "realized", &err);
|
object_property_set_bool(OBJECT(&s->esdhc[i]), true, "realized", &err);
|
||||||
if (err) {
|
if (err) {
|
||||||
error_propagate(errp, err);
|
error_propagate(errp, err);
|
||||||
|
@ -350,6 +350,12 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp)
|
|||||||
&err);
|
&err);
|
||||||
object_property_set_uint(OBJECT(&s->esdhc[i]), IMX6_ESDHC_CAPABILITIES,
|
object_property_set_uint(OBJECT(&s->esdhc[i]), IMX6_ESDHC_CAPABILITIES,
|
||||||
"capareg", &err);
|
"capareg", &err);
|
||||||
|
object_property_set_uint(OBJECT(&s->esdhc[i]), SDHCI_VENDOR_IMX,
|
||||||
|
"vendor", &err);
|
||||||
|
if (err) {
|
||||||
|
error_propagate(errp, err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
object_property_set_bool(OBJECT(&s->esdhc[i]), true, "realized", &err);
|
object_property_set_bool(OBJECT(&s->esdhc[i]), true, "realized", &err);
|
||||||
if (err) {
|
if (err) {
|
||||||
error_propagate(errp, err);
|
error_propagate(errp, err);
|
||||||
|
@ -505,6 +505,8 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp)
|
|||||||
FSL_IMX6UL_USDHC2_IRQ,
|
FSL_IMX6UL_USDHC2_IRQ,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
object_property_set_uint(OBJECT(&s->usdhc[i]), SDHCI_VENDOR_IMX,
|
||||||
|
"vendor", &error_abort);
|
||||||
object_property_set_bool(OBJECT(&s->usdhc[i]), true, "realized",
|
object_property_set_bool(OBJECT(&s->usdhc[i]), true, "realized",
|
||||||
&error_abort);
|
&error_abort);
|
||||||
|
|
||||||
|
@ -416,6 +416,8 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp)
|
|||||||
FSL_IMX7_USDHC3_IRQ,
|
FSL_IMX7_USDHC3_IRQ,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
object_property_set_uint(OBJECT(&s->usdhc[i]), SDHCI_VENDOR_IMX,
|
||||||
|
"vendor", &error_abort);
|
||||||
object_property_set_bool(OBJECT(&s->usdhc[i]), true, "realized",
|
object_property_set_bool(OBJECT(&s->usdhc[i]), true, "realized",
|
||||||
&error_abort);
|
&error_abort);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user