Skip to content

Commit 00119f3

Browse files
authored
Merge pull request #567 from FrameworkComputer/hx20-hx30
Merged pull request
2 parents 37d8435 + dea005a commit 00119f3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

board/hx30/cypress5525.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,9 @@ int cypd_reconnect_port_disable(int controller)
14041404
if (port_power_role == PD_ROLE_SINK && (pd_status_reg[1] & BIT(2)) == BIT(2))
14051405
portEnable |= BIT(1);
14061406

1407+
/* If there is DC, just force reconnect port. */
1408+
if (board_batt_is_present() == BP_YES)
1409+
portEnable = 0x0;
14071410

14081411
rv = cypd_write_reg8(controller, CYP5525_PDPORT_ENABLE_REG, portEnable);
14091412
if (rv != EC_SUCCESS)

0 commit comments

Comments
 (0)