primus: Add TBT power control
BRANCH=none
TEST=make buildall
@@ -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;
}
