2012-10-09 03:54:39 -06:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2005-2013 Imagination Technologies Ltd.
|
|
|
|
*
|
|
|
|
* This file contains the Meta-specific time handling details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <clocksource/metag_generic.h>
|
2013-01-15 08:27:45 -07:00
|
|
|
#include <linux/clk-provider.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <asm/clock.h>
|
2012-10-09 03:54:39 -06:00
|
|
|
|
|
|
|
void __init time_init(void)
|
|
|
|
{
|
2013-01-15 08:27:45 -07:00
|
|
|
#ifdef CONFIG_COMMON_CLK
|
|
|
|
/* Init clocks from device tree */
|
|
|
|
of_clk_init(NULL);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Init meta clocks, particularly the core clock */
|
|
|
|
init_metag_clocks();
|
|
|
|
|
|
|
|
/* Set up the timer clock sources */
|
2012-10-09 03:54:39 -06:00
|
|
|
metag_generic_timer_init();
|
|
|
|
}
|