bq2589x:add qc3p charger type

add qc3p charger type at bq2589x charger ic.
it will not charger icon if not have charger type

Change-Id: I950fd7e9fc9855f27174e58fce81a9e5c654f3c8
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2154583
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wutao 2021-12-27 11:08:10 +08:00 • committed by huaqin89
commit 9b9c0d3edf

View file

@ -1982,6 +1982,7 @@ static int mmi_hvdcp_detect_kthread(void *param)
break;
case WT_CHG_TYPE_QC3P_27W:
dev_err(bq->dev, "QC3P 27W have been detected !\n");
charger_type = POWER_SUPPLY_TYPE_USB_HVDCP_3P5;
qc3p_update_policy(bq);
g_qc3p_detected = true;
break;