OSDN Git Service

ARM: EXYNOS: Support cluster power off on exynos5420/5800
authorAbhilash Kesavan <a.kesavan@samsung.com>
Fri, 4 Jul 2014 20:50:58 +0000 (05:50 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 22 Jul 2014 23:20:21 +0000 (08:20 +0900)
commit20fe6f98fae6968b9d6067d49d9ecae9d9593b37
tree3e2a7d303e99f7b0a7fd5442cf6d569803650a9a
parent5f534d10d223636b3cd214376471fcfef71baea2
ARM: EXYNOS: Support cluster power off on exynos5420/5800

Turning off a cluster when all 4 cores of the cluster are powered off
saves power significantly. Powering off the A15 L2 alone gives around
100mW in savings. Add support for powering off the A15/A7 clusters on
exynos5420/5800.

The patch enables specific register bits which ensure that:
   - cluster L2 will be turned on before the first man is powered up.
   - last man will be turned off before the cluster L2 is turned off.
   - core is powered down before powering it up.

Remove the exynos_cluster_power_control function completely as we can
rely on the above mentioned bits rather than polling the cluster power
status register.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/mcpm-exynos.c
arch/arm/mach-exynos/regs-pmu.h