[ECOS] [PATCH] resume from suspend support in Redboot for Assabet
Nicolas Pitre
nico@cam.org
Fri Oct 19 13:34:00 GMT 2001
Please apply to the CVS.
This has been tested for couple months now.
Note that the clearing of the PSSR_PH bit should be performed by the OS and
not by Redboot on wakeup events (the Compaq iPAQ code is wrong wrt this).
--- ecos/packages/hal/arm/sa11x0/assabet/current/include/hal_platform_setup.h.orig Fri Oct 19 16:15:28 2001
+++ ecos/packages/hal/arm/sa11x0/assabet/current/include/hal_platform_setup.h Fri Oct 19 16:14:51 2001
@@ -215,6 +215,17 @@
.word 0, 0
19:
+ // Wakeup from deep sleep mode
+ ldr r1,=SA11X0_RESET_STATUS
+ ldr r2,[r1]
+ cmp r2,#SA11X0_SLEEP_MODE_RESET
+ bne 45f
+ ldr r1,=SA11X0_PWR_MGR_SCRATCHPAD
+ ldr r1,[r1]
+ mov pc,r1
+ nop
+45: nop
+
// Release peripheral hold (set by RESET)
ldr r1,=SA11X0_PWR_MGR_SLEEP_STATUS
ldr r2,=SA11X0_PERIPHERAL_CONTROL_HOLD
Nicolas
More information about the Ecos-discuss
mailing list