diff options
| author | Zixun LI <[email protected]> | 2026-02-22 13:50:31 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-22 13:50:31 +0100 |
| commit | dc072da5cc6a6b326a832f104c0a395d119ce35c (patch) | |
| tree | d5d17d57994d3ec2a3a2a18a71141f792c31063f /src/host | |
| parent | 41a00f498e525c3b8ec0b5aa2b2744acdad799e8 (diff) | |
| parent | e947af26c62fe8717f754e072a18e9e24f33ca96 (diff) | |
Merge pull request #3506 from Precidata/fs-host-with-hs-phy-v3
Supports full-speed host with an high-speed PHY (DWC2, v3)
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h index d86efbcb2..143d36f8c 100644 --- a/src/host/usbh.h +++ b/src/host/usbh.h @@ -96,6 +96,7 @@ enum { TUH_CFGID_RPI_PIO_USB_CONFIGURATION = 100, // cfg_param: pio_usb_configuration_t TUH_CFGID_MAX3421 = 200, TUH_CFGID_FSDEV = 300, + TUH_CFGID_DWC2 = 400 }; typedef struct { @@ -108,10 +109,15 @@ typedef struct { uint8_t max_nak; // max NAK per endpoint per frame to save CPU usage (0=unlimited) } tuh_configure_fsdev_t; +typedef struct { + bool use_hs_phy; // Always use high-speed ULPI/UTMI phy even when working at full-speed +} tuh_configure_dwc2_t; + typedef union { // For TUH_CFGID_RPI_PIO_USB_CONFIGURATION use pio_usb_configuration_t tuh_configure_max3421_t max3421; tuh_configure_fsdev_t fsdev; + tuh_configure_dwc2_t dwc2; } tuh_configure_param_t; //--------------------------------------------------------------------+ |
