diff options
Diffstat (limited to 'include/battery_fuel_gauge.h')
-rw-r--r-- | include/battery_fuel_gauge.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/battery_fuel_gauge.h b/include/battery_fuel_gauge.h index eb54b64c53..7589a68190 100644 --- a/include/battery_fuel_gauge.h +++ b/include/battery_fuel_gauge.h @@ -14,6 +14,9 @@ /* Number of writes needed to invoke battery cutoff command */ #define SHIP_MODE_WRITES 2 +/* When battery type is not initialized */ +#define BATTERY_TYPE_UNINITIALIZED -1 + struct ship_mode_info { /* * Write Block Support. If wb_support is true, then we use a i2c write @@ -78,6 +81,15 @@ int battery_bq4050_imbalance_mv(void); #endif +#ifdef CONFIG_BATTERY_TYPE_NO_AUTO_DETECT +/* + * Set the battery type, when auto-detection cannot be used. + * + * @param type Battery type + */ +void battery_set_fixed_battery_type(int type); +#endif + /** * Return the board-specific default battery type. * |