0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef _INCLUDE_PALMZ72_H_
0011 #define _INCLUDE_PALMZ72_H_
0012
0013
0014 #define GPIO_NR_PALMZ72_GPIO_RESET 1
0015 #define GPIO_NR_PALMZ72_POWER_DETECT 0
0016
0017
0018 #define GPIO_NR_PALMZ72_SD_DETECT_N 14
0019 #define GPIO_NR_PALMZ72_SD_POWER_N 98
0020 #define GPIO_NR_PALMZ72_SD_RO 115
0021
0022
0023 #define GPIO_NR_PALMZ72_WM9712_IRQ 27
0024
0025
0026 #define GPIO_NR_PALMZ72_IR_DISABLE 49
0027
0028
0029 #define GPIO_NR_PALMZ72_USB_DETECT_N 15
0030 #define GPIO_NR_PALMZ72_USB_PULLUP 95
0031
0032
0033 #define GPIO_NR_PALMZ72_BL_POWER 20
0034 #define GPIO_NR_PALMZ72_LCD_POWER 96
0035
0036
0037 #define GPIO_NR_PALMZ72_LED_GREEN 88
0038
0039
0040 #define GPIO_NR_PALMZ72_BT_POWER 17
0041 #define GPIO_NR_PALMZ72_BT_RESET 83
0042
0043
0044 #define GPIO_NR_PALMZ72_CAM_PWDN 56
0045 #define GPIO_NR_PALMZ72_CAM_RESET 57
0046 #define GPIO_NR_PALMZ72_CAM_POWER 91
0047
0048
0049
0050
0051 #define PALMZ72_BAT_MAX_VOLTAGE 4000
0052 #define PALMZ72_BAT_MIN_VOLTAGE 3550
0053 #define PALMZ72_BAT_MAX_CURRENT 0
0054 #define PALMZ72_BAT_MIN_CURRENT 0
0055 #define PALMZ72_BAT_MAX_CHARGE 1
0056 #define PALMZ72_BAT_MIN_CHARGE 1
0057 #define PALMZ72_MAX_LIFE_MINS 360
0058
0059
0060 #define PALMZ72_MAX_INTENSITY 0xFE
0061 #define PALMZ72_DEFAULT_INTENSITY 0x7E
0062 #define PALMZ72_LIMIT_MASK 0x7F
0063 #define PALMZ72_PRESCALER 0x3F
0064 #define PALMZ72_PERIOD_NS 3500
0065
0066 #ifdef CONFIG_PM
0067 struct palmz72_resume_info {
0068 u32 magic0;
0069 u32 magic1;
0070 u32 resume_addr;
0071 u32 pad[11];
0072 u32 arm_control;
0073 u32 aux_control;
0074 u32 ttb;
0075 u32 domain_access;
0076 u32 process_id;
0077 };
0078 #endif
0079 #endif
0080