aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorqianfan Zhao <qianfanguijin@163.com>2023-06-06 10:19:33 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-06-06 10:19:33 +0100
commit2c992b88ccfc28897e5523b847c3dc1a68be0e11 (patch)
tree0e4ef769a09e37f2ff2850d0d390671b15436def /hw/arm
parent4a52ef61d901290da8ece2bf99546af1389ff7bb (diff)
downloadqemu-2c992b88ccfc28897e5523b847c3dc1a68be0e11.zip
qemu-2c992b88ccfc28897e5523b847c3dc1a68be0e11.tar.gz
qemu-2c992b88ccfc28897e5523b847c3dc1a68be0e11.tar.bz2
hw: sd: allwinner-sdhost: Add sun50i-a64 SoC support
A64's sd register was similar to H3, and it introduced a new register named SAMP_DL_REG location at 0x144. The dma descriptor buffer size of mmc2 is only 8K and the other mmc controllers has 64K. Also fix allwinner-r40's mmc controller type. Signed-off-by: qianfan Zhao <qianfanguijin@163.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/allwinner-r40.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/allwinner-r40.c b/hw/arm/allwinner-r40.c
index 0e4542d..b148c56 100644
--- a/hw/arm/allwinner-r40.c
+++ b/hw/arm/allwinner-r40.c
@@ -271,7 +271,7 @@ static void allwinner_r40_init(Object *obj)
for (int i = 0; i < AW_R40_NUM_MMCS; i++) {
object_initialize_child(obj, mmc_names[i], &s->mmc[i],
- TYPE_AW_SDHOST_SUN5I);
+ TYPE_AW_SDHOST_SUN50I_A64);
}
object_initialize_child(obj, "twi0", &s->i2c0, TYPE_AW_I2C_SUN6I);