hw/ppc: include fdt helper routine in a common file