xref: /OK3568_Linux_fs/kernel/include/linux/power/bq25700-charge.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * This software is licensed under the terms of the GNU General Public
3*4882a593Smuzhiyun  * License version 2, as published by the Free Software Foundation, and
4*4882a593Smuzhiyun  * may be copied, distributed, and modified under those terms.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * This program is distributed in the hope that it will be useful,
7*4882a593Smuzhiyun  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8*4882a593Smuzhiyun  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9*4882a593Smuzhiyun  * GNU General Public License for more details.
10*4882a593Smuzhiyun  */
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #ifndef __CHARGER_BQ25700_H_
13*4882a593Smuzhiyun #define __CHARGER_BQ25700_H_
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #define CHARGER_CURRENT_EVENT	0x01
16*4882a593Smuzhiyun #define INPUT_CURRENT_EVENT	0x02
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun struct bq2570x_platform_data {
19*4882a593Smuzhiyun 	int current_limit;		/* mA */
20*4882a593Smuzhiyun 	int weak_battery_voltage;	/* mV */
21*4882a593Smuzhiyun 	int battery_regulation_voltage;	/* mV */
22*4882a593Smuzhiyun 	int charge_current;		/* mA */
23*4882a593Smuzhiyun 	int termination_current;	/* mA */
24*4882a593Smuzhiyun 	int resistor_sense;		/* m ohm */
25*4882a593Smuzhiyun 	const char *notify_device;	/* name */
26*4882a593Smuzhiyun };
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun void bq25700_charger_set_current(unsigned long event, int current_value);
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun #endif /* __CHARGER_BQ25700_H_ */
31