summaryrefslogtreecommitdiffstats
path: root/hw/arm/xlnx-versal.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias2020-04-17 17:38:00 +0200
committerPeter Maydell2020-04-30 16:35:41 +0200
commit681b5bc32322fd0ff4338c550ec24612512d1a2e (patch)
tree6c9cc8f62e64fea7894e4e739b6071123bd58b57 /hw/arm/xlnx-versal.c
parentqdev-monitor: print the device's clock with info qtree (diff)
downloadqemu-681b5bc32322fd0ff4338c550ec24612512d1a2e.tar.gz
qemu-681b5bc32322fd0ff4338c550ec24612512d1a2e.tar.xz
qemu-681b5bc32322fd0ff4338c550ec24612512d1a2e.zip
hw/arm: versal: Setup the ADMA with 128bit bus-width
Setup the ADMA with 128bit bus-width. This matters when FIXED BURST mode is used. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Luc Michel <luc.michel@greensocs.com> Message-id: 20200417153800.27399-2-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/xlnx-versal.c')
-rw-r--r--hw/arm/xlnx-versal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c
index cb0122a3a6..94460f2343 100644
--- a/hw/arm/xlnx-versal.c
+++ b/hw/arm/xlnx-versal.c
@@ -205,6 +205,8 @@ static void versal_create_admas(Versal *s, qemu_irq *pic)
dev = qdev_create(NULL, "xlnx.zdma");
s->lpd.iou.adma[i] = SYS_BUS_DEVICE(dev);
+ object_property_set_int(OBJECT(s->lpd.iou.adma[i]), 128, "bus-width",
+ &error_abort);
object_property_add_child(OBJECT(s), name, OBJECT(dev), &error_fatal);
qdev_init_nofail(dev);