Commits
Ye Li committed 09063bbf2c7
MLK-18437-2 tcpc: Add external PD switch call back Introduce a callback function to setup external PD switch. When PD process is enabled, we call this function only when SINK_VBUS is enabled to avoid system power shut down. When PD process is disabled, since the tcpc and external PD switch may still in dead battery mode, set them to exit dead battery. This patch is used to fix two issues on iMX8MM EVK: 1. When power on the board, by default the PTN5110 and NX20P3483 will enter dead battery mode. But for some cases, like timing issue for PTN5110 and NX20P3483 (refer rework instructions CQ6), and when dual port are plugin power sources. There are possibility the PTN5110 does not enter dead battery mode, but NX20P3483 is in dead battery. So for the USB2 primary power port, we has to check SINK_VBUS before NX20P3483 exits dead battery, otherwise the system power will shut down 2. For the USB1 port, when dual port are plugin power sources. We need to set both PTN5110 and NX20P3483 exit dead battery. Otherwise this port can't work for normal host/device mode. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 30004c6b35a5f0b8460f534d324f9bde01325373) (cherry picked from commit baf8c71cb56ea3653948e7441a8005cb2b2e2848)