Skip to content

Commit 2063ee5

Browse files
committed
ohci: Toggle frameinterval bit on update
1 parent d5e6d02 commit 2063ee5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/portable/ohci/ohci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ bool hcd_init(uint8_t rhport)
212212
OHCI_CONTROL_LIST_BULK_ENABLE_MASK | OHCI_CONTROL_LIST_PERIODIC_ENABLE_MASK; // TODO Isochronous
213213

214214
OHCI_REG->frame_interval = (OHCI_FMINTERVAL_FSMPS << 16) | OHCI_FMINTERVAL_FI;
215+
OHCI_REG->frame_interval ^= (1 << 31); //Must toggle when frame_interval is updated.
215216
OHCI_REG->periodic_start = (OHCI_FMINTERVAL_FI * 9) / 10; // Periodic start is 90% of frame interval
216217

217218
OHCI_REG->control_bit.hc_functional_state = OHCI_CONTROL_FUNCSTATE_OPERATIONAL; // make HC's state to operational state TODO use this to suspend (save power)

0 commit comments

Comments
 (0)