qcom: battery: remove ICL_REDUCTION support
Make battery library to directly update the split current of the main charger via power_supply framework's set_property API using CURRENT_MAX property. ICL_REDUCTION property is no longer required. Note that we are not doing initial ICL vote for USBIN USBIN, instead when time comes to split aicl, we will read the input current limit and if nothing is set, check what the hw determined as the max limit and use that. For a PD charger case where the apsd result will be unknown, the current limit is expected to be set by the time aicl settled is called. The 30 second delaying of parallel enabling, should give PD engine ample time to set the current limits. While at it clean up the way settled current change is tracked. Create a variable that specifically indicates the total settled current seen last time settled current was adjusted. This makes compare to an updated settled current value easy. CRs-Fixed: 2014572 Change-Id: I040b65e6380f2c12350ea44bf32e6981ff126f18 Signed-off-by:Ashay Jaiswal <ashayj@codeaurora.org> Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment