Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77568
b: refs/heads/master
c: 533462f
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jan 26, 2008
1 parent 29a7615 commit aa7a22c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f79299ca85f6f8c8817bc38494f7caa0a7043c3b
refs/heads/master: 533462fba545d271e087c3c632cf62ff04808e40
6 changes: 1 addition & 5 deletions trunk/arch/arm/mach-pxa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,10 @@ led-$(CONFIG_MACH_TRIZEPS4) += leds-trizeps4.o
obj-$(CONFIG_LEDS) += $(led-y)

# 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_PXA_SSP) += ssp.o

ifeq ($(CONFIG_PXA27x),y)
obj-$(CONFIG_PM) += standby.o
endif

ifeq ($(CONFIG_PCI),y)
obj-$(CONFIG_MACH_ARMCORE) += cm-x270-pci.o
endif
8 changes: 6 additions & 2 deletions trunk/arch/arm/mach-pxa/sleep.S
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pxa_cpu_save_sp:
str r0, [r1]
ldr pc, [sp], #4

#ifdef CONFIG_PXA27x
/*
* pxa27x_cpu_suspend()
*
Expand Down Expand Up @@ -105,9 +106,11 @@ ENTRY(pxa27x_cpu_suspend)

@ align execution to a cache line
b pxa_cpu_do_suspend
#endif

#ifdef CONFIG_PXA25x
/*
* pxa27x_cpu_suspend()
* pxa25x_cpu_suspend()
*
* Forces CPU into sleep state.
*
Expand Down Expand Up @@ -170,6 +173,7 @@ ENTRY(pxa25x_cpu_suspend)
mcr p14, 0, r0, c6, c0, 0
orr r0, r0, #2 @ initiate change bit
b pxa_cpu_do_suspend
#endif

.ltorg
.align 5
Expand Down Expand Up @@ -209,7 +213,7 @@ pxa_cpu_do_suspend:
20: b 20b @ loop waiting for sleep

/*
* cpu_pxa_resume()
* pxa_cpu_resume()
*
* entry point from bootloader into kernel during resume
*
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-pxa/standby.S
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

.text

#ifdef CONFIG_PXA27x
ENTRY(pxa_cpu_standby)
ldr r0, =PSSR
mov r1, #(PSSR_PH | PSSR_STS)
Expand All @@ -29,3 +30,5 @@ ENTRY(pxa_cpu_standby)
1: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby
str r1, [r0] @ make sure PSSR_PH/STS are clear
mov pc, lr

#endif

0 comments on commit aa7a22c

Please sign in to comment.