summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2026-02-21 17:34:11 +0100
committerHiFiPhile <[email protected]>2026-02-21 17:34:11 +0100
commitdafb0d2bf4b99531fe632acb621861cb64c80e66 (patch)
tree20b1b2fa0d557231538a9c959a2fd7cfa34c6084 /src
parent167a50714636261b72ed6fc3f7c6682c209c0d7f (diff)
check femtoPHY speed
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/portable/synopsys/dwc2/dwc2_common.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_common.c b/src/portable/synopsys/dwc2/dwc2_common.c
index 5429af440..70e38b9f7 100644
--- a/src/portable/synopsys/dwc2/dwc2_common.c
+++ b/src/portable/synopsys/dwc2/dwc2_common.c
@@ -180,7 +180,13 @@ static bool check_dwc2(dwc2_regs_t* dwc2) {
//
//--------------------------------------------------------------------
bool dwc2_core_is_highspeed_phy(dwc2_regs_t* dwc2, tusb_role_t role) {
- (void)dwc2;
+#ifdef TUP_USBIP_DWC2_STM32
+ if (dwc2->guid >= 0x5000) {
+ // femtoPHY UTMI+ PHY
+ return true;
+ }
+#endif
+
#if CFG_TUD_ENABLED
if (role == TUSB_ROLE_DEVICE && !TUD_OPT_HIGH_SPEED) {
return false;