summaryrefslogtreecommitdiff
path: root/include/charge_state_v2.h
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2016-12-14 10:58:32 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-02 14:04:12 -0800
commit63ca2d693f39bdf8cad3f92234f4c757df20e87d (patch)
tree1bc47795ed25d303e82be603d400a493e38a2c0b /include/charge_state_v2.h
parentfd498b77c5adb8ac4b17770b99797ab6ce90d0d7 (diff)
downloadchrome-ec-63ca2d693f39bdf8cad3f92234f4c757df20e87d.tar.gz
charger_profile: Add common code for charger profile override
Added common code for charger profile override for fast charging. Fast charging configs can be defined in the respective board battery file and use the common code for imposing the custom data. BUG=chrome-os-partner:59393 BRANCH=none TEST=Enabled the config on Reef. Manually overrode the temperature and voltage. Observed correct charge profile config is selected for each tests. Change-Id: I075d271258470b98d38e4d5395d749469d3fd469 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/407928 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/charge_state_v2.h')
-rw-r--r--include/charge_state_v2.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/include/charge_state_v2.h b/include/charge_state_v2.h
index 70ca47f6d3..e908758371 100644
--- a/include/charge_state_v2.h
+++ b/include/charge_state_v2.h
@@ -40,29 +40,6 @@ struct charge_state_data {
int desired_input_current;
};
-/*
- * Optional customization.
- *
- * On input, the struct reflects the default behavior. The function can make
- * changes to the state, requested_voltage, or requested_current.
- *
- * Return value:
- * >0 Desired time in usec for this poll period.
- * 0 Use the default poll period (which varies with the state).
- * <0 An error occurred. The poll time will be shorter than usual. Too
- * many errors in a row may trigger some corrective action.
- */
-int charger_profile_override(struct charge_state_data *);
-
-/*
- * Access to custom profile params through host commands.
- * What this does is up to the implementation.
- */
-enum ec_status charger_profile_override_get_param(uint32_t param,
- uint32_t *value);
-enum ec_status charger_profile_override_set_param(uint32_t param,
- uint32_t value);
-
/**
* Set the charge input current limit. This value is stored and sent every
* time AC is applied.