diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2014-08-31 20:57:20 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-09-01 10:00:02 -0400 |
commit | ee295d7ff442699bb7982f2283f71eabcc16f367 (patch) | |
tree | 9f30fbee15ce9f1538e69939cfdebdb6390be896 /arch/arm/mach-imx | |
parent | 1ca7070d1d08e71692295ed06c6cb6331ecac3c8 (diff) |
ARM: imx: remove imx_scu_standby_enable()
With commit c716483c3db1 ("ARM: 8122/1: smp_scu: enable SCU standby
support"), the STANDBY bit of SCU is handled by core function
scu_enable(). So imx_scu_standby_enable() can be removed now.
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx')
-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/platsmp.c | 10 |
3 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 22ba8973bcb9..1dabf435c592 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h | |||
@@ -98,11 +98,9 @@ void imx_set_cpu_arg(int cpu, u32 arg); | |||
98 | void v7_secondary_startup(void); | 98 | void v7_secondary_startup(void); |
99 | void imx_scu_map_io(void); | 99 | void imx_scu_map_io(void); |
100 | void imx_smp_prepare(void); | 100 | void imx_smp_prepare(void); |
101 | void imx_scu_standby_enable(void); | ||
102 | #else | 101 | #else |
103 | static inline void imx_scu_map_io(void) {} | 102 | static inline void imx_scu_map_io(void) {} |
104 | static inline void imx_smp_prepare(void) {} | 103 | static inline void imx_smp_prepare(void) {} |
105 | static inline void imx_scu_standby_enable(void) {} | ||
106 | #endif | 104 | #endif |
107 | void imx_src_init(void); | 105 | void imx_src_init(void); |
108 | void imx_gpc_init(void); | 106 | void imx_gpc_init(void); |
diff --git a/arch/arm/mach-imx/cpuidle-imx6q.c b/arch/arm/mach-imx/cpuidle-imx6q.c index 10844d3bb926..aa935787b743 100644 --- a/arch/arm/mach-imx/cpuidle-imx6q.c +++ b/arch/arm/mach-imx/cpuidle-imx6q.c | |||
@@ -66,10 +66,6 @@ static struct cpuidle_driver imx6q_cpuidle_driver = { | |||
66 | 66 | ||
67 | int __init imx6q_cpuidle_init(void) | 67 | int __init imx6q_cpuidle_init(void) |
68 | { | 68 | { |
69 | /* Need to enable SCU standby for entering WAIT modes */ | ||
70 | if (!cpu_is_imx6sx()) | ||
71 | imx_scu_standby_enable(); | ||
72 | |||
73 | /* Set INT_MEM_CLK_LPM bit to get a reliable WAIT mode support */ | 69 | /* Set INT_MEM_CLK_LPM bit to get a reliable WAIT mode support */ |
74 | imx6q_set_int_mem_clk_lpm(true); | 70 | imx6q_set_int_mem_clk_lpm(true); |
75 | 71 | ||
diff --git a/arch/arm/mach-imx/platsmp.c b/arch/arm/mach-imx/platsmp.c index 5b57c17c06bd..771bd25c1025 100644 --- a/arch/arm/mach-imx/platsmp.c +++ b/arch/arm/mach-imx/platsmp.c | |||
@@ -20,8 +20,6 @@ | |||
20 | #include "common.h" | 20 | #include "common.h" |
21 | #include "hardware.h" | 21 | #include "hardware.h" |
22 | 22 | ||
23 | #define SCU_STANDBY_ENABLE (1 << 5) | ||
24 | |||
25 | u32 g_diag_reg; | 23 | u32 g_diag_reg; |
26 | static void __iomem *scu_base; | 24 | static void __iomem *scu_base; |
27 | 25 | ||
@@ -45,14 +43,6 @@ void __init imx_scu_map_io(void) | |||
45 | scu_base = IMX_IO_ADDRESS(base); | 43 | scu_base = IMX_IO_ADDRESS(base); |
46 | } | 44 | } |
47 | 45 | ||
48 | void imx_scu_standby_enable(void) | ||
49 | { | ||
50 | u32 val = readl_relaxed(scu_base); | ||
51 | |||
52 | val |= SCU_STANDBY_ENABLE; | ||
53 | writel_relaxed(val, scu_base); | ||
54 | } | ||
55 | |||
56 | static int imx_boot_secondary(unsigned int cpu, struct task_struct *idle) | 46 | static int imx_boot_secondary(unsigned int cpu, struct task_struct *idle) |
57 | { | 47 | { |
58 | imx_set_cpu_jump(cpu, v7_secondary_startup); | 48 | imx_set_cpu_jump(cpu, v7_secondary_startup); |