summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/clock.c
AgeCommit message (Collapse)Author
2010-12-06ENGR00136022: MXC:Fixed bugs in bus_frequency driver.Ranjani Vaidyanathan
Fix MX53 boot issue caused by the changes made to bus_freq driver. Ensure that all MX5x platforms can enter/exit various low power modes. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-12-04ENGR00135048-1: Fixed bugs in common sw bus frequency scaling code.Ranjani Vaidyanathan
Some GPC bits were getting set twice, fixed the issue. Protected the section where CPU frequency is changed. For MX50, increase the cpu frequency along with increasing the bus frequency. Fixed the test conditions under which bus frequency should be set to low, medium or high setpoint. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-11-12ENGR00133669: MXC: Ensure some clock APIs can be called in process context only.Ranjani Vaidyanathan
The added checks will ensure that clk_enable() and clk_disable() are called only in a process context(). The main reason behind doing this is to allow for voltage scaling as part of clk_enable()/clk_disable() functions. Voltage scaling uses the Regulator APIs which cannot be called in an ISR context. This also reduces the amount of work done in an ISR context. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-10-06ENGR00132139 MX50: Set DDR to 24MHz in LPAPM modeRanjani Vaidyanathan
Added support for DDR at 24MHz in LPAPM mode to achieve low power in idle mode. In LPAPM mode, all peripheral domain clocks and DDR are sourced from 24MHz XTAL. When ARM is in WFI, its sourced from 24MHz XTAL too. Thus all PLLs are turned off. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-09-30ENGR00132142: Add code to print system clocks information for 35 kernel.Ranjani Vaidyanathan
Added support such that /proc/cpu/clocks prints the clock usage and frequency on 35 kernel. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-09-25ENGR00126863: MX50: Add LPAPM supportRanjani Vaidyanathan
Add support for Low Power Audio Playback Mode. System will enter this mode whenever no modules that need high bus frequencies are active. The LP domain and DDR will run at 24Mhz and CPU is at 160MHz in LPAPM mode. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-08-31ENGR00126692-1: MX5X: Upgrade kernel to 2.6.35Dinh Nguyen
This patch contains changes to plat-mxc files. Contains all checkpatch and copyright fixes. Acked-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
2010-02-02imx: WARN in clk_disable if the clock isn't enabledUwe Kleine-König
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>
2009-08-07[ARM] MXC: remove the now unused #ifndef CONFIG_COMMON_CLKDEVSascha Hauer
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-07MXC PLL decoding: calculate mfn value with less magicSascha Hauer
Also, use cpu_is_* macros rather than CONFIG_ARCH_* Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-13[ARM] MXC: add clkdev supportSascha Hauer
This patch only adds general clkdev support without actually switching any MXC architecture to clkdev. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-13[ARM] MXC: Use a single function for decoding a PLLSascha Hauer
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>
2008-09-04[ARM] remove unused #include <version.h>Huang Weiyi
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>
2008-08-07[ARM] Move include/asm-arm/arch-* to arch/arm/*/include/machRussell King
This just leaves include/asm-arm/plat-* to deal with. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2008-07-05MXC family: Add clock handlingJuergen Beisert
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>