Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1540880
| From | Nikita Yushchenko <nikita.yoush@cogentembedded.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] clk: imx: pllv3: support fractional multiplier on vf610 PLL1/PLL2 |
| Date | 2016-12-13 09:00 +0100 |
| Message-ID | <sNQad-6TX-15@gated-at.bofh.it> (permalink) |
| References | <sMt61-3Ds-9@gated-at.bofh.it> <sNPQR-6N6-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
>> diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c
>> index 19f9b622981a..24a9e914e0d5 100644
>> --- a/drivers/clk/imx/clk-pllv3.c
>> +++ b/drivers/clk/imx/clk-pllv3.c
>> @@ -288,6 +291,87 @@ static const struct clk_ops clk_pllv3_av_ops = {
>> .set_rate = clk_pllv3_av_set_rate,
>> };
>>
>> +static unsigned long clk_pllv3_vf610_recalc_rate(struct clk_hw *hw,
>> + unsigned long parent_rate)
>> +{
>> + struct clk_pllv3 *pll = to_clk_pllv3(hw);
>> + u32 mfn = readl_relaxed(pll->base + PLL_VF610_NUM_OFFSET);
>> + u32 mfd = readl_relaxed(pll->base + PLL_VF610_DENOM_OFFSET);
>> + u32 div = (readl_relaxed(pll->base) & pll->div_mask) ? 22 : 20;
Should be not 'div' but 'mfi' to be consistent with datasheet and with
other routines in the same patch. Will fix.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH] clk: imx: pllv3: support fractional multiplier on vf610 PLL1/PLL2 Stephen Boyd <sboyd@codeaurora.org> - 2016-12-13 08:40 +0100
Re: [PATCH] clk: imx: pllv3: support fractional multiplier on vf610 PLL1/PLL2 Nikita Yushchenko <nikita.yoush@cogentembedded.com> - 2016-12-13 08:50 +0100
Re: [PATCH] clk: imx: pllv3: support fractional multiplier on vf610 PLL1/PLL2 Stephen Boyd <sboyd@codeaurora.org> - 2016-12-14 00:20 +0100
Re: [PATCH] clk: imx: pllv3: support fractional multiplier on vf610 PLL1/PLL2 Nikita Yushchenko <nikita.yoush@cogentembedded.com> - 2016-12-13 09:00 +0100
csiph-web