Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1420243 > unrolled thread

Re: [PATCH 02/11] clk: imx: correct AV PLL rate formula

Started byShawn Guo <shawnguo@kernel.org>
First post2016-06-12 13:40 +0200
Last post2016-06-12 13:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 02/11] clk: imx: correct AV PLL rate formula Shawn Guo <shawnguo@kernel.org> - 2016-06-12 13:40 +0200

#1420243 — Re: [PATCH 02/11] clk: imx: correct AV PLL rate formula

FromShawn Guo <shawnguo@kernel.org>
Date2016-06-12 13:40 +0200
SubjectRe: [PATCH 02/11] clk: imx: correct AV PLL rate formula
Message-ID<rJbUd-854-19@gated-at.bofh.it>
On Wed, Jun 08, 2016 at 10:33:31PM +0800, Dong Aisheng wrote:
> From: Anson Huang <b20788@freescale.com>
> 
> The audio/video PLL's rate calculation is as below in RM:
> 
> Fref * (DIV_SELECT + NUM / DENOM), in origin clk-pllv3's
> code, below code is used:
> 
> (parent_rate * div) + ((parent_rate / mfd) * mfn
> 
> as it does NOT consider the float data using div, so below
> formula should be used as a decent method:
> 
> (parent_rate * div) + ((parent_rate * mfn) / mfd)
> 
> and we also need to consider parent_rate * mfd may overflow
> a 32 bit value, 64 bit value should be used.
> 
> After updating this formula, the dram PLL's rate is
> 1066MHz, which is correct, while the old formula gets
> 1056MHz.
> 
> [Aisheng: fix clk_pllv3_av_round_rate too]
> 
> Signed-off-by: Anson Huang <b20788@freescale.com>
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>

Applied, thanks.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web