[Qemu-devel] [PATCH 31/31] PPC: e500: Refactor serial dt generation

2012-06-19 Thread Alexander Graf
When generating serial port device tree nodes, we duplicate quite a bit of code, because there are 2 of them in the mpc8544ds board we emulate. Shove the generating code into a function, so we duplicate less code. Signed-off-by: Alexander Graf --- v2 -> v3: - use snprintf --- hw/ppce500_mp

[Qemu-devel] [PATCH 31/31] PPC: e500: Refactor serial dt generation

2012-06-05 Thread Alexander Graf
When generating serial port device tree nodes, we duplicate quite a bit of code, because there are 2 of them in the mpc8544ds board we emulate. Shove the generating code into a function, so we duplicate less code. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 54 +