From: qianfan Zhao <qianfangui...@163.com> R40 has SAMP_DL_REG register and mmc2 controller has only 8K dma buffer. Fix it's compatible string.
Signed-off-by: qianfan Zhao <qianfangui...@163.com> --- hw/arm/allwinner-r40.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/arm/allwinner-r40.c b/hw/arm/allwinner-r40.c index d217e6c936..53eafb6b5b 100644 --- a/hw/arm/allwinner-r40.c +++ b/hw/arm/allwinner-r40.c @@ -264,10 +264,11 @@ static void allwinner_r40_init(Object *obj) "clk1-freq"); object_initialize_child(obj, "ccu", &s->ccu, TYPE_AW_R40_CCU); - object_initialize_child(obj, "mmc0", &s->mmc0, TYPE_AW_SDHOST_SUN5I); - object_initialize_child(obj, "mmc1", &s->mmc1, TYPE_AW_SDHOST_SUN5I); - object_initialize_child(obj, "mmc2", &s->mmc2, TYPE_AW_SDHOST_SUN5I); - object_initialize_child(obj, "mmc3", &s->mmc3, TYPE_AW_SDHOST_SUN5I); + object_initialize_child(obj, "mmc0", &s->mmc0, TYPE_AW_SDHOST_SUN50I_A64); + object_initialize_child(obj, "mmc1", &s->mmc1, TYPE_AW_SDHOST_SUN50I_A64); + object_initialize_child(obj, "mmc2", &s->mmc2, + TYPE_AW_SDHOST_SUN50I_A64_EMMC); + object_initialize_child(obj, "mmc3", &s->mmc3, TYPE_AW_SDHOST_SUN50I_A64); object_initialize_child(obj, "twi0", &s->i2c0, TYPE_AW_I2C_SUN6I); object_initialize_child(obj, "twi1", &s->i2c1, TYPE_AW_I2C_SUN6I); -- 2.25.1