diff options
author | Scott Chao <scott_chao@wistron.corp-partner.google.com> | 2021-06-21 14:46:05 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-25 00:29:15 +0000 |
commit | 6754bd6b6c3a8b80b6bdca073a65f526997781d4 (patch) | |
tree | c16bd5411f6dd8ac5a341832cb471ede95740c97 /board/primus | |
parent | 1b48bd2568ef15b3e6320839ecb894f7e56604a5 (diff) | |
download | chrome-ec-6754bd6b6c3a8b80b6bdca073a65f526997781d4.tar.gz |
primus: Add TBT power control
BUG=b:190679469
BRANCH=none
TEST=make buildall
Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Change-Id: I846f202f7b4dd1a46109210d14afa1089e8c59dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2975159
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/primus')
-rw-r--r-- | board/primus/usbc_config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/primus/usbc_config.c b/board/primus/usbc_config.c index ae8ca3c553..3f11f11e50 100644 --- a/board/primus/usbc_config.c +++ b/board/primus/usbc_config.c @@ -146,9 +146,13 @@ __override int bb_retimer_power_enable(const struct usb_mux *me, bool enable) * which powers I2C controller within retimer */ msleep(1); + + /* This will allow power saving on BB retimer */ + gpio_set_level(GPIO_TBT_PWR_EN, 1); } else { gpio_set_level(rst_signal, 0); msleep(1); + gpio_set_level(GPIO_TBT_PWR_EN, 0); } return EC_SUCCESS; } |