MLK-17313-1 tcpc: Add support for power sink in dead battery
authorYe Li <ye.li@nxp.com>
Mon, 8 Jan 2018 14:05:51 +0000 (08:05 -0600)
committerYe Li <ye.li@nxp.com>
Wed, 10 Jan 2018 05:46:24 +0000 (23:46 -0600)
commite12e0701eba501f959133328fc013108b9b291a1
treee0171e9369fc7a51de16830b659900e6cbeef138
parent6a2418e2b0554045ae1e8096b22fa64da5de4d8a
MLK-17313-1 tcpc: Add support for power sink in dead battery

To add support for power sink when booting in dead battery, we
have to setup PD connection with PD source and send/receive PD messages
to negotiate a proper voltage and current.

This patch refactors the TCPC driver with this new function and also
keep DFP mode support for USB host.

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Jun Li <jun.li@nxp.com>
board/freescale/common/Kconfig
board/freescale/common/Makefile
board/freescale/common/tcpc.c
board/freescale/common/tcpc.h