mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
charge ic sc89890 set ico,common baseline code
charge ic set ico common baseline code Change-Id: I2be5cfaa9bfb75aaf689b06c2568d5607b28c86e Signed-off-by: <hq114@motorola.com> Reviewed-on: https://gerrit.mot.com/2360334 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu <xuwei9@lenovo.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
23f004fe4c
commit
8eea710880
1 changed files with 8 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ bool qc3p_update_policy(struct bq2589x *chip);
|
|||
#define MMI_HVDCP2_VOLTAGE_STANDARD 8000000
|
||||
#define MMI_HVDCP3_VOLTAGE_STANDARD 7500000
|
||||
#define MMI_HVDCP_DETECT_ICL_LIMIT 500
|
||||
|
||||
#define BQ2589X_ENABLE_ICO_THRESHOLD 250
|
||||
struct bq2589x_iio {
|
||||
struct iio_channel *usbin_v_chan;
|
||||
};
|
||||
|
|
@ -2708,7 +2708,13 @@ static int bq2589x_set_icl(struct charger_device *chg_dev, u32 uA)
|
|||
dev_info(bq->dev, "hvdcp detecting now\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (bq->part_no == SC89890H) {
|
||||
if (mA < BQ2589X_ENABLE_ICO_THRESHOLD) {
|
||||
bq2589x_enable_ico(bq, false);
|
||||
} else {
|
||||
bq2589x_enable_ico(bq, true);
|
||||
}
|
||||
}
|
||||
return bq2589x_set_input_current_limit(bq, mA);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue