/* Setup clocks for console, SPL basic initialization clocks and initialize the timer. This is invoked prior prcm_init.  */
void setup_early_clocks(void)
/* Setup clocks for console, SPL basic initialization clocks and initialize the timer. This is invoked prior prcm_init.  */
void setup_early_clocks(void)
{
	switch (omap_hw_init_context()) {
	case OMAP_INIT_CONTEXT_SPL:
	case OMAP_INIT_CONTEXT_UBOOT_FROM_NOR:
	case OMAP_INIT_CONTEXT_UBOOT_AFTER_CH:
		setup_clocks_for_console();
		enable_basic_clocks();
		timer_init();
	}
}