Skip to content

Commit c1d0fd1

Browse files
committed
ohci: Wait POTG time after port power
1 parent 2063ee5 commit c1d0fd1

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
@@ -217,6 +217,7 @@ bool hcd_init(uint8_t rhport)
217217

218218
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)
219219
OHCI_REG->rh_status_bit.local_power_status_change = 1; // set global power for ports
220+
osal_task_delay(OHCI_REG->rh_descriptorA_bit.power_on_to_good_time * 2); // Wait POTG after power up
220221

221222
return true;
222223
}

0 commit comments

Comments
 (0)