[POWERPC] Add common routines for 52xx support in arch/powerpc