From 63ca2d693f39bdf8cad3f92234f4c757df20e87d Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Wed, 14 Dec 2016 10:58:32 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/407928 Commit-Ready: Vijay P Hiremath Tested-by: Vijay P Hiremath Reviewed-by: Aaron Durbin --- include/charge_state_v2.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'include/charge_state_v2.h') 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. -- cgit v1.2.1