This source file includes following definitions.
- pxa3xx_mfp_suspend
- pxa3xx_mfp_resume
1
2
3
4
5
6
7
8
9
10
11
12
13 #include <linux/module.h>
14 #include <linux/kernel.h>
15 #include <linux/init.h>
16 #include <linux/io.h>
17 #include <linux/syscore_ops.h>
18
19 #include <mach/hardware.h>
20 #include "mfp-pxa3xx.h"
21 #include <mach/pxa3xx-regs.h>
22
23 #ifdef CONFIG_PM
24
25
26
27
28
29
30
31 static int pxa3xx_mfp_suspend(void)
32 {
33 mfp_config_lpm();
34 return 0;
35 }
36
37 static void pxa3xx_mfp_resume(void)
38 {
39 mfp_config_run();
40
41
42
43
44
45
46 ASCR &= ~(ASCR_RDH | ASCR_D1S | ASCR_D2S | ASCR_D3S);
47 }
48 #else
49 #define pxa3xx_mfp_suspend NULL
50 #define pxa3xx_mfp_resume NULL
51 #endif
52
53 struct syscore_ops pxa3xx_mfp_syscore_ops = {
54 .suspend = pxa3xx_mfp_suspend,
55 .resume = pxa3xx_mfp_resume,
56 };