2015-01-14 06:51:28 +08:00
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation version 2.
|
|
|
|
*
|
|
|
|
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
|
|
* kind, whether express or implied; without even the implied warranty
|
|
|
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/list.h>
|
|
|
|
#include <linux/clk-provider.h>
|
|
|
|
#include <linux/clk/ti.h>
|
|
|
|
|
2015-03-03 16:51:01 +08:00
|
|
|
#include "clock.h"
|
|
|
|
|
2015-01-14 06:51:28 +08:00
|
|
|
static struct ti_dt_clk dm816x_clks[] = {
|
|
|
|
DT_CLK(NULL, "sys_clkin", "sys_clkin_ck"),
|
|
|
|
DT_CLK(NULL, "timer_sys_ck", "sys_clkin_ck"),
|
2015-11-14 00:29:58 +08:00
|
|
|
DT_CLK(NULL, "timer_32k_ck", "sysclk18_ck"),
|
|
|
|
DT_CLK(NULL, "timer_ext_ck", "tclkin_ck"),
|
2015-01-14 06:51:28 +08:00
|
|
|
{ .node_name = NULL },
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char *enable_init_clks[] = {
|
|
|
|
"ddr_pll_clk1",
|
|
|
|
"ddr_pll_clk2",
|
|
|
|
"ddr_pll_clk3",
|
|
|
|
};
|
|
|
|
|
2015-07-16 16:55:57 +08:00
|
|
|
int __init dm816x_dt_clk_init(void)
|
2015-01-14 06:51:28 +08:00
|
|
|
{
|
|
|
|
ti_dt_clocks_register(dm816x_clks);
|
|
|
|
omap2_clk_disable_autoidle_all();
|
2017-08-24 20:31:08 +08:00
|
|
|
ti_clk_add_aliases();
|
2015-01-14 06:51:28 +08:00
|
|
|
omap2_clk_enable_init_clocks(enable_init_clks,
|
|
|
|
ARRAY_SIZE(enable_init_clks));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|