]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/metag/kernel/time.c
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[mirror_ubuntu-focal-kernel.git] / arch / metag / kernel / time.c
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (C) 2005-2013 Imagination Technologies Ltd.
4 *
5 * This file contains the Meta-specific time handling details.
6 *
7 */
8
9 #include <clocksource/metag_generic.h>
10 #include <linux/clk-provider.h>
11 #include <linux/init.h>
12 #include <asm/clock.h>
13
14 void __init time_init(void)
15 {
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 */
25 metag_generic_timer_init();
26 }