]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:26 +0000 (08:34 +0200)
commit3394c84f3685d3620fa2ad01e9201b684ea3632b
tree3dab4075e6c6807d9cc2d03307ad4e77cf2d30d9
parentb6bda68b395555d25ae3ece0e9d5b02102c3f7b4
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