13d0407baSopenharmony_ci/* 23d0407baSopenharmony_ci * This software is licensed under the terms of the GNU General Public 33d0407baSopenharmony_ci * License version 2, as published by the Free Software Foundation, and 43d0407baSopenharmony_ci * may be copied, distributed, and modified under those terms. 53d0407baSopenharmony_ci * 63d0407baSopenharmony_ci * This program is distributed in the hope that it will be useful, 73d0407baSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 83d0407baSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 93d0407baSopenharmony_ci * GNU General Public License for more details. 103d0407baSopenharmony_ci */ 113d0407baSopenharmony_ci 123d0407baSopenharmony_ci#ifndef __CHARGER_BQ25700_H_ 133d0407baSopenharmony_ci#define __CHARGER_BQ25700_H_ 143d0407baSopenharmony_ci 153d0407baSopenharmony_ci#define CHARGER_CURRENT_EVENT 0x01 163d0407baSopenharmony_ci#define INPUT_CURRENT_EVENT 0x02 173d0407baSopenharmony_ci 183d0407baSopenharmony_cistruct bq2570x_platform_data { 193d0407baSopenharmony_ci int current_limit; /* mA */ 203d0407baSopenharmony_ci int weak_battery_voltage; /* mV */ 213d0407baSopenharmony_ci int battery_regulation_voltage; /* mV */ 223d0407baSopenharmony_ci int charge_current; /* mA */ 233d0407baSopenharmony_ci int termination_current; /* mA */ 243d0407baSopenharmony_ci int resistor_sense; /* m ohm */ 253d0407baSopenharmony_ci const char *notify_device; /* name */ 263d0407baSopenharmony_ci}; 273d0407baSopenharmony_ci 283d0407baSopenharmony_civoid bq25700_charger_set_current(unsigned long event, int current_value); 293d0407baSopenharmony_ci 303d0407baSopenharmony_ci#endif /* __CHARGER_BQ25700_H_ */ 31