Commit af4ec5a39fb6762f33bdaf7b1b9975bbd5bc2108
Committed by
Afzal Mohammed
1 parent
7b4dfa0454
Exists in
master
OMAP: clock: am33xx specific API handling
Jitter correction for AM33XX is not present. Handle revelant clock API's properly. Signed-off-by: Afzal Mohammed <afzal@ti.com>
Showing 1 changed file with 6 additions and 5 deletions Side-by-side Diff
arch/arm/mach-omap2/dpll3xxx.c
... | ... | @@ -301,10 +301,10 @@ |
301 | 301 | _omap3_noncore_dpll_bypass(clk); |
302 | 302 | |
303 | 303 | /* |
304 | - * Set jitter correction. No jitter correction for OMAP4 and 3630 | |
305 | - * since freqsel field is no longer present | |
304 | + * Set jitter correction. No jitter correction for OMAP4, 3630 | |
305 | + * and AM33XX since freqsel field is no longer present | |
306 | 306 | */ |
307 | - if (!cpu_is_omap44xx() && !cpu_is_omap3630()) { | |
307 | + if (!cpu_is_omap44xx() && !cpu_is_omap3630() && !cpu_is_am33xx()) { | |
308 | 308 | v = __raw_readl(dd->control_reg); |
309 | 309 | v &= ~dd->freqsel_mask; |
310 | 310 | v |= freqsel << __ffs(dd->freqsel_mask); |
... | ... | @@ -460,8 +460,9 @@ |
460 | 460 | if (dd->last_rounded_rate == 0) |
461 | 461 | return -EINVAL; |
462 | 462 | |
463 | - /* No freqsel on OMAP4 and OMAP3630 */ | |
464 | - if (!cpu_is_omap44xx() && !cpu_is_omap3630()) { | |
463 | + /* No freqsel on OMAP4, OMAP3630 and AM33XX */ | |
464 | + if (!cpu_is_omap44xx() && !cpu_is_omap3630() && | |
465 | + !cpu_is_am33xx()) { | |
465 | 466 | freqsel = _omap3_dpll_compute_freqsel(clk, |
466 | 467 | dd->last_rounded_n); |
467 | 468 | if (!freqsel) |