aboutsummaryrefslogtreecommitdiff
path: root/include/hw/arm/arm.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-07-16 13:25:10 +0100
committerPeter Maydell <peter.maydell@linaro.org>2013-07-19 12:58:47 +0100
commit3b1cceb8b52320150fd93dc094ba11fd01c6adfa (patch)
tree97f7d7475135b5bff8846564bae9911e352eff52 /include/hw/arm/arm.h
parent4b52530be987f33f8bffbdec9826298ad53ec180 (diff)
downloadqemu-3b1cceb8b52320150fd93dc094ba11fd01c6adfa.zip
qemu-3b1cceb8b52320150fd93dc094ba11fd01c6adfa.tar.gz
qemu-3b1cceb8b52320150fd93dc094ba11fd01c6adfa.tar.bz2
arm/boot: Allow boards to modify the FDT blob
Add a callback hook in arm_boot_info to allow board models to modify the device tree blob if they need to. (The major expected use case is to add virtio-mmio nodes for virtio-mmio transports that exist in QEMU but not in the hardware.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1373977512-28932-7-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'include/hw/arm/arm.h')
-rw-r--r--include/hw/arm/arm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/arm/arm.h b/include/hw/arm/arm.h
index 7b2b02d..bae87c6 100644
--- a/include/hw/arm/arm.h
+++ b/include/hw/arm/arm.h
@@ -55,6 +55,10 @@ struct arm_boot_info {
const struct arm_boot_info *info);
void (*secondary_cpu_reset_hook)(ARMCPU *cpu,
const struct arm_boot_info *info);
+ /* if a board needs to be able to modify a device tree provided by
+ * the user it should implement this hook.
+ */
+ void (*modify_dtb)(const struct arm_boot_info *info, void *fdt);
/* Used internally by arm_boot.c */
int is_linux;
hwaddr initrd_start;