diff options
| author | Zixun LI <[email protected]> | 2026-03-05 16:23:24 +0100 |
|---|---|---|
| committer | Zixun LI <[email protected]> | 2026-03-05 16:23:24 +0100 |
| commit | 4ed45cf9bc866750492210b0a14bf751d43421ab (patch) | |
| tree | f3510eb60570f2597c83ceda9e6a1c4fd9a99983 /src | |
| parent | 7088dc528bd5a89a77e06798d8b5384962748828 (diff) | |
update PORTSC1
Signed-off-by: Zixun LI <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/chipidea/ci_hs/hcd_ci_hs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/portable/chipidea/ci_hs/hcd_ci_hs.c b/src/portable/chipidea/ci_hs/hcd_ci_hs.c index 91adc06b1..c0d14fe57 100644 --- a/src/portable/chipidea/ci_hs/hcd_ci_hs.c +++ b/src/portable/chipidea/ci_hs/hcd_ci_hs.c @@ -96,15 +96,15 @@ bool hcd_init(uint8_t rhport, const tusb_rhport_init_t *rh_init) { // Set mode to host, must be set immediately after reset #if CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_LPC43XX // LPC18XX/43XX need to set VBUS Power Select to HIGH - // RHPORT1 is fullspeed only (need external PHY for Highspeed) hcd_reg->USBMODE = USBMODE_CM_HOST | USBMODE_VBUS_POWER_SELECT; - #if !TUH_OPT_HIGH_SPEED - hcd_reg->PORTSC1 = PORTSC1_FORCE_FULL_SPEED; - #endif #else hcd_reg->USBMODE = USBMODE_CM_HOST; #endif + #if !TUH_OPT_HIGH_SPEED + hcd_reg->PORTSC1 |= PORTSC1_FORCE_FULL_SPEED; + #endif + return ehci_init(rhport, (uint32_t)&hcd_reg->CAPLENGTH, (uint32_t)&hcd_reg->USBCMD); } |
