Commits
Ye Li committed 06ce30b25ba
MLK-18160 tcpc: Add driver for USB typec port controller (TCPC) Add an simple driver for USB typec port controller in freescale common codes. The functionalities in this driver include: 1. Support to set UFP mode, when running as device mode, the board level codes can use it to configure the TCPC port to UFP mode. 2. Support to set DFP mode for USB host. 3. Support PD charge with setup PD connection and send/receive PD messages to negotiate a proper voltage and current. 4. Support power source with 2 stages of capability. Some power delivery source send the source capability by 2 stages: 1st stage send the source capability message with only basic 5V PDO, after the 5V power session setup, 2nd stage it will send full source capabilities with all PDOs it can support, in this case, we should go on to process the following PD source cap to have a new power session setup. Signed-off-by: Li Jun <jun.li@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit b81241ee369708015008c45f9fb7ed6c1a0b5da9)