summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk-pllv2.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM i.MX pllv2: make round_rate accurateSascha Hauer2012-06-041-24/+54
| | | | | | | | | | | | | in round_rate we made the assumption that we can set arbitrary frequencies and thus returned the input rate. This is not correct, for certain frequencies after setting a frequency with set_rate, recalc_rate will return different values. To fix this, introduce set_rate/recalc_rate functions which work on variables instead of registers directly. This way we can call these in round_rate to get the exact rate which we would get if we call set_rate with this value. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX pllv2: use standard register set unconditionallySascha Hauer2012-06-041-24/+11
| | | | | | | | | | | | | The i.MX5 PLL has two different register sets for setting the rate. One is used for the standard case and and is used for DVFS. Which one of them is used depends on a hardware input of the PLL. Current implementation reads back from the hardware which setting is used. This is bogus: If we ever want to implement DVFS we have to program both register sets and not only the one which happens to be used at the moment. For now, just use the standard register set uncondionally. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX: Add common clock support for pllv2Sascha Hauer2012-05-021-0/+249
This PLL is found on i.MX51 and i.MX53 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
OpenPOWER on IntegriCloud