[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 09/10] zynqmp: add the zynqmp_crf to the platform
From: |
fred . konrad |
Subject: |
[Qemu-devel] [PATCH v3 09/10] zynqmp: add the zynqmp_crf to the platform |
Date: |
Tue, 28 Feb 2017 11:03:04 +0100 |
From: KONRAD Frederic <address@hidden>
This adds the zynqmp_crf to the zynqmp platform.
Signed-off-by: KONRAD Frederic <address@hidden>
---
hw/arm/xlnx-zynqmp.c | 7 +++++++
include/hw/arm/xlnx-zynqmp.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c
index bc4e66b..27dccdb 100644
--- a/hw/arm/xlnx-zynqmp.c
+++ b/hw/arm/xlnx-zynqmp.c
@@ -177,6 +177,11 @@ static void xlnx_zynqmp_init(Object *obj)
object_initialize(&s->dpdma, sizeof(s->dpdma), TYPE_XLNX_DPDMA);
qdev_set_parent_bus(DEVICE(&s->dpdma), sysbus_get_default());
+
+ s->crf = object_new("xlnx.zynqmp_crf");
+ qdev_set_parent_bus(DEVICE(s->crf), sysbus_get_default());
+ object_property_add_child(obj, "xlnx.zynqmp_crf", OBJECT(s->crf),
+ &error_abort);
}
static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
@@ -424,6 +429,8 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error
**errp)
&error_abort);
sysbus_mmio_map(SYS_BUS_DEVICE(&s->dpdma), 0, DPDMA_ADDR);
sysbus_connect_irq(SYS_BUS_DEVICE(&s->dpdma), 0, gic_spi[DPDMA_IRQ]);
+
+ sysbus_mmio_map(SYS_BUS_DEVICE(s->crf), 0, 0xFD1A0000);
}
static Property xlnx_zynqmp_props[] = {
diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/arm/xlnx-zynqmp.h
index c2931bf..379a17a 100644
--- a/include/hw/arm/xlnx-zynqmp.h
+++ b/include/hw/arm/xlnx-zynqmp.h
@@ -86,6 +86,8 @@ typedef struct XlnxZynqMPState {
XlnxDPState dp;
XlnxDPDMAState dpdma;
+ Object *crf;
+
char *boot_cpu;
ARMCPU *boot_cpu_ptr;
--
1.8.3.1
- [Qemu-devel] [PATCH v3 00/10] Clock framework API., fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 03/10] qemu-clk: allow to bind two clocks together, fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 02/10] qemu-clk: allow to add a clock to a device, fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 06/10] docs: add qemu-clock documentation, fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 07/10] introduce fixed-clock, fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 09/10] zynqmp: add the zynqmp_crf to the platform,
fred . konrad <=
- [Qemu-devel] [PATCH v3 01/10] qemu-clk: introduce qemu-clk qom object, fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 04/10] qemu-clk: introduce an init array to help the device construction, fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 05/10] qdev-monitor: print the device's clock with info qtree, fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 10/10] zynqmp: add reference clock, fred . konrad, 2017/02/28
- [Qemu-devel] [PATCH v3 08/10] introduce zynqmp_crf, fred . konrad, 2017/02/28