diff options
author | Ye Li <ye.li@nxp.com> | 2019-01-03 01:06:35 -0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2019-01-08 21:46:31 -0800 |
commit | 69dfae092f22308765c66a072f82c5b67aa8d72e (patch) | |
tree | 44b7fc3f281773fa7fd9ad25006b7c900483a9cf | |
parent | cddb0fde374769dccff44275a5072c5e28e41446 (diff) |
MLK-20559-7 tcpc: Bypass the vbus disable for SPL
The SPL won't use host mode, and the tcpc is default set as device mode.
So we don't need to access tcpc in SPL.
Signed-off-by: Ye Li <ye.li@nxp.com>
-rw-r--r-- | board/freescale/common/tcpc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/board/freescale/common/tcpc.h b/board/freescale/common/tcpc.h index 82fcddaf192..ff749518a8b 100644 --- a/board/freescale/common/tcpc.h +++ b/board/freescale/common/tcpc.h @@ -456,11 +456,14 @@ int tcpc_setup_ufp_mode(struct tcpc_port *port) { return 0; } -#endif -#ifdef CONFIG_SPL_BUILD int tcpc_setup_dfp_mode(struct tcpc_port *port) { return 0; } + +int tcpc_disable_src_vbus(struct tcpc_port *port) +{ + return 0; +} #endif #endif /* __TCPCI_H */ |