diff options
-rw-r--r-- | hw/ppce500_mpc8544ds.c | 8 | ||||
-rw-r--r-- | pc-bios/mpc8544ds.dtb | bin | 1904 -> 1810 bytes | |||
-rw-r--r-- | pc-bios/mpc8544ds.dts | 5 |
3 files changed, 8 insertions, 5 deletions
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 54e7ec7c20..28c7c8c93d 100644 --- a/hw/ppce500_mpc8544ds.c +++ b/hw/ppce500_mpc8544ds.c @@ -76,6 +76,8 @@ static int mpc8544_load_device_tree(CPUPPCState *env, uint32_t clock_freq = 400000000; uint32_t tb_freq = 400000000; int i; + char compatible[] = "MPC8544DS\0MPC85xxDS"; + char model[] = "MPC8544DS"; filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE); if (!filename) { @@ -88,6 +90,12 @@ static int mpc8544_load_device_tree(CPUPPCState *env, } /* Manipulate device tree in memory. */ + qemu_devtree_setprop_string(fdt, "/", "model", model); + qemu_devtree_setprop(fdt, "/", "compatible", compatible, + sizeof(compatible)); + qemu_devtree_setprop_cell(fdt, "/", "#address-cells", 1); + qemu_devtree_setprop_cell(fdt, "/", "#size-cells", 1); + qemu_devtree_add_subnode(fdt, "/memory"); qemu_devtree_setprop_string(fdt, "/memory", "device_type", "memory"); qemu_devtree_setprop(fdt, "/memory", "reg", mem_reg_property, diff --git a/pc-bios/mpc8544ds.dtb b/pc-bios/mpc8544ds.dtb Binary files differindex 8194aa2e6f..25d92f681d 100644 --- a/pc-bios/mpc8544ds.dtb +++ b/pc-bios/mpc8544ds.dtb diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts index 2ca7c5421e..1eac8ef053 100644 --- a/pc-bios/mpc8544ds.dts +++ b/pc-bios/mpc8544ds.dts @@ -11,11 +11,6 @@ /dts-v1/; / { - model = "MPC8544DS"; - compatible = "MPC8544DS", "MPC85xxDS"; - #address-cells = <1>; - #size-cells = <1>; - aliases { serial0 = &serial0; serial1 = &serial1; |