aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/clock.c
diff options
context:
space:
mode:
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>2011-12-01 16:16:26 -0500
committerTony Lindgren <tony@atomide.com>2011-12-08 21:02:25 -0500
commitf9e5908fa04e15a681dc4695b53c2c0c1d9b9a03 (patch)
treee5174f71bffc3b93d4043a2e65756ff9ac85769d /arch/arm/mach-omap1/clock.c
parent24ce2705c2dd50e51f325c6e57dec378adc8c135 (diff)
ARM: OMAP1: Update dpll1 default rate reprogramming method
According to comments in omap1_select_table_rate(), reprogramming dpll1 is tricky, and should always be done from SRAM. While being at it, move OMAP730 special case handling inside omap_sram_reprogram_clock(). Created on top of version 2 of the series "ARM: OMAP1: Fix dpll1 reprogramming related issues", which it depends on. Tested on Amstrad Delta. Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/clock.c')
-rw-r--r--arch/arm/mach-omap1/clock.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
index ff27dbdba3d6..6d8f7c640237 100644
--- a/arch/arm/mach-omap1/clock.c
+++ b/arch/arm/mach-omap1/clock.c
@@ -218,12 +218,8 @@ int omap1_select_table_rate(struct clk *clk, unsigned long rate)
218 /* 218 /*
219 * In most cases we should not need to reprogram DPLL. 219 * In most cases we should not need to reprogram DPLL.
220 * Reprogramming the DPLL is tricky, it must be done from SRAM. 220 * Reprogramming the DPLL is tricky, it must be done from SRAM.
221 * (on 730, bit 13 must always be 1)
222 */ 221 */
223 if (cpu_is_omap7xx()) 222 omap_sram_reprogram_clock(ptr->dpllctl_val, ptr->ckctl_val);
224 omap_sram_reprogram_clock(ptr->dpllctl_val, ptr->ckctl_val | 0x2000);
225 else
226 omap_sram_reprogram_clock(ptr->dpllctl_val, ptr->ckctl_val);
227 223
228 /* XXX Do we need to recalculate the tree below DPLL1 at this point? */ 224 /* XXX Do we need to recalculate the tree below DPLL1 at this point? */
229 ck_dpll1_p->rate = ptr->pll_rate; 225 ck_dpll1_p->rate = ptr->pll_rate;