Go to the documentation of this file.
9 #ifndef __LINUX_MFD_MC13XXX_H
10 #define __LINUX_MFD_MC13XXX_H
42 u8 ato,
bool atox,
unsigned int *
sample);
44 #define MC13XXX_IRQ_ADCDONE 0
45 #define MC13XXX_IRQ_ADCBISDONE 1
46 #define MC13XXX_IRQ_TS 2
47 #define MC13XXX_IRQ_CHGDET 6
48 #define MC13XXX_IRQ_CHGREV 8
49 #define MC13XXX_IRQ_CHGSHORT 9
50 #define MC13XXX_IRQ_CCCV 10
51 #define MC13XXX_IRQ_CHGCURR 11
52 #define MC13XXX_IRQ_BPON 12
53 #define MC13XXX_IRQ_LOBATL 13
54 #define MC13XXX_IRQ_LOBATH 14
55 #define MC13XXX_IRQ_1HZ 24
56 #define MC13XXX_IRQ_TODA 25
57 #define MC13XXX_IRQ_SYSRST 30
58 #define MC13XXX_IRQ_RTCRST 31
59 #define MC13XXX_IRQ_PC 32
60 #define MC13XXX_IRQ_WARM 33
61 #define MC13XXX_IRQ_MEMHLD 34
62 #define MC13XXX_IRQ_THWARNL 36
63 #define MC13XXX_IRQ_THWARNH 37
64 #define MC13XXX_IRQ_CLK 38
66 #define MC13XXX_NUM_IRQ 46
82 #define MC13783_LED_MD 0
83 #define MC13783_LED_AD 1
84 #define MC13783_LED_KP 2
85 #define MC13783_LED_R1 3
86 #define MC13783_LED_G1 4
87 #define MC13783_LED_B1 5
88 #define MC13783_LED_R2 6
89 #define MC13783_LED_G2 7
90 #define MC13783_LED_B2 8
91 #define MC13783_LED_R3 9
92 #define MC13783_LED_G3 10
93 #define MC13783_LED_B3 11
94 #define MC13783_LED_MAX MC13783_LED_B3
107 #define MC13783_LED_TRIODE_MD (1 << 0)
108 #define MC13783_LED_TRIODE_AD (1 << 1)
109 #define MC13783_LED_TRIODE_KP (1 << 2)
110 #define MC13783_LED_BOOST_EN (1 << 3)
111 #define MC13783_LED_TC1HALF (1 << 4)
112 #define MC13783_LED_SLEWLIMTC (1 << 5)
113 #define MC13783_LED_SLEWLIMBL (1 << 6)
114 #define MC13783_LED_TRIODE_TC1 (1 << 7)
115 #define MC13783_LED_TRIODE_TC2 (1 << 8)
116 #define MC13783_LED_TRIODE_TC3 (1 << 9)
119 #define MC13783_LED_AB_DISABLED 0
120 #define MC13783_LED_AB_MD1 1
121 #define MC13783_LED_AB_MD12 2
122 #define MC13783_LED_AB_MD123 3
123 #define MC13783_LED_AB_MD1234 4
124 #define MC13783_LED_AB_MD1234_AD1 5
125 #define MC13783_LED_AB_MD1234_AD12 6
126 #define MC13783_LED_AB_MD1_AD 7
129 #define MC13783_LED_ABREF_200MV 0
130 #define MC13783_LED_ABREF_400MV 1
131 #define MC13783_LED_ABREF_600MV 2
132 #define MC13783_LED_ABREF_800MV 3
135 #define MC13783_LED_PERIOD_10MS 0
136 #define MC13783_LED_PERIOD_100MS 1
137 #define MC13783_LED_PERIOD_500MS 2
138 #define MC13783_LED_PERIOD_2S 3
146 #define MC13783_BUTTON_DBNC_0MS 0
147 #define MC13783_BUTTON_DBNC_30MS 1
148 #define MC13783_BUTTON_DBNC_150MS 2
149 #define MC13783_BUTTON_DBNC_750MS 3
150 #define MC13783_BUTTON_ENABLE (1 << 2)
151 #define MC13783_BUTTON_POL_INVERT (1 << 3)
152 #define MC13783_BUTTON_RESET_EN (1 << 4)
167 #define MC13783_TS_ATO_FIRST false
168 #define MC13783_TS_ATO_EACH true
184 #define MC13XXX_USE_TOUCHSCREEN (1 << 0)
185 #define MC13XXX_USE_CODEC (1 << 1)
186 #define MC13XXX_USE_ADC (1 << 2)
187 #define MC13XXX_USE_RTC (1 << 3)
197 #define MC13XXX_ADC_MODE_TS 1
198 #define MC13XXX_ADC_MODE_SINGLE_CHAN 2
199 #define MC13XXX_ADC_MODE_MULT_CHAN 3
201 #define MC13XXX_ADC0 43
202 #define MC13XXX_ADC0_LICELLCON (1 << 0)
203 #define MC13XXX_ADC0_CHRGICON (1 << 1)
204 #define MC13XXX_ADC0_BATICON (1 << 2)
205 #define MC13XXX_ADC0_ADREFEN (1 << 10)
206 #define MC13XXX_ADC0_TSMOD0 (1 << 12)
207 #define MC13XXX_ADC0_TSMOD1 (1 << 13)
208 #define MC13XXX_ADC0_TSMOD2 (1 << 14)
209 #define MC13XXX_ADC0_ADINC1 (1 << 16)
210 #define MC13XXX_ADC0_ADINC2 (1 << 17)
212 #define MC13XXX_ADC0_TSMOD_MASK (MC13XXX_ADC0_TSMOD0 | \
213 MC13XXX_ADC0_TSMOD1 | \
216 #define MC13XXX_ADC0_CONFIG_MASK (MC13XXX_ADC0_TSMOD_MASK | \
217 MC13XXX_ADC0_LICELLCON | \
218 MC13XXX_ADC0_CHRGICON | \
219 MC13XXX_ADC0_BATICON)