mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-07 18:13:14 +00:00
ANDROID: GKI: power_supply: Add "THERM_ICL_LIMIT" property
Add "THERM_ICL_LIMIT" property to allow userspace
thermal throttling algorithm to control input current
limit of charger.
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
(cherry picked from commit d859ce8eb9)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: Ib527712b3dc5cde3555813c26f1a4b3a10b23cc1
This commit is contained in:
committed by
Mark Salyzyn
parent
8b94d07235
commit
1dbd6b406d
@ -454,6 +454,7 @@ static struct device_attribute power_supply_attrs[] = {
|
||||
POWER_SUPPLY_ATTR(scale_mode_en),
|
||||
POWER_SUPPLY_ATTR(voltage_vph),
|
||||
POWER_SUPPLY_ATTR(chip_version),
|
||||
POWER_SUPPLY_ATTR(therm_icl_limit),
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_ATTR(cp_status1),
|
||||
POWER_SUPPLY_ATTR(cp_status2),
|
||||
|
||||
@ -326,6 +326,7 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_SCALE_MODE_EN,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_VPH,
|
||||
POWER_SUPPLY_PROP_CHIP_VERSION,
|
||||
POWER_SUPPLY_PROP_THERM_ICL_LIMIT,
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_PROP_CP_STATUS1,
|
||||
POWER_SUPPLY_PROP_CP_STATUS2,
|
||||
|
||||
Reference in New Issue
Block a user