1
2
3
4
5
6
7
8
9
10 #ifndef _INCLUDE_PALMZ72_H_
11 #define _INCLUDE_PALMZ72_H_
12
13
14 #define GPIO_NR_PALMZ72_GPIO_RESET 1
15 #define GPIO_NR_PALMZ72_POWER_DETECT 0
16
17
18 #define GPIO_NR_PALMZ72_SD_DETECT_N 14
19 #define GPIO_NR_PALMZ72_SD_POWER_N 98
20 #define GPIO_NR_PALMZ72_SD_RO 115
21
22
23 #define GPIO_NR_PALMZ72_WM9712_IRQ 27
24
25
26 #define GPIO_NR_PALMZ72_IR_DISABLE 49
27
28
29 #define GPIO_NR_PALMZ72_USB_DETECT_N 15
30 #define GPIO_NR_PALMZ72_USB_PULLUP 95
31
32
33 #define GPIO_NR_PALMZ72_BL_POWER 20
34 #define GPIO_NR_PALMZ72_LCD_POWER 96
35
36
37 #define GPIO_NR_PALMZ72_LED_GREEN 88
38
39
40 #define GPIO_NR_PALMZ72_BT_POWER 17
41 #define GPIO_NR_PALMZ72_BT_RESET 83
42
43
44 #define GPIO_NR_PALMZ72_CAM_PWDN 56
45 #define GPIO_NR_PALMZ72_CAM_RESET 57
46 #define GPIO_NR_PALMZ72_CAM_POWER 91
47
48
49
50
51 #define PALMZ72_BAT_MAX_VOLTAGE 4000
52 #define PALMZ72_BAT_MIN_VOLTAGE 3550
53 #define PALMZ72_BAT_MAX_CURRENT 0
54 #define PALMZ72_BAT_MIN_CURRENT 0
55 #define PALMZ72_BAT_MAX_CHARGE 1
56 #define PALMZ72_BAT_MIN_CHARGE 1
57 #define PALMZ72_MAX_LIFE_MINS 360
58
59
60 #define PALMZ72_MAX_INTENSITY 0xFE
61 #define PALMZ72_DEFAULT_INTENSITY 0x7E
62 #define PALMZ72_LIMIT_MASK 0x7F
63 #define PALMZ72_PRESCALER 0x3F
64 #define PALMZ72_PERIOD_NS 3500
65
66 #ifdef CONFIG_PM
67 struct palmz72_resume_info {
68 u32 magic0;
69 u32 magic1;
70 u32 resume_addr;
71 u32 pad[11];
72 u32 arm_control;
73 u32 aux_control;
74 u32 ttb;
75 u32 domain_access;
76 u32 process_id;
77 };
78 #endif
79 #endif
80