OSDN Git Service

power: battery: Add support for FCC stepping
authorUmang Agrawal <uagrawal@codeaurora.org>
Tue, 29 May 2018 11:54:51 +0000 (17:24 +0530)
committerAshay Jaiswal <ashayj@codeaurora.org>
Thu, 14 Jun 2018 10:23:57 +0000 (15:53 +0530)
commit491b7aff28a0282b0e9c3f6252a366419a254f51
treecd272962db7af888a54b4be771cad37e69ff73af
parenteafe2f3d08fe24da1580b30ba27219c7ce382f0c
power: battery: Add support for FCC stepping

On some PMIC designs a sudden increase or decrease in FCC
can impact the PMIC die thermally, causing the XO to drift.
Introduce a logic which gradually ramps up/down the FCC
whenever there is a change in its value, this spreads out
the thermals over-time. The default step rate is 100mA/sec
and the feature can be enabled using the DT property
"qcom,fcc-stepping-enable".

Change-Id: I59ee932b60766208912054f7031cd34151fb5deb
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
Documentation/devicetree/bindings/power/supply/qcom/qpnp-smb2.txt
drivers/power/supply/qcom/battery.c
drivers/power/supply/qcom/qpnp-smb2.c
drivers/power/supply/qcom/smb-lib.c
drivers/power/supply/qcom/smb-lib.h