[POWERPC] Reduce code duplication in legacy_serial, add UART parent types