]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00179574: MX6- Add bus frequency scaling support
authorRanjani Vaidyanathan <ra5478@freescale.com>
Tue, 7 Feb 2012 20:34:13 +0000 (14:34 -0600)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:32 +0000 (14:11 +0200)
commitd60d283940f283df05432df86ec9a36739f711e6
tree3dab4075e6c6807d9cc2d03307ad4e77cf2d30d9
parentb5ae5514fabd43c187409ae55f8ac34ef89472f2
ENGR00179574: MX6- Add bus frequency scaling support

Add support for scaling the bus frequency (both DDR
and ahb_clk).
The DDR and AHB_CLK are dropped to 24MHz when all devices
that need high AHB frequency are disabled and the CORE
frequency is at the lowest setpoint.
The DDR is dropped to 400MHz for the video playback usecase.
In this mode the GPU, FEC, SATA etc are disabled.

To scale the bus frequency, its necessary that all cores
except the core that is executing the DDR frequency change
are in WFE. This is achieved by generating interrupts on
un-used interrupts (Int no 139, 144, 145 and 146).

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
14 files changed:
arch/arm/mach-mx5/clock.c
arch/arm/mach-mx6/Makefile
arch/arm/mach-mx6/board-mx6q_arm2.c
arch/arm/mach-mx6/board-mx6q_sabreauto.c
arch/arm/mach-mx6/board-mx6q_sabrelite.c
arch/arm/mach-mx6/board-mx6q_sabresd.c
arch/arm/mach-mx6/bus_freq.c
arch/arm/mach-mx6/clock.c
arch/arm/mach-mx6/cpu.c
arch/arm/mach-mx6/devices-imx6q.h
arch/arm/mach-mx6/mx6_ddr_freq.S [new file with mode: 0644]
arch/arm/mach-mx6/mx6_mmdc.c [new file with mode: 0644]
arch/arm/plat-mxc/clock.c
arch/arm/plat-mxc/cpufreq.c