aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock_common_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/clock_common_data.c')
-rw-r--r--arch/arm/mach-omap2/clock_common_data.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock_common_data.c b/arch/arm/mach-omap2/clock_common_data.c
index b9f3ba68148c..c0d02a97b768 100644
--- a/arch/arm/mach-omap2/clock_common_data.c
+++ b/arch/arm/mach-omap2/clock_common_data.c
@@ -52,6 +52,13 @@ const struct clksel_rate div_1_0_rates[] = {
52 { .div = 0 }, 52 { .div = 0 },
53}; 53};
54 54
55const struct clksel_rate div3_1to4_rates[] = {
56 { .div = 1, .val = 0, .flags = RATE_IN_4430 },
57 { .div = 2, .val = 1, .flags = RATE_IN_4430 },
58 { .div = 4, .val = 2, .flags = RATE_IN_4430 },
59 { .div = 0 },
60};
61
55const struct clksel_rate div_1_1_rates[] = { 62const struct clksel_rate div_1_1_rates[] = {
56 { .div = 1, .val = 1, .flags = RATE_IN_4430 | RATE_IN_AM33XX }, 63 { .div = 1, .val = 1, .flags = RATE_IN_4430 | RATE_IN_AM33XX },
57 { .div = 0 }, 64 { .div = 0 },
@@ -108,6 +115,19 @@ const struct clksel_rate div31_1to31_rates[] = {
108}; 115};
109 116
110/* Clocks shared between various OMAP SoCs */ 117/* Clocks shared between various OMAP SoCs */
118#ifdef CONFIG_COMMON_CLK
119
120#include <linux/clk-private.h>
121
122static struct clk_ops dummy_ck_ops = {};
123
124struct clk dummy_ck = {
125 .name = "dummy_clk",
126 .ops = &dummy_ck_ops,
127 .flags = CLK_IS_BASIC,
128};
129
130#else
111 131
112struct clk virt_19200000_ck = { 132struct clk virt_19200000_ck = {
113 .name = "virt_19200000_ck", 133 .name = "virt_19200000_ck",
@@ -120,3 +140,5 @@ struct clk virt_26000000_ck = {
120 .ops = &clkops_null, 140 .ops = &clkops_null,
121 .rate = 26000000, 141 .rate = 26000000,
122}; 142};
143
144#endif