]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/opensimpad-2.4.25-vrs2-pxa1-jpm1/simpad-pm-updates.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / opensimpad-2.4.25-vrs2-pxa1-jpm1 / simpad-pm-updates.patch
1 --- arch/arm/mach-sa1100/pm-sa1100.c    2004-07-14 01:21:38.000000000 +0200
2 +++ /home/fuchs/Projekte/simpad/kernel/linux-2.4.25/arch/arm/mach-sa1100/pm-sa1100.c    2004-07-22 00:41:57.000000000 +0200
3 @@ -69,6 +69,7 @@
4         SLEEP_SAVE_ICMR,
5  #ifdef CONFIG_SA1100_SIMPAD
6         SLEEP_SAVE_MECR, /* needed by SIMpad to get PCMCIA working after resume */
7 +       SLEEP_SAVE_Ser4MCCR0, SLEEP_SAVE_Ser4MCSR, SLEEP_SAVE_Ser4MCCR1, /* touchscreen */      
8  #endif
9         SLEEP_SAVE_Ser1SDCR0,
10  
11 @@ -82,7 +83,7 @@
12  int pm_do_suspend(void)
13  {
14         unsigned long sleep_save[SLEEP_SAVE_SIZE];
15 -
16 +       
17         cli();
18  
19         leds_event(led_stop);
20 @@ -113,10 +114,13 @@
21         SAVE(ICMR);
22  #ifdef CONFIG_SA1100_SIMPAD
23         SAVE(MECR);
24 -#endif
25 -        SAVE(PWER);
26 -        SAVE(MSC1);
27 -        SAVE(MSC2);
28 +       SAVE(Ser4MCCR0);
29 +       SAVE(Ser4MCSR);
30 +       SAVE(Ser4MCCR1);
31 +#endif
32 +       SAVE(PWER);
33 +       SAVE(MSC1);
34 +       SAVE(MSC2);
35  
36         /* ... maybe a global variable initialized by arch code to set this? */
37         GRER &= PWER;
38 @@ -194,6 +198,9 @@
39         RESTORE(ICMR);
40  #ifdef CONFIG_SA1100_SIMPAD
41         RESTORE(MECR);
42 +       RESTORE(Ser4MCCR0);
43 +       RESTORE(Ser4MCSR);
44 +       RESTORE(Ser4MCCR1);
45  #endif
46         RESTORE(PWER);
47         RESTORE(MSC1);