blob: e172920798ea0270bb681899a0af0e987660b615 [file] [log] [blame]
Tony Lindgren9cf705d2015-07-16 01:55:57 -07001/*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation version 2.
5 */
6
7#include <linux/kernel.h>
8#include <linux/clk-provider.h>
9#include <linux/clk/ti.h>
10
Stephen Rothwellf9511a42015-07-27 14:11:17 +100011#include "clock.h"
12
Tony Lindgren9cf705d2015-07-16 01:55:57 -070013static struct ti_dt_clk dm814_clks[] = {
14 DT_CLK(NULL, "devosc_ck", "devosc_ck"),
15 DT_CLK(NULL, "mpu_ck", "mpu_ck"),
16 DT_CLK(NULL, "sysclk4_ck", "sysclk4_ck"),
17 DT_CLK(NULL, "sysclk6_ck", "sysclk6_ck"),
18 DT_CLK(NULL, "sysclk10_ck", "sysclk10_ck"),
19 DT_CLK(NULL, "sysclk18_ck", "sysclk18_ck"),
20 DT_CLK(NULL, "timer_sys_ck", "devosc_ck"),
21 DT_CLK(NULL, "cpsw_125mhz_gclk", "cpsw_125mhz_gclk"),
22 DT_CLK(NULL, "cpsw_cpts_rft_clk", "cpsw_cpts_rft_clk"),
23 { .node_name = NULL },
24};
25
26int __init dm814x_dt_clk_init(void)
27{
28 ti_dt_clocks_register(dm814_clks);
29 omap2_clk_disable_autoidle_all();
30 omap2_clk_enable_init_clocks(NULL, 0);
31
32 return 0;
33}