Commit 533462fb authored by Russell King's avatar Russell King Committed by Russell King

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent f79299ca
...@@ -41,14 +41,10 @@ led-$(CONFIG_MACH_TRIZEPS4) += leds-trizeps4.o ...@@ -41,14 +41,10 @@ led-$(CONFIG_MACH_TRIZEPS4) += leds-trizeps4.o
obj-$(CONFIG_LEDS) += $(led-y) obj-$(CONFIG_LEDS) += $(led-y)
# Misc features # Misc features
obj-$(CONFIG_PM) += pm.o sleep.o obj-$(CONFIG_PM) += pm.o sleep.o standby.o
obj-$(CONFIG_CPU_FREQ) += cpu-pxa.o obj-$(CONFIG_CPU_FREQ) += cpu-pxa.o
obj-$(CONFIG_PXA_SSP) += ssp.o obj-$(CONFIG_PXA_SSP) += ssp.o
ifeq ($(CONFIG_PXA27x),y)
obj-$(CONFIG_PM) += standby.o
endif
ifeq ($(CONFIG_PCI),y) ifeq ($(CONFIG_PCI),y)
obj-$(CONFIG_MACH_ARMCORE) += cm-x270-pci.o obj-$(CONFIG_MACH_ARMCORE) += cm-x270-pci.o
endif endif
...@@ -50,6 +50,7 @@ pxa_cpu_save_sp: ...@@ -50,6 +50,7 @@ pxa_cpu_save_sp:
str r0, [r1] str r0, [r1]
ldr pc, [sp], #4 ldr pc, [sp], #4
#ifdef CONFIG_PXA27x
/* /*
* pxa27x_cpu_suspend() * pxa27x_cpu_suspend()
* *
...@@ -105,9 +106,11 @@ ENTRY(pxa27x_cpu_suspend) ...@@ -105,9 +106,11 @@ ENTRY(pxa27x_cpu_suspend)
@ align execution to a cache line @ align execution to a cache line
b pxa_cpu_do_suspend b pxa_cpu_do_suspend
#endif
#ifdef CONFIG_PXA25x
/* /*
* pxa27x_cpu_suspend() * pxa25x_cpu_suspend()
* *
* Forces CPU into sleep state. * Forces CPU into sleep state.
* *
...@@ -170,6 +173,7 @@ ENTRY(pxa25x_cpu_suspend) ...@@ -170,6 +173,7 @@ ENTRY(pxa25x_cpu_suspend)
mcr p14, 0, r0, c6, c0, 0 mcr p14, 0, r0, c6, c0, 0
orr r0, r0, #2 @ initiate change bit orr r0, r0, #2 @ initiate change bit
b pxa_cpu_do_suspend b pxa_cpu_do_suspend
#endif
.ltorg .ltorg
.align 5 .align 5
...@@ -209,7 +213,7 @@ pxa_cpu_do_suspend: ...@@ -209,7 +213,7 @@ pxa_cpu_do_suspend:
20: b 20b @ loop waiting for sleep 20: b 20b @ loop waiting for sleep
/* /*
* cpu_pxa_resume() * pxa_cpu_resume()
* *
* entry point from bootloader into kernel during resume * entry point from bootloader into kernel during resume
* *
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
.text .text
#ifdef CONFIG_PXA27x
ENTRY(pxa_cpu_standby) ENTRY(pxa_cpu_standby)
ldr r0, =PSSR ldr r0, =PSSR
mov r1, #(PSSR_PH | PSSR_STS) mov r1, #(PSSR_PH | PSSR_STS)
...@@ -29,3 +30,5 @@ ENTRY(pxa_cpu_standby) ...@@ -29,3 +30,5 @@ ENTRY(pxa_cpu_standby)
1: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby 1: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby
str r1, [r0] @ make sure PSSR_PH/STS are clear str r1, [r0] @ make sure PSSR_PH/STS are clear
mov pc, lr mov pc, lr
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment