kernel:distinguish type-c and microb cdp input setting
Distinguish type-c and micro-b input setting Change-Id: Ibe01d2ea82821fe813389d6d861276f96021f800 Signed-off-by: xuwei9 <xuwei9@lenovo.com> Reviewed-on: https://gerrit.mot.com/1670666 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai <chailu1@motorola.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
1 parent
dd4e38c2ee
commit
26fdb536dc
2 files changed
+5
No files matched your search
@@ -10298,6 +10298,8 @@ static void mmi_heartbeat_work(struct work_struct *work)
|
||||
cl_usb = 1000;
|
||||
else if(chip->mmi.support_2a_dcp)
|
||||
cl_usb = 2000;
|
||||
else if(chip->mmi.support_mb_dcp)
|
||||
cl_usb = 1800;
|
||||
else
|
||||
cl_usb = 1500;
|
||||
else if (chip->real_charger_type ==
|
||||
@@ -11893,6 +11895,8 @@ static int parse_mmi_dt(struct smb_charger *chg)
|
||||
|
||||
chg->mmi.support_2a_dcp = of_property_read_bool(node, "qcom,support-2a-dcp");
|
||||
|
||||
chg->mmi.support_mb_dcp = of_property_read_bool(node, "qcom,support-microb-dcp");
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
@@ -509,6 +509,7 @@ struct mmi_params {
|
||||
int is_otg_enable;
|
||||
bool force_chg_suspend;
|
||||
bool support_2a_dcp;
|
||||
bool support_mb_dcp;
|
||||
bool test_mode;
|
||||
int test_mode_soc;
|
||||
int test_mode_temp;
|
||||
|
||||
Reference in new issue
Block a user