]> git.ipfire.org Git - thirdparty/linux.git/blame - arch/metag/kernel/time.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/linux.git] / arch / metag / kernel / time.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
a2c5d4ed
JH
2/*
3 * Copyright (C) 2005-2013 Imagination Technologies Ltd.
4 *
5 * This file contains the Meta-specific time handling details.
6 *
7 */
8
a2c5d4ed 9#include <clocksource/metag_generic.h>
caa279dd
JH
10#include <linux/clk-provider.h>
11#include <linux/init.h>
12#include <asm/clock.h>
a2c5d4ed
JH
13
14void __init time_init(void)
15{
caa279dd
JH
16#ifdef CONFIG_COMMON_CLK
17 /* Init clocks from device tree */
18 of_clk_init(NULL);
19#endif
20
21 /* Init meta clocks, particularly the core clock */
22 init_metag_clocks();
23
24 /* Set up the timer clock sources */
a2c5d4ed
JH
25 metag_generic_timer_init();
26}