OMAP3: Move get_sysboot_value() function to not duplicate code