diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-01-07 05:00:40 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-03-04 21:34:59 -0500 |
commit | fa6be65ed4d65ca7e56a878d247ed963a3619c0e (patch) | |
tree | fd9a5b1715952569d050326ad0f36292399bff9e | |
parent | c0bea59ca58e30fb8fd29254569bdaae482398ad (diff) |
ARM: imx: Use INT_MEM_CLK_LPM as the bit name
Bit 17 of register CCM_CGPR is called INT_MEM_CLK_LPM as per the mx6
reference manual, so use this name instead.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | arch/arm/mach-imx/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/cpuidle-imx6q.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-imx/pm-imx6q.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index baf439dc22d8..cdbddfa2a42f 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h | |||
@@ -139,7 +139,7 @@ void imx_anatop_init(void); | |||
139 | void imx_anatop_pre_suspend(void); | 139 | void imx_anatop_pre_suspend(void); |
140 | void imx_anatop_post_resume(void); | 140 | void imx_anatop_post_resume(void); |
141 | int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode); | 141 | int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode); |
142 | void imx6q_set_chicken_bit(void); | 142 | void imx6q_set_int_mem_clk_lpm(void); |
143 | 143 | ||
144 | void imx_cpu_die(unsigned int cpu); | 144 | void imx_cpu_die(unsigned int cpu); |
145 | int imx_cpu_kill(unsigned int cpu); | 145 | int imx_cpu_kill(unsigned int cpu); |
diff --git a/arch/arm/mach-imx/cpuidle-imx6q.c b/arch/arm/mach-imx/cpuidle-imx6q.c index 23ddfb693b2d..6bcae0479049 100644 --- a/arch/arm/mach-imx/cpuidle-imx6q.c +++ b/arch/arm/mach-imx/cpuidle-imx6q.c | |||
@@ -68,8 +68,8 @@ int __init imx6q_cpuidle_init(void) | |||
68 | /* Need to enable SCU standby for entering WAIT modes */ | 68 | /* Need to enable SCU standby for entering WAIT modes */ |
69 | imx_scu_standby_enable(); | 69 | imx_scu_standby_enable(); |
70 | 70 | ||
71 | /* Set chicken bit to get a reliable WAIT mode support */ | 71 | /* Set INT_MEM_CLK_LPM bit to get a reliable WAIT mode support */ |
72 | imx6q_set_chicken_bit(); | 72 | imx6q_set_int_mem_clk_lpm(); |
73 | 73 | ||
74 | return cpuidle_register(&imx6q_cpuidle_driver, NULL); | 74 | return cpuidle_register(&imx6q_cpuidle_driver, NULL); |
75 | } | 75 | } |
diff --git a/arch/arm/mach-imx/pm-imx6q.c b/arch/arm/mach-imx/pm-imx6q.c index 7a9b98589db7..30af3c0e1bf3 100644 --- a/arch/arm/mach-imx/pm-imx6q.c +++ b/arch/arm/mach-imx/pm-imx6q.c | |||
@@ -56,15 +56,15 @@ | |||
56 | #define BM_CLPCR_MASK_L2CC_IDLE (0x1 << 27) | 56 | #define BM_CLPCR_MASK_L2CC_IDLE (0x1 << 27) |
57 | 57 | ||
58 | #define CGPR 0x64 | 58 | #define CGPR 0x64 |
59 | #define BM_CGPR_CHICKEN_BIT (0x1 << 17) | 59 | #define BM_CGPR_INT_MEM_CLK_LPM (0x1 << 17) |
60 | 60 | ||
61 | static void __iomem *ccm_base; | 61 | static void __iomem *ccm_base; |
62 | 62 | ||
63 | void imx6q_set_chicken_bit(void) | 63 | void imx6q_set_int_mem_clk_lpm(void) |
64 | { | 64 | { |
65 | u32 val = readl_relaxed(ccm_base + CGPR); | 65 | u32 val = readl_relaxed(ccm_base + CGPR); |
66 | 66 | ||
67 | val |= BM_CGPR_CHICKEN_BIT; | 67 | val |= BM_CGPR_INT_MEM_CLK_LPM; |
68 | writel_relaxed(val, ccm_base + CGPR); | 68 | writel_relaxed(val, ccm_base + CGPR); |
69 | } | 69 | } |
70 | 70 | ||