From af4ec5a39fb6762f33bdaf7b1b9975bbd5bc2108 Mon Sep 17 00:00:00 2001 From: Vaibhav Bedia Date: Tue, 29 Nov 2011 16:37:40 +0530 Subject: [PATCH] OMAP: clock: am33xx specific API handling Jitter correction for AM33XX is not present. Handle revelant clock API's properly. Signed-off-by: Afzal Mohammed --- arch/arm/mach-omap2/dpll3xxx.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/dpll3xxx.c b/arch/arm/mach-omap2/dpll3xxx.c index f77022b..5439ed7 100644 --- a/arch/arm/mach-omap2/dpll3xxx.c +++ b/arch/arm/mach-omap2/dpll3xxx.c @@ -301,10 +301,10 @@ static int omap3_noncore_dpll_program(struct clk *clk, u16 m, u8 n, u16 freqsel) _omap3_noncore_dpll_bypass(clk); /* - * Set jitter correction. No jitter correction for OMAP4 and 3630 - * since freqsel field is no longer present + * Set jitter correction. No jitter correction for OMAP4, 3630 + * and AM33XX since freqsel field is no longer present */ - if (!cpu_is_omap44xx() && !cpu_is_omap3630()) { + if (!cpu_is_omap44xx() && !cpu_is_omap3630() && !cpu_is_am33xx()) { v = __raw_readl(dd->control_reg); v &= ~dd->freqsel_mask; v |= freqsel << __ffs(dd->freqsel_mask); @@ -460,8 +460,9 @@ int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate) if (dd->last_rounded_rate == 0) return -EINVAL; - /* No freqsel on OMAP4 and OMAP3630 */ - if (!cpu_is_omap44xx() && !cpu_is_omap3630()) { + /* No freqsel on OMAP4, OMAP3630 and AM33XX */ + if (!cpu_is_omap44xx() && !cpu_is_omap3630() && + !cpu_is_am33xx()) { freqsel = _omap3_dpll_compute_freqsel(clk, dd->last_rounded_n); if (!freqsel) -- 1.9.1