summaryrefslogtreecommitdiff
path: root/include/charger.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/charger.h')
-rw-r--r--include/charger.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/charger.h b/include/charger.h
index d8d62c1e9b..402f9eca73 100644
--- a/include/charger.h
+++ b/include/charger.h
@@ -85,6 +85,12 @@ struct charger_drv {
enum ec_error_list (*get_voltage)(int chgnum, int *voltage);
enum ec_error_list (*set_voltage)(int chgnum, int voltage);
+
+ /* Get the measured charge current and voltage in mA/mV */
+ enum ec_error_list (*get_actual_current)(int chgnum, int *current);
+ enum ec_error_list (*get_actual_voltage)(int chgnum, int *voltage);
+
+
/* Discharge battery when on AC power. */
enum ec_error_list (*discharge_on_ac)(int chgnum, int enable);
@@ -250,6 +256,10 @@ enum ec_error_list charger_set_current(int chgnum, int current);
enum ec_error_list charger_get_voltage(int chgnum, int *voltage);
enum ec_error_list charger_set_voltage(int chgnum, int voltage);
+/* Get the measured charge current and voltage in mA/mV */
+enum ec_error_list charger_get_actual_current(int chgnum, int *current);
+enum ec_error_list charger_get_actual_voltage(int chgnum, int *voltage);
+
/* Discharge battery when on AC power. */
enum ec_error_list charger_discharge_on_ac(int enable);