mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
smbcharger:QC3P charging support
Add qc3p current max for charging current setting. Change-Id: I0db8d15df066b149407eecdc8d3d0425ce052ca2 Signed-off-by: xuwei9 <xuwei9@lenovo.com> Reviewed-on: https://gerrit.mot.com/1949239 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b05fb69b80
commit
e30f0e1fd1
1 changed files with 7 additions and 0 deletions
|
|
@ -4079,6 +4079,9 @@ static enum power_supply_property batt_props[] = {
|
|||
POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN,
|
||||
POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE,
|
||||
POWER_SUPPLY_PROP_HOT_TEMP,
|
||||
#ifdef CONFIG_QC3P_PUMP_SUPPORT
|
||||
POWER_SUPPLY_PROP_QC3P_CURRENT_MAX,
|
||||
#endif
|
||||
};
|
||||
|
||||
static int batt_get_prop(struct power_supply *psy,
|
||||
|
|
@ -4227,6 +4230,10 @@ static int batt_prop_is_writeable(struct power_supply *psy,
|
|||
case POWER_SUPPLY_PROP_DIE_HEALTH:
|
||||
case POWER_SUPPLY_PROP_CYCLE_COUNT:
|
||||
case POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT:
|
||||
case POWER_SUPPLY_PROP_CURRENT_MAX:
|
||||
#ifdef CONFIG_QC3P_PUMP_SUPPORT
|
||||
case POWER_SUPPLY_PROP_QC3P_CURRENT_MAX:
|
||||
#endif
|
||||
return 1;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue