From: Tony Lindgren <tony@atomide.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAP3 clock: fix DPLL jitter correction and rate programming
Date: Thu, 26 Jun 2008 16:50:29 +0300 [thread overview]
Message-ID: <20080626135029.GL12992@atomide.com> (raw)
In-Reply-To: <alpine.DEB.1.00.0806240109440.9741@utopia.booyaka.com>
* Paul Walmsley <paul@pwsan.com> [080624 10:11]:
>
> Fix DPLL jitter correction programming. Previously,
> omap3_noncore_dpll_program() stored the FREQSEL jitter correction
> parameter to the wrong register. This caused jitter correction to be set
> incorrectly and also caused the DPLL divider to be programmed incorrectly.
>
> Also, fix DPLL divider programming. An off-by-one error existed in
> omap3_noncore_dpll_program(), causing DPLLs to be programmed with a higher
> divider than intended.
Pushing today.
Tony
>
> Signed-off-by: Paul Walmsley <paul@pwsan.com>
> ---
>
> arch/arm/mach-omap2/clock34xx.c | 13 ++++++++-----
> 1 files changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c
> index 408b51a..8fdf8f3 100644
> --- a/arch/arm/mach-omap2/clock34xx.c
> +++ b/arch/arm/mach-omap2/clock34xx.c
> @@ -346,14 +346,17 @@ static int omap3_noncore_dpll_program(struct clk *clk, u16 m, u8 n, u16 freqsel)
> /* 3430 ES2 TRM: 4.7.6.9 DPLL Programming Sequence */
> _omap3_noncore_dpll_bypass(clk);
>
> + /* Set jitter correction */
> + v = __raw_readl(dd->control_reg);
> + v &= ~dd->freqsel_mask;
> + v |= freqsel << __ffs(dd->freqsel_mask);
> + __raw_writel(v, dd->control_reg);
> +
> + /* Set DPLL multiplier, divider */
> v = __raw_readl(dd->mult_div1_reg);
> v &= ~(dd->mult_mask | dd->div1_mask);
> -
> - /* Set mult (M), div1 (N), freqsel */
> v |= m << __ffs(dd->mult_mask);
> - v |= n << __ffs(dd->div1_mask);
> - v |= freqsel << __ffs(dd->freqsel_mask);
> -
> + v |= (n - 1) << __ffs(dd->div1_mask);
> __raw_writel(v, dd->mult_div1_reg);
>
> /* We let the clock framework set the other output dividers later */
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2008-06-26 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 7:11 [PATCH] OMAP3 clock: fix DPLL jitter correction and rate programming Paul Walmsley
2008-06-26 13:50 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080626135029.GL12992@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox