battery: add usb chage support to cw2015 battery driver and some other improve
[firefly-linux-kernel-4.4.55.git] / include / linux / power / cw2015_battery.h
1 /*
2  * RockChip ADC Battery Driver 
3  * Copyright (C) 2012, RockChip
4  *
5  * Authors: xuhuicong <xhc@rock-chips.com>
6  *
7  * Based on rk30_adc_battery.c
8
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12  *
13  */
14
15 #ifndef CW2015_BATTERY_H
16 #define CW2015_BATTERY_H
17
18 #define SIZE_BATINFO    64 
19
20 struct cw_bat_platform_data {
21
22         int is_dc_charge;
23         int dc_det_pin;
24         int dc_det_level;
25
26         int is_usb_charge;
27         int chg_mode_sel_pin;
28         int chg_mode_sel_level;
29
30         int bat_low_pin;
31         int bat_low_level;
32         int chg_ok_pin;
33         int chg_ok_level;
34         u8* cw_bat_config_info;
35 };
36
37 #endif