Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Added support such that /proc/cpu/clocks prints the clock usage and frequency
on 35 kernel.
Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
Also, use cpu_is_* macros rather than CONFIG_ARCH_*
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
This patch only adds general clkdev support without actually switching
any MXC architecture to clkdev.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
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>
|
|
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>
|
|
This just leaves include/asm-arm/plat-* to deal with.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
|
|
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>
|