diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-01-04 17:43:36 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-26 10:07:56 -0500 |
commit | 533462fba545d271e087c3c632cf62ff04808e40 (patch) | |
tree | 74c54d673e7dbba98755a5e59ae792cecda94424 | |
parent | f79299ca85f6f8c8817bc38494f7caa0a7043c3b (diff) |
[ARM] pxa: omit PXA25x or PXA27x standby/sleep code as appropriate
There's no point building standby/sleep code for processors which
aren't configured.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-pxa/Makefile | 6 | ||||
-rw-r--r-- | arch/arm/mach-pxa/sleep.S | 8 | ||||
-rw-r--r-- | arch/arm/mach-pxa/standby.S | 3 |
3 files changed, 10 insertions, 7 deletions
diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index db18c8de7d55..f7444c7a9227 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile | |||
@@ -41,14 +41,10 @@ led-$(CONFIG_MACH_TRIZEPS4) += leds-trizeps4.o | |||
41 | obj-$(CONFIG_LEDS) += $(led-y) | 41 | obj-$(CONFIG_LEDS) += $(led-y) |
42 | 42 | ||
43 | # Misc features | 43 | # Misc features |
44 | obj-$(CONFIG_PM) += pm.o sleep.o | 44 | obj-$(CONFIG_PM) += pm.o sleep.o standby.o |
45 | obj-$(CONFIG_CPU_FREQ) += cpu-pxa.o | 45 | obj-$(CONFIG_CPU_FREQ) += cpu-pxa.o |
46 | obj-$(CONFIG_PXA_SSP) += ssp.o | 46 | obj-$(CONFIG_PXA_SSP) += ssp.o |
47 | 47 | ||
48 | ifeq ($(CONFIG_PXA27x),y) | ||
49 | obj-$(CONFIG_PM) += standby.o | ||
50 | endif | ||
51 | |||
52 | ifeq ($(CONFIG_PCI),y) | 48 | ifeq ($(CONFIG_PCI),y) |
53 | obj-$(CONFIG_MACH_ARMCORE) += cm-x270-pci.o | 49 | obj-$(CONFIG_MACH_ARMCORE) += cm-x270-pci.o |
54 | endif | 50 | endif |
diff --git a/arch/arm/mach-pxa/sleep.S b/arch/arm/mach-pxa/sleep.S index f33d0c4a96d6..14bb4a93ea52 100644 --- a/arch/arm/mach-pxa/sleep.S +++ b/arch/arm/mach-pxa/sleep.S | |||
@@ -50,6 +50,7 @@ pxa_cpu_save_sp: | |||
50 | str r0, [r1] | 50 | str r0, [r1] |
51 | ldr pc, [sp], #4 | 51 | ldr pc, [sp], #4 |
52 | 52 | ||
53 | #ifdef CONFIG_PXA27x | ||
53 | /* | 54 | /* |
54 | * pxa27x_cpu_suspend() | 55 | * pxa27x_cpu_suspend() |
55 | * | 56 | * |
@@ -105,9 +106,11 @@ ENTRY(pxa27x_cpu_suspend) | |||
105 | 106 | ||
106 | @ align execution to a cache line | 107 | @ align execution to a cache line |
107 | b pxa_cpu_do_suspend | 108 | b pxa_cpu_do_suspend |
109 | #endif | ||
108 | 110 | ||
111 | #ifdef CONFIG_PXA25x | ||
109 | /* | 112 | /* |
110 | * pxa27x_cpu_suspend() | 113 | * pxa25x_cpu_suspend() |
111 | * | 114 | * |
112 | * Forces CPU into sleep state. | 115 | * Forces CPU into sleep state. |
113 | * | 116 | * |
@@ -170,6 +173,7 @@ ENTRY(pxa25x_cpu_suspend) | |||
170 | mcr p14, 0, r0, c6, c0, 0 | 173 | mcr p14, 0, r0, c6, c0, 0 |
171 | orr r0, r0, #2 @ initiate change bit | 174 | orr r0, r0, #2 @ initiate change bit |
172 | b pxa_cpu_do_suspend | 175 | b pxa_cpu_do_suspend |
176 | #endif | ||
173 | 177 | ||
174 | .ltorg | 178 | .ltorg |
175 | .align 5 | 179 | .align 5 |
@@ -209,7 +213,7 @@ pxa_cpu_do_suspend: | |||
209 | 20: b 20b @ loop waiting for sleep | 213 | 20: b 20b @ loop waiting for sleep |
210 | 214 | ||
211 | /* | 215 | /* |
212 | * cpu_pxa_resume() | 216 | * pxa_cpu_resume() |
213 | * | 217 | * |
214 | * entry point from bootloader into kernel during resume | 218 | * entry point from bootloader into kernel during resume |
215 | * | 219 | * |
diff --git a/arch/arm/mach-pxa/standby.S b/arch/arm/mach-pxa/standby.S index d774430d02c0..434a6ab0eca5 100644 --- a/arch/arm/mach-pxa/standby.S +++ b/arch/arm/mach-pxa/standby.S | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | .text | 18 | .text |
19 | 19 | ||
20 | #ifdef CONFIG_PXA27x | ||
20 | ENTRY(pxa_cpu_standby) | 21 | ENTRY(pxa_cpu_standby) |
21 | ldr r0, =PSSR | 22 | ldr r0, =PSSR |
22 | mov r1, #(PSSR_PH | PSSR_STS) | 23 | mov r1, #(PSSR_PH | PSSR_STS) |
@@ -29,3 +30,5 @@ ENTRY(pxa_cpu_standby) | |||
29 | 1: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby | 30 | 1: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby |
30 | str r1, [r0] @ make sure PSSR_PH/STS are clear | 31 | str r1, [r0] @ make sure PSSR_PH/STS are clear |
31 | mov pc, lr | 32 | mov pc, lr |
33 | |||
34 | #endif | ||