1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _S3C_ADC_BATTERY_H
3 #define _S3C_ADC_BATTERY_H
4 
5 struct s3c_adc_bat_thresh {
6 	int volt; /* mV */
7 	int cur; /* mA */
8 	int level; /* percent */
9 };
10 
11 struct s3c_adc_bat_pdata {
12 	int (*init)(void);
13 	void (*exit)(void);
14 	void (*enable_charger)(void);
15 	void (*disable_charger)(void);
16 
17 	const struct s3c_adc_bat_thresh *lut_noac;
18 	unsigned int lut_noac_cnt;
19 	const struct s3c_adc_bat_thresh *lut_acin;
20 	unsigned int lut_acin_cnt;
21 
22 	const unsigned int volt_channel;
23 	const unsigned int current_channel;
24 	const unsigned int backup_volt_channel;
25 
26 	const unsigned int volt_samples;
27 	const unsigned int current_samples;
28 	const unsigned int backup_volt_samples;
29 
30 	const unsigned int volt_mult;
31 	const unsigned int current_mult;
32 	const unsigned int backup_volt_mult;
33 	const unsigned int internal_impedance;
34 
35 	const unsigned int backup_volt_max;
36 	const unsigned int backup_volt_min;
37 };
38 
39 #endif
40