OMAP3: Move get_sys_clkin_sel() function to not duplicate code