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