summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyzee119 <[email protected]>2022-06-04 14:11:34 +0930
committerRyan Wendland <[email protected]>2023-02-18 10:24:21 +1030
commitc1d0fd1bd747bfc4881ecf69bc60fbcb106a7afd (patch)
tree7318695b69d8975c17ba32b7b518eafc9578bfbb
parent2063ee5f1592979cc858b748aff51dba7cb3bcd5 (diff)
ohci: Wait POTG time after port power
-rw-r--r--src/portable/ohci/ohci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable/ohci/ohci.c b/src/portable/ohci/ohci.c
index cf6cff364..0a715a962 100644
--- a/src/portable/ohci/ohci.c
+++ b/src/portable/ohci/ohci.c
@@ -217,6 +217,7 @@ bool hcd_init(uint8_t rhport)
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)
OHCI_REG->rh_status_bit.local_power_status_change = 1; // set global power for ports
+ osal_task_delay(OHCI_REG->rh_descriptorA_bit.power_on_to_good_time * 2); // Wait POTG after power up
return true;
}