Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f2b2e8d4 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

power: battery_current_limit: Support Vph battery voltage monitoring



Add support to monitor the Vph battery voltage.

When enabled, BCL driver sets thresholds for the Vph battery
voltage monitoring. When the Vph voltage goes below a certain
threshold, it enables the Ibat current monitoring. When the
Vph voltage goes above a certain high threshold, BCL driver
disables the Ibat monitoring and any CPU frequency mitigation.

BCL driver supports two new sysfs nodes vph_high_thresh_uv and
vph_low_thresh_uv to configure the Vph high and low thresholds
respectively. These values can be configured by disabling the
BCL driver and once done with the configuring the BCL driver
should be re-enabled to set the new configuration.

BCL driver exposes two API's, which can be used by other
battery monitoring driver to notify the battery voltage
and current threshold status. Based on these status
notifications, BCL driver will apply or remove the
CPU mitigation.

CRs-Fixed: 629894
Change-Id: Ia45079e3a49387802b3bc1690b40919670824477
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent eb2c33c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment