diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2014-05-20 02:55:15 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-07-18 04:10:09 -0400 |
commit | 36b66c3fc20ad9a50ae7f19b3c807c68259753df (patch) | |
tree | eb47f70f7ca833acf1fa73d2b1b20c588fdb1a4e /arch/arm/mach-imx/common.h | |
parent | 4ef5e3870113c5caab22d4363d882b372f2c6b57 (diff) |
ARM: imx5: use dynamic mapping for Cortex and GPC block
The imx5 pm code uses static mapping to access Cortex and GPC registers.
The patch create struct imx5_pm_data to encode physical address of
Cortex and GPC block, and create dynamic mapping for them at run-time.
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/common.h')
-rw-r--r-- | arch/arm/mach-imx/common.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 8aa198c9b1d5..1156bf6cbeb5 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h | |||
@@ -142,10 +142,12 @@ void imx6sl_pm_init(void); | |||
142 | void imx6q_pm_set_ccm_base(void __iomem *base); | 142 | void imx6q_pm_set_ccm_base(void __iomem *base); |
143 | 143 | ||
144 | #ifdef CONFIG_PM | 144 | #ifdef CONFIG_PM |
145 | void imx5_pm_init(void); | 145 | void imx51_pm_init(void); |
146 | void imx53_pm_init(void); | ||
146 | void imx5_pm_set_ccm_base(void __iomem *base); | 147 | void imx5_pm_set_ccm_base(void __iomem *base); |
147 | #else | 148 | #else |
148 | static inline void imx5_pm_init(void) {} | 149 | static inline void imx51_pm_init(void) {} |
150 | static inline void imx53_pm_init(void) {} | ||
149 | static inline void imx5_pm_set_ccm_base(void __iomem *base) {} | 151 | static inline void imx5_pm_set_ccm_base(void __iomem *base) {} |
150 | #endif | 152 | #endif |
151 | 153 | ||