Now the ports are powered on and seem to work...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18928 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Niels Sascha Reedijk
2006-09-25 17:55:21 +00:00
parent 43a747b5d0
commit e26f3a113f
+9
View File
@@ -329,6 +329,15 @@ OHCI::OHCI(pci_info *info, Stack *stack)
uint32 interval = OHCI_GET_IVAL(frameinterval);
WriteReg(OHCI_PERIODIC_START, OHCI_PERIODIC(interval));
//Work on some Roothub settings
uint32 desca = ReadReg(OHCI_RH_DESCRIPTOR_A);
WriteReg(OHCI_RH_DESCRIPTOR_A, desca | OHCI_NOCP); //FreeBSD source does this to avoid a chip bug
//Enable power
WriteReg(OHCI_RH_STATUS, OHCI_LPSC);
snooze(5000); //Wait for power to stabilize (5ms)
WriteReg(OHCI_RH_DESCRIPTOR_A, desca);
snooze(5000); //Delay required by the AMD756 because else the # of ports might be misread
fInitOK = true;
}