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