diff options
Diffstat (limited to 'include/hw/arm/xlnx-versal.h')
| -rw-r--r-- | include/hw/arm/xlnx-versal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/hw/arm/xlnx-versal.h b/include/hw/arm/xlnx-versal.h index 1f92e314d6..f2a62b4355 100644 --- a/include/hw/arm/xlnx-versal.h +++ b/include/hw/arm/xlnx-versal.h @@ -137,7 +137,13 @@ struct Versal { } pmc; struct { + uint32_t clk_25mhz; + uint32_t clk_125mhz; + } phandle; + + struct { MemoryRegion *mr_ddr; + void *fdt; } cfg; }; @@ -147,6 +153,12 @@ struct VersalClass { VersalVersion version; }; +static inline void versal_set_fdt(Versal *s, void *fdt) +{ + g_assert(!qdev_is_realized(DEVICE(s))); + s->cfg.fdt = fdt; +} + /* Memory-map and IRQ definitions. Copied a subset from * auto-generated files. */ |