diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2021-04-15 12:20:51 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-20 02:04:31 +0000 |
commit | a6f791ada46d9dbcbaf334672fafca8da9535834 (patch) | |
tree | de56182e26364c7d45b43719ef1e2cdfcbd564f4 /include/driver | |
parent | 748deb2db0ecc013c04c72768fd99467d5ddec6f (diff) | |
download | chrome-ec-a6f791ada46d9dbcbaf334672fafca8da9535834.tar.gz |
TCPC: Cleanup: Enable PPC from PD or Power MUX
Some PD chips have integrated SRC FET and control the SRC/SINK FET
from GPIOs hence cleaned up the code to enable Power Path Control
from either from PD or from Power MUX.
BUG=none
BRANCH=none
TEST=make buildall -j
Change-Id: I77f96b681fd2e5fca35bce425e4bd5ec87d5ccfd
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2828980
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/driver')
-rw-r--r-- | include/driver/tcpm/tcpm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver/tcpm/tcpm.h b/include/driver/tcpm/tcpm.h index 7965684017..901f44a26a 100644 --- a/include/driver/tcpm/tcpm.h +++ b/include/driver/tcpm/tcpm.h @@ -254,7 +254,7 @@ static inline int tcpm_transmit(int port, enum tcpm_transmit_type type, return tcpc_config[port].drv->transmit(port, type, header, data); } -#ifdef CONFIG_USBC_PPC +#ifdef CONFIG_USB_PD_PPC static inline int tcpm_get_snk_ctrl(int port, bool *sinking) { int rv = EC_ERROR_UNIMPLEMENTED; |