fix(usb_phy): Fixed USB PHY clock during low-power modes

On ESP32-S3, USB PHY is clocked from BBPLL,
however if the BBPLL is not used as CPU clock source,
the power management unit can turn it off.
This commit registers USB as BBPLL consumer so it is not turned off.

Closes https://github.com/espressif/esp-idf/issues/15451
This commit is contained in:
Tomas Rezucha
2026-09-14 09:59:13 +02:00
parent 27506a49bc
commit 83da0b33a5
4 changed files with 37 additions and 12 deletions
@@ -17,6 +17,7 @@
/* ----------------------------- Macros & Types ----------------------------- */
#define USB_WRAP_LL_EXT_PHY_SUPPORTED 1 // Can route to an external FSLS PHY
#define USB_WRAP_LL_DEPENDS_ON_BBPLL 1 // USB PHY depends on BBPLL
#ifdef __cplusplus
extern "C" {