This might be a stupid questions, but what are you using for your real-time clock.
Are you using an external RTC or you are using the power management on the verdex?
I heard a lot of people implementing RTC using an external clock. Is this patch for the
external clock?

I've also heard that you can use VBatt line to power the RTC when the processor is a sleep.
Not sure how to do this....are you using this?

Hope you share some of your knowledge of how you manage to do this.

On Fri, Mar 20, 2009 at 4:35 AM, matm <m.murray@wlv.ac.uk> wrote:

Not sure if people will be interested in this, but here it is. Never done a
patch before, so feel free to correct anything.
The patch has allowed me to do a wake up from standby - not tried anything
else.

Mat

rtc.patch:

Index: pxaregs-1.14/pxaregs.c
===================================================================
--- pxaregs-1.14.orig/pxaregs.c
+++ pxaregs-1.14/pxaregs.c
***************
*** 1226,1231 ****
--- 1226,1248 ----
 { "RTSR_HZ",     0x40900008,  1, 0x00000001, 'x', "RTC Hz Interrupt
detected" },
 { "RTSR_ALE",    0x40900008,  2, 0x00000001, 'x', "RTC Alarm Interrupt
Enable" },
 { "RTSR_HZE",    0x40900008,  3, 0x00000001, 'x', "RTC Hz Interrupt
Enable" },
+ //PXA270 only register
+ { "RTSR_RDAL1",  0x40900008,  4, 0x00000001, 'x', "RTC Wristwatch Alarm 1
Status" },
+ { "RTSR_RDALE1", 0x40900008,  5, 0x00000001, 'x', "RTC Wristwatch Alarm
Enable for Writstwatch Alarm 1" },
+ { "RTSR_RDAL2",  0x40900008,  6, 0x00000001, 'x', "RTC Wristwatch Alarm 2
Status" },
+ { "RTSR_RDALE2", 0x40900008,  7, 0x00000001, 'x', "RTC Wristwatch Alarm
Enable for Writstwatch Alarm 2" },
+ { "RTSR_SWAL1",  0x40900008,  8, 0x00000001, 'x', "RTC Stopwatch Alarm 1
Status" },
+ { "RTSR_SWALE1", 0x40900008,  9, 0x00000001, 'x', "RTC Stopwatch Alarm
Enable for Stopwatch Alarm 1" },
+ { "RTSR_SWAL2",  0x40900008,  10, 0x00000001, 'x', "RTC Stopwatch Alarm 2
Status" },
+ { "RTSR_SWALE2", 0x40900008,  11, 0x00000001, 'x', "RTC Stopwatch Alarm
Enable for Stopwatch Alarm 2" },
+ { "RTSR_SWCE",   0x40900008,  12, 0x00000001, 'x', "RTC Stopwatch Count
Enable for SWCR Count Register" },
+ { "RTSR_PIAL",   0x40900008,  13, 0x00000001, 'x', "RTC Periodic Interrupt
Alarm Status" },
+ { "RTSR_PIALE",  0x40900008,  14, 0x00000001, 'x', "RTC Periodic Interrupt
Alarm Enable" },
+ { "RTSR_PICE",   0x40900008,  15, 0x00000001, 'x', "RTC Periodic Interrupt
Count Enable for RTCPICR Count Register" },
+
+ //PXA270 only register
+ { "SWAR1",      0x4090002C,  0, 0xffffffff, 'x', "Stopwatch alarm register
1" },
+ { "SWAR2",      0x40900030,  0, 0xffffffff, 'x', "Stopwatch alarm register
2" },

 { "OSMR0",       0x40A00000,  0, 0xffffffff, 'x', "OS Timer Match Register
0 (4-36)" },
 { "OSMR1",       0x40A00004,  0, 0xffffffff, 'x', "OS Timer Match Register
1 (4-36)" },
--
View this message in context: http://www.nabble.com/pxaregs-patch-for-RTC-tp22616207p22616207.html
Sent from the Gumstix mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



--
Joey aka. Rizal
Home is where people think of you...