5 #define MAX17042_I2C_ADDR (0x6C >> 1)
7 typedef struct max17042_fuel_gauge_linear_data {
8 unsigned int min_vcell;
10 unsigned int y_interception;
11 }fuel_gauge_linear_data;
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);
20 void init_fuel_gauge_with_reset(u32 i2c_bus, uchar chip, int battery_present, fuel_gauge_linear_data fuel_gauge_quick_table[10]);
22 #endif /* _max17042_h_ */