Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
[linux-2.6-block.git] / arch / metag / kernel / time.c
CommitLineData
a2c5d4ed
JH
1/*
2 * Copyright (C) 2005-2013 Imagination Technologies Ltd.
3 *
4 * This file contains the Meta-specific time handling details.
5 *
6 */
7
a2c5d4ed 8#include <clocksource/metag_generic.h>
caa279dd
JH
9#include <linux/clk-provider.h>
10#include <linux/init.h>
11#include <asm/clock.h>
a2c5d4ed
JH
12
13void __init time_init(void)
14{
caa279dd
JH
15#ifdef CONFIG_COMMON_CLK
16 /* Init clocks from device tree */
17 of_clk_init(NULL);
18#endif
19
20 /* Init meta clocks, particularly the core clock */
21 init_metag_clocks();
22
23 /* Set up the timer clock sources */
a2c5d4ed
JH
24 metag_generic_timer_init();
25}