summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/clock.c
Commit message (Collapse)AuthorAgeFilesLines
* arm: mxc: utilise usecount field in clock operationsAmit Kucheria2010-07-261-12/+25
| | | | | | | | | | | | This patch fixes the clock refcounting when reparenting is used. Boot-tested on imx51 babbage board. Sascha pointed out a good explanation of refcounting here: http://www.spinics.net/lists/arm-kernel/msg85879.html Signed-off-by: Amit Kucheria <amit.kucheria@canonical.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx: WARN in clk_disable if the clock isn't enabledUwe Kleine-König2010-02-021-0/+1
| | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Russell King <linux@arm.linux.org.uk>
* [ARM] MXC: remove the now unused #ifndef CONFIG_COMMON_CLKDEVSascha Hauer2009-08-071-154/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MXC PLL decoding: calculate mfn value with less magicSascha Hauer2009-08-071-7/+9
| | | | | | Also, use cpu_is_* macros rather than CONFIG_ARCH_* Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [ARM] MXC: add clkdev supportSascha Hauer2009-03-131-0/+10
| | | | | | | This patch only adds general clkdev support without actually switching any MXC architecture to clkdev. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [ARM] MXC: Use a single function for decoding a PLLSascha Hauer2009-03-131-0/+44
| | | | | | | | | | | | 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>
* [ARM] remove unused #include <version.h>Huang Weiyi2008-09-041-1/+0
| | | | | | | | | | The driver(s) below do not use LINUX_VERSION_CODE nor KERNEL_VERSION. arch/arm/plat-mxc/clock.c This patch removes the said #include <version.h>. Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
* [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/machRussell King2008-08-071-1/+1
| | | | | | This just leaves include/asm-arm/plat-* to deal with. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
* MXC family: Add clock handlingJuergen Beisert2008-07-051-0/+331
Internal clock path handling for the mxc CPUs. Changed against the original Freescale code (and against clocklib for example): - clock rate is always calculated whenever one ask for the current rate (means struct clk has no more a member called "rate"). So switching the PLL base frequency will propagate immediately to all other clocks that are depending on this frequency. Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
OpenPOWER on IntegriCloud