Loading...
1/*
2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU General Public License version 2 as published
4 * by the Free Software Foundation.
5 *
6 * Copyright (C) 2015 Nikolay Martynov <mar.kolya@gmail.com>
7 * Copyright (C) 2015 John Crispin <blogic@openwrt.org>
8 */
9
10#include <linux/init.h>
11
12#include <linux/of.h>
13#include <linux/clk-provider.h>
14#include <linux/clocksource.h>
15
16#include "common.h"
17
18void __init plat_time_init(void)
19{
20 ralink_of_remap();
21
22 of_clk_init(NULL);
23 clocksource_probe();
24}
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 *
4 * Copyright (C) 2015 Nikolay Martynov <mar.kolya@gmail.com>
5 * Copyright (C) 2015 John Crispin <john@phrozen.org>
6 */
7
8#include <linux/init.h>
9
10#include <linux/of.h>
11#include <linux/clk-provider.h>
12#include <linux/clocksource.h>
13
14#include "common.h"
15
16void __init plat_time_init(void)
17{
18 ralink_of_remap();
19
20 of_clk_init(NULL);
21 timer_probe();
22}