summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/common.h
diff options
context:
space:
mode:
authorShawn Guo2013-09-25 17:09:36 +0200
committerShawn Guo2013-10-21 03:39:24 +0200
commit9e8147bb5ec5d1dda2141da70f96b98985a306cb (patch)
treed76ea7f7d8402b1a197312478677e76bbbbdc556 /arch/arm/mach-imx/common.h
parentARM: imx: drop extern with function prototypes in common.h (diff)
downloadkernel-qcow2-linux-9e8147bb5ec5d1dda2141da70f96b98985a306cb.tar.gz
kernel-qcow2-linux-9e8147bb5ec5d1dda2141da70f96b98985a306cb.tar.xz
kernel-qcow2-linux-9e8147bb5ec5d1dda2141da70f96b98985a306cb.zip
ARM: imx6q: move low-power code out of clock driver
The LPM (Low Power Mode) code that currently sits in imx6q clock driver will be reused by imx6sl. Let's move it into pm-imx6q.c, so that we can keep clock driver SoC specific and reuse pm-imx6q.c on imx6sl. In order to avoid adding another ioremap for CCM block, imx6q_pm_set_ccm_base() is created to let clock driver set up ccm_base for pm code. During the move, the unused CCGR macros get removed. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/common.h')
-rw-r--r--arch/arm/mach-imx/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h
index ddcbd90b4edf..fde6661ef70d 100644
--- a/arch/arm/mach-imx/common.h
+++ b/arch/arm/mach-imx/common.h
@@ -147,9 +147,11 @@ int imx_cpu_kill(unsigned int cpu);
#ifdef CONFIG_PM
void imx6q_pm_init(void);
+void imx6q_pm_set_ccm_base(void __iomem *base);
void imx5_pm_init(void);
#else
static inline void imx6q_pm_init(void) {}
+static inline void imx6q_pm_set_ccm_base(void __iomem *base) {}
static inline void imx5_pm_init(void) {}
#endif