]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[ARM] MXC: Use a single function for decoding a PLL
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 26 Jan 2009 14:41:16 +0000 (15:41 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 13 Mar 2009 09:33:46 +0000 (10:33 +0100)
commita2865197a5dad23c619c84f44b7fdf7fdbef3f9c
treee62afa2bf72a8bad1cbfd400f79b92a13617fac6
parent5512e88f3a1f1b498fd07181f14596ee117b3471
[ARM] MXC: Use a single function for decoding a PLL

We had 3 versions of this function in clock support for MX1/2/3
Use a single one instead. I picked the one from the MX3 as it seems
to calculate more accurate as the other ones. Also, on MX27 and MX31 mfn
can be negative, this hasn't been handled correctly on MX27 since now.

This patch has been tested on MX27 and MX31 and produces the same clock
frequencies for me.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx1/clock.c
arch/arm/mach-mx2/clock_imx27.c
arch/arm/mach-mx3/clock.c
arch/arm/plat-mxc/clock.c
arch/arm/plat-mxc/include/mach/clock.h