PPC: e500: dt: create /chosen node dynamically
authorAlexander Graf <agraf@suse.de>
Thu, 17 May 2012 12:49:20 +0000 (14:49 +0200)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:47 +0000 (01:04 +0200)
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppce500_mpc8544ds.c

index 28c7c8c..a078e24 100644 (file)
@@ -101,6 +101,7 @@ static int mpc8544_load_device_tree(CPUPPCState *env,
     qemu_devtree_setprop(fdt, "/memory", "reg", mem_reg_property,
                          sizeof(mem_reg_property));
 
+    qemu_devtree_add_subnode(fdt, "/chosen");
     if (initrd_size) {
         ret = qemu_devtree_setprop_cell(fdt, "/chosen", "linux,initrd-start",
                                         initrd_base);