phy_override: add pwdet power function

This commit is contained in:
Armando 2023-01-09 17:10:36 +08:00
parent 5be3c21cfc
commit 5ab90e9728

View File

@ -49,3 +49,12 @@ IRAM_ATTR void phy_i2c_exit_critical(void)
{
regi2c_exit_critical();
}
void phy_set_pwdet_power(bool en)
{
if (en) {
sar_periph_ctrl_pwdet_power_acquire();
} else {
sar_periph_ctrl_pwdet_power_release();
}
}