summaryrefslogtreecommitdiff
path: root/Omap35xxPkg/PciEmulation
diff options
context:
space:
mode:
Diffstat (limited to 'Omap35xxPkg/PciEmulation')
-rw-r--r--Omap35xxPkg/PciEmulation/PciEmulation.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Omap35xxPkg/PciEmulation/PciEmulation.c b/Omap35xxPkg/PciEmulation/PciEmulation.c
index bdba40353f..3e49f8a1bc 100644
--- a/Omap35xxPkg/PciEmulation/PciEmulation.c
+++ b/Omap35xxPkg/PciEmulation/PciEmulation.c
@@ -62,6 +62,12 @@ ConfigureUSBHost (
EFI_STATUS Status;
UINT8 Data = 0;
+ // Do a softreset
+ MmioOr32 (UHH_SYSCONFIG, UHH_SYSCONFIG_SOFTRESET);
+ // When the bit clears reset is complete
+ while ((MmioRead32 (UHH_SYSCONFIG) & UHH_SYSCONFIG_SOFTRESET) == UHH_SYSCONFIG_SOFTRESET);
+
+
// Take USB host out of force-standby mode
MmioWrite32 (UHH_SYSCONFIG, UHH_SYSCONFIG_MIDLEMODE_NO_STANDBY
| UHH_SYSCONFIG_CLOCKACTIVITY_ON