feat(soc): add SOC_USB_FSLS_PHY_NUM for USB-OTG targets

Introduce SOC_USB_FSLS_PHY_NUM on ESP32-S2, ESP32-S3, ESP32-P4 and
ESP32-H4 to expose the number of FSLS USB_WRAP PHYs available on each
target. This separates FSLS USB_WRAP support from OTG/UTMI support so
that downstream code can gate FSLS PHY handling independently.
This commit is contained in:
igor.masar
2026-05-12 18:03:56 +08:00
committed by BOT
parent 8e8e9f5545
commit bcb9d60812
8 changed files with 20 additions and 0 deletions
@@ -1163,6 +1163,10 @@ config SOC_USB_OTG_PERIPH_NUM
int
default 2
config SOC_USB_FSLS_PHY_NUM
int
default 1
config SOC_USB_UTMI_PHY_NUM
int
default 1
@@ -430,6 +430,7 @@
// USB OTG Caps
#define SOC_USB_OTG_PERIPH_NUM (2U)
#define SOC_USB_FSLS_PHY_NUM (1U)
// USB PHY Caps
#define SOC_USB_UTMI_PHY_NUM (1U)