diff options
author | Eric Miao <eric.miao@linaro.org> | 2011-12-21 09:38:23 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2011-12-25 21:18:56 -0500 |
commit | 46ec1b26901ea7bd0dc3287e8dbd1221b3a51fed (patch) | |
tree | 158a6a656b8df014b10d97d2fc15648a400325aa /arch | |
parent | 010dc8af8f283cc04b7d8f8844f01dd90eca69e5 (diff) |
ARM: imx6q: build pm code only when CONFIG_PM selected
Signed-off-by: Eric Miao <eric.miao@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-imx/Makefile | 6 | ||||
-rw-r--r-- | arch/arm/mach-imx/head-v7.S | 2 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/common.h | 8 |
4 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index c44aa974e79c..0929768573ba 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -595,6 +595,7 @@ comment "i.MX6 family:" | |||
595 | 595 | ||
596 | config SOC_IMX6Q | 596 | config SOC_IMX6Q |
597 | bool "i.MX6 Quad support" | 597 | bool "i.MX6 Quad support" |
598 | select ARM_CPU_SUSPEND if PM | ||
598 | select ARM_GIC | 599 | select ARM_GIC |
599 | select CACHE_L2X0 | 600 | select CACHE_L2X0 |
600 | select CPU_V7 | 601 | select CPU_V7 |
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index aba73214c2a8..7a739bb5915e 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile | |||
@@ -70,4 +70,8 @@ AFLAGS_head-v7.o :=-Wa,-march=armv7-a | |||
70 | obj-$(CONFIG_SMP) += platsmp.o | 70 | obj-$(CONFIG_SMP) += platsmp.o |
71 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 71 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
72 | obj-$(CONFIG_LOCAL_TIMERS) += localtimer.o | 72 | obj-$(CONFIG_LOCAL_TIMERS) += localtimer.o |
73 | obj-$(CONFIG_SOC_IMX6Q) += clock-imx6q.o mach-imx6q.o pm-imx6q.o | 73 | obj-$(CONFIG_SOC_IMX6Q) += clock-imx6q.o mach-imx6q.o |
74 | |||
75 | ifeq ($(CONFIG_PM),y) | ||
76 | obj-$(CONFIG_SOC_IMX6Q) += pm-imx6q.o | ||
77 | endif | ||
diff --git a/arch/arm/mach-imx/head-v7.S b/arch/arm/mach-imx/head-v7.S index 6229efbc70cb..a59cae747af4 100644 --- a/arch/arm/mach-imx/head-v7.S +++ b/arch/arm/mach-imx/head-v7.S | |||
@@ -71,6 +71,7 @@ ENTRY(v7_secondary_startup) | |||
71 | ENDPROC(v7_secondary_startup) | 71 | ENDPROC(v7_secondary_startup) |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #ifdef CONFIG_PM | ||
74 | /* | 75 | /* |
75 | * The following code is located into the .data section. This is to | 76 | * The following code is located into the .data section. This is to |
76 | * allow phys_l2x0_saved_regs to be accessed with a relative load | 77 | * allow phys_l2x0_saved_regs to be accessed with a relative load |
@@ -97,3 +98,4 @@ ENDPROC(v7_cpu_resume) | |||
97 | .globl phys_l2x0_saved_regs | 98 | .globl phys_l2x0_saved_regs |
98 | phys_l2x0_saved_regs: | 99 | phys_l2x0_saved_regs: |
99 | .long 0 | 100 | .long 0 |
101 | #endif | ||
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h index c75f254abd85..f4ebdb817abf 100644 --- a/arch/arm/plat-mxc/include/mach/common.h +++ b/arch/arm/plat-mxc/include/mach/common.h | |||
@@ -131,6 +131,12 @@ extern void imx53_evk_common_init(void); | |||
131 | extern void imx53_qsb_common_init(void); | 131 | extern void imx53_qsb_common_init(void); |
132 | extern void imx53_smd_common_init(void); | 132 | extern void imx53_smd_common_init(void); |
133 | extern int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode); | 133 | extern int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode); |
134 | extern void imx6q_pm_init(void); | ||
135 | extern void imx6q_clock_map_io(void); | 134 | extern void imx6q_clock_map_io(void); |
135 | |||
136 | #ifdef CONFIG_PM | ||
137 | extern void imx6q_pm_init(void); | ||
138 | #else | ||
139 | static inline void imx6q_pm_init(void) {} | ||
140 | #endif | ||
141 | |||
136 | #endif | 142 | #endif |