aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock34xx.h
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2009-01-28 14:08:14 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 12:50:33 -0500
commitb8168d1e3989bc141da6bba87ad49e218ff04658 (patch)
tree7eabca71f38410867174acb06aa2e2013701ac47 /arch/arm/mach-omap2/clock34xx.h
parentf0587b63c24e0c7539c6e77f1bfc68e6053608c7 (diff)
[ARM] OMAP3 clock: DPLL{1,2}_FCLK clksel can divide by 4
OMAP34xx ES2 TRM Delta G to H states that the divider for DPLL1_FCLK and DPLL2_FCLK can divide by 4 in addition to dividing by 1 and 2. Encode this into the OMAP3 clock framework. linux-omap source commit is 050684c18f2ea0b08fdd5233a0cd3c7f96e00a0e. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/clock34xx.h')
-rw-r--r--arch/arm/mach-omap2/clock34xx.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.h b/arch/arm/mach-omap2/clock34xx.h
index 9dec69860ba7..f8088c0ec018 100644
--- a/arch/arm/mach-omap2/clock34xx.h
+++ b/arch/arm/mach-omap2/clock34xx.h
@@ -1060,8 +1060,15 @@ static struct clk corex2_fck = {
1060 1060
1061/* DPLL power domain clock controls */ 1061/* DPLL power domain clock controls */
1062 1062
1063static const struct clksel div2_core_clksel[] = { 1063static const struct clksel_rate div4_rates[] = {
1064 { .parent = &core_ck, .rates = div2_rates }, 1064 { .div = 1, .val = 1, .flags = RATE_IN_343X | DEFAULT_RATE },
1065 { .div = 2, .val = 2, .flags = RATE_IN_343X },
1066 { .div = 4, .val = 4, .flags = RATE_IN_343X },
1067 { .div = 0 }
1068};
1069
1070static const struct clksel div4_core_clksel[] = {
1071 { .parent = &core_ck, .rates = div4_rates },
1065 { .parent = NULL } 1072 { .parent = NULL }
1066}; 1073};
1067 1074
@@ -1076,7 +1083,7 @@ static struct clk dpll1_fck = {
1076 .init = &omap2_init_clksel_parent, 1083 .init = &omap2_init_clksel_parent,
1077 .clksel_reg = OMAP_CM_REGADDR(MPU_MOD, OMAP3430_CM_CLKSEL1_PLL), 1084 .clksel_reg = OMAP_CM_REGADDR(MPU_MOD, OMAP3430_CM_CLKSEL1_PLL),
1078 .clksel_mask = OMAP3430_MPU_CLK_SRC_MASK, 1085 .clksel_mask = OMAP3430_MPU_CLK_SRC_MASK,
1079 .clksel = div2_core_clksel, 1086 .clksel = div4_core_clksel,
1080 .flags = RATE_PROPAGATES, 1087 .flags = RATE_PROPAGATES,
1081 .recalc = &omap2_clksel_recalc, 1088 .recalc = &omap2_clksel_recalc,
1082}; 1089};
@@ -1151,7 +1158,7 @@ static struct clk dpll2_fck = {
1151 .init = &omap2_init_clksel_parent, 1158 .init = &omap2_init_clksel_parent,
1152 .clksel_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD, OMAP3430_CM_CLKSEL1_PLL), 1159 .clksel_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD, OMAP3430_CM_CLKSEL1_PLL),
1153 .clksel_mask = OMAP3430_IVA2_CLK_SRC_MASK, 1160 .clksel_mask = OMAP3430_IVA2_CLK_SRC_MASK,
1154 .clksel = div2_core_clksel, 1161 .clksel = div4_core_clksel,
1155 .flags = RATE_PROPAGATES, 1162 .flags = RATE_PROPAGATES,
1156 .recalc = &omap2_clksel_recalc, 1163 .recalc = &omap2_clksel_recalc,
1157}; 1164};
@@ -1187,6 +1194,11 @@ static struct clk iva2_ck = {
1187 1194
1188/* Common interface clocks */ 1195/* Common interface clocks */
1189 1196
1197static const struct clksel div2_core_clksel[] = {
1198 { .parent = &core_ck, .rates = div2_rates },
1199 { .parent = NULL }
1200};
1201
1190static struct clk l3_ick = { 1202static struct clk l3_ick = {
1191 .name = "l3_ick", 1203 .name = "l3_ick",
1192 .ops = &clkops_null, 1204 .ops = &clkops_null,