On 11/10/23 18:52, Srivatsa Vaddagiri wrote:
Customize device-tree with Gunyah specific properties. Some of these
properties include specification of doorbells that need to be created
and associated with various interrupts.
Signed-off-by: Srivatsa Vaddagiri <[email protected]>
---
hw/arm/virt.c | 11 ++++++
include/sysemu/gunyah.h | 7 ++++
target/arm/gunyah.c | 79 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 97 insertions(+)
diff --git a/include/sysemu/gunyah.h b/include/sysemu/gunyah.h
index 101e190619..f077837437 100644
--- a/include/sysemu/gunyah.h
+++ b/include/sysemu/gunyah.h
@@ -35,6 +35,8 @@ DECLARE_INSTANCE_CHECKER(GUNYAHState, GUNYAH_STATE,
TYPE_GUNYAH_ACCEL)
int gunyah_arm_set_dtb(__u64 dtb_start, __u64 dtb_size);
+void gunyah_arm_fdt_customize(void *fdt, uint64_t mem_base,
+ uint32_t gic_phandle);
#else /* CONFIG_GUNYAH_IS_POSSIBLE */
@@ -45,6 +47,11 @@ static inline int gunyah_arm_set_dtb(__u64 dtb_start, __u64 dtb_size)
return -1;
}
+static inline void gunyah_arm_fdt_customize(void *fdt, uint64_t mem_base,
+ uint32_t gic_phandle)
+{
Similar comment than previous patch: stub can be avoided.
+}
+
#endif /* CONFIG_GUNYAH_IS_POSSIBLE */
#endif /* QEMU_GUNYAH_H */