OMAP: clock: am33xx specific API handling
authorVaibhav Bedia <vaibhav.bedia@ti.com>
Tue, 29 Nov 2011 11:07:40 +0000 (16:37 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:40 +0000 (00:44 +0530)
Jitter correction for AM33XX is not present.
Handle revelant clock API's properly.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/mach-omap2/dpll3xxx.c

index fc56745676fa1ea713f8cdc6cff80e5b2b3ac3d5..57c4c7c46f5e4dd9d331ad69bfe608ba5f583d12 100644 (file)
@@ -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);
@@ -463,8 +463,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)