19cf705deSTony Lindgren /* 29cf705deSTony Lindgren * This program is free software; you can redistribute it and/or 39cf705deSTony Lindgren * modify it under the terms of the GNU General Public License as 49cf705deSTony Lindgren * published by the Free Software Foundation version 2. 59cf705deSTony Lindgren */ 69cf705deSTony Lindgren 79cf705deSTony Lindgren #include <linux/kernel.h> 89cf705deSTony Lindgren #include <linux/clk-provider.h> 99cf705deSTony Lindgren #include <linux/clk/ti.h> 109cf705deSTony Lindgren 11*f9511a4fSStephen Rothwell #include "clock.h" 12*f9511a4fSStephen Rothwell 139cf705deSTony Lindgren static struct ti_dt_clk dm814_clks[] = { 149cf705deSTony Lindgren DT_CLK(NULL, "devosc_ck", "devosc_ck"), 159cf705deSTony Lindgren DT_CLK(NULL, "mpu_ck", "mpu_ck"), 169cf705deSTony Lindgren DT_CLK(NULL, "sysclk4_ck", "sysclk4_ck"), 179cf705deSTony Lindgren DT_CLK(NULL, "sysclk6_ck", "sysclk6_ck"), 189cf705deSTony Lindgren DT_CLK(NULL, "sysclk10_ck", "sysclk10_ck"), 199cf705deSTony Lindgren DT_CLK(NULL, "sysclk18_ck", "sysclk18_ck"), 209cf705deSTony Lindgren DT_CLK(NULL, "timer_sys_ck", "devosc_ck"), 219cf705deSTony Lindgren DT_CLK(NULL, "cpsw_125mhz_gclk", "cpsw_125mhz_gclk"), 229cf705deSTony Lindgren DT_CLK(NULL, "cpsw_cpts_rft_clk", "cpsw_cpts_rft_clk"), 239cf705deSTony Lindgren { .node_name = NULL }, 249cf705deSTony Lindgren }; 259cf705deSTony Lindgren 269cf705deSTony Lindgren int __init dm814x_dt_clk_init(void) 279cf705deSTony Lindgren { 289cf705deSTony Lindgren ti_dt_clocks_register(dm814_clks); 299cf705deSTony Lindgren omap2_clk_disable_autoidle_all(); 309cf705deSTony Lindgren omap2_clk_enable_init_clocks(NULL, 0); 319cf705deSTony Lindgren 329cf705deSTony Lindgren return 0; 339cf705deSTony Lindgren } 34