This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
[PATCH] resume from suspend support in Redboot for Assabet
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Subject: [ECOS] [PATCH] resume from suspend support in Redboot for Assabet
- From: Nicolas Pitre <nico at cam dot org>
- Date: Fri, 19 Oct 2001 16:34:33 -0400 (EDT)
- cc: <ecos-discuss at sources dot redhat dot com>
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