-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: OMAP2+: Add support for initializing dm814x clocks
Let's add a minimal clocks for dm814x to get it booted. This is mostly a placeholder and relies on the PLLs being on from the bootloader. Note that the divider clocks work the same way as on dm816x and am335x. Cc: Matthijs van Duin <matthijsvanduin@gmail.com> Cc: Mike Turquette <mturquette@linaro.org> Cc: Paul Walmsley <paul@pwsan.com> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Tero Kristo <t-kristo@ti.com> Acked-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
- Loading branch information
Tony Lindgren
committed
Jul 16, 2015
1 parent
7c80a3f
commit 9cf705d
Showing
5 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/clk-provider.h> | ||
#include <linux/clk/ti.h> | ||
|
||
static struct ti_dt_clk dm814_clks[] = { | ||
DT_CLK(NULL, "devosc_ck", "devosc_ck"), | ||
DT_CLK(NULL, "mpu_ck", "mpu_ck"), | ||
DT_CLK(NULL, "sysclk4_ck", "sysclk4_ck"), | ||
DT_CLK(NULL, "sysclk6_ck", "sysclk6_ck"), | ||
DT_CLK(NULL, "sysclk10_ck", "sysclk10_ck"), | ||
DT_CLK(NULL, "sysclk18_ck", "sysclk18_ck"), | ||
DT_CLK(NULL, "timer_sys_ck", "devosc_ck"), | ||
DT_CLK(NULL, "cpsw_125mhz_gclk", "cpsw_125mhz_gclk"), | ||
DT_CLK(NULL, "cpsw_cpts_rft_clk", "cpsw_cpts_rft_clk"), | ||
{ .node_name = NULL }, | ||
}; | ||
|
||
int __init dm814x_dt_clk_init(void) | ||
{ | ||
ti_dt_clocks_register(dm814_clks); | ||
omap2_clk_disable_autoidle_all(); | ||
omap2_clk_enable_init_clocks(NULL, 0); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters