msm: mdss: dp: select pin assignment D for multi-functionality
If a protocol converter or HUB or a dongle supports multi-function to support both displayport and USB simultaneously and exposes pin assignment D as supported one, prefer pin assignment D to be configured on the ports. Change-Id: Ia69987c0e15ec5f15a07ca3a0e44174ab6e5feb9 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
This commit is contained in:
parent
85700def84
commit
c707334396
1 changed files with 8 additions and 2 deletions
|
@ -490,8 +490,14 @@ u32 mdss_dp_usbpd_gen_config_pkt(struct mdss_dp_drv_pdata *dp)
|
|||
pin_cfg = dp->alt_mode.dp_cap.dlink_pin_config;
|
||||
|
||||
for (pin = PIN_ASSIGNMENT_A; pin < PIN_ASSIGNMENT_MAX; pin++) {
|
||||
if (pin_cfg & BIT(pin))
|
||||
break;
|
||||
if (pin_cfg & BIT(pin)) {
|
||||
if (dp->alt_mode.dp_status.multi_func) {
|
||||
if (pin == PIN_ASSIGNMENT_D)
|
||||
break;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (pin == PIN_ASSIGNMENT_MAX)
|
||||
|
|
Loading…
Add table
Reference in a new issue