rk31xx:RT5025:support pmic rt5025
[firefly-linux-kernel-4.4.55.git] / include / linux / power / rt5025-gauge.h
1 /*
2  *  rt5025_gauge.h
3  *  fuel-gauge driver
4  *  revision 0.1
5  */
6
7 #ifndef __LINUX_RT5025_GAUGE_H_
8 #define __LINUX_RT5025_GAUGE_H_
9
10 #define GPIO_GAUGE_ALERT 4
11
12 struct rt5025_gauge_callbacks {
13         void (*rt5025_gauge_irq_handler)(void);
14         void (*rt5025_gauge_set_status)(int status);
15         void (*rt5025_gauge_suspend)(void);
16         void (*rt5025_gauge_resume)(void);
17         void (*rt5025_gauge_remove)(void);
18 };
19
20
21 typedef enum{
22         CHG,
23         DCHG
24 }operation_mode;
25
26 typedef enum{
27         MAXTEMP,
28         MINTEMP,
29         MAXVOLT,
30         MINVOLT1,
31         MINVOLT2,
32         TEMP_RLS,
33         VOLT_RLS,
34         LAST_TYPE
35 }alert_type;    
36
37 #endif  /* #ifndef __LINUX_RT5025_GAUGE_H_ */