diff options
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/clock.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap1/clock_data.c | 7 |
2 files changed, 6 insertions, 7 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; |
diff --git a/arch/arm/mach-omap1/clock_data.c b/arch/arm/mach-omap1/clock_data.c index ff2d5248df23..9d1a42a5afd8 100644 --- a/arch/arm/mach-omap1/clock_data.c +++ b/arch/arm/mach-omap1/clock_data.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <plat/clock.h> | 25 | #include <plat/clock.h> |
26 | #include <plat/cpu.h> | 26 | #include <plat/cpu.h> |
27 | #include <plat/clkdev_omap.h> | 27 | #include <plat/clkdev_omap.h> |
28 | #include <plat/sram.h> /* for omap_sram_reprogram_clock() */ | ||
28 | #include <plat/usb.h> /* for OTG_BASE */ | 29 | #include <plat/usb.h> /* for OTG_BASE */ |
29 | 30 | ||
30 | #include "clock.h" | 31 | #include "clock.h" |
@@ -944,8 +945,10 @@ void __init omap1_clk_late_init(void) | |||
944 | /* Find the highest supported frequency and enable it */ | 945 | /* Find the highest supported frequency and enable it */ |
945 | if (omap1_select_table_rate(&virtual_ck_mpu, ~0)) { | 946 | if (omap1_select_table_rate(&virtual_ck_mpu, ~0)) { |
946 | pr_err("System frequencies not set, using default. Check your config.\n"); | 947 | pr_err("System frequencies not set, using default. Check your config.\n"); |
947 | omap_writew(0x2290, DPLL_CTL); | 948 | /* |
948 | omap_writew(cpu_is_omap7xx() ? 0x2005 : 0x0005, ARM_CKCTL); | 949 | * Reprogramming the DPLL is tricky, it must be done from SRAM. |
950 | */ | ||
951 | omap_sram_reprogram_clock(0x2290, 0x0005); | ||
949 | ck_dpll1.rate = OMAP1_DPLL1_SANE_VALUE; | 952 | ck_dpll1.rate = OMAP1_DPLL1_SANE_VALUE; |
950 | } | 953 | } |
951 | propagate_rate(&ck_dpll1); | 954 | propagate_rate(&ck_dpll1); |