OMAP3: Move get_cpu_rev() function to not duplicate code