tizen 2.3.1 release
[platform/kernel/u-boot.git] / include / max17042.h
1
2 #ifndef _max17042_h_
3 #define _max17042_h_
4
5 #define MAX17042_I2C_ADDR       (0x6C >> 1)
6
7 typedef struct max17042_fuel_gauge_linear_data {
8     unsigned int min_vcell;
9     unsigned int slope;
10     unsigned int y_interception;
11 }fuel_gauge_linear_data;
12
13 u32 fuel_gauge_read_soc(void);
14 u32 fuel_gauge_read_socvf(void);
15 #if defined(CONFIG_SLP_U1)
16 void init_fuel_gauge(int charger_status);
17 #elif defined(CONFIG_P1P2) || defined(CONFIG_F1)
18 void init_fuel_gauge(u32 i2c_bus, uchar chip, int dc_in, int jig_on, int sense);
19 #endif
20 void init_fuel_gauge_with_reset(u32 i2c_bus, uchar chip, int battery_present, fuel_gauge_linear_data fuel_gauge_quick_table[10]);
21
22 #endif  /* _max17042_h_ */