diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-05 07:10:52 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-05 07:10:52 +0000 |
commit | 51866b5465c1d316a66d7c697f7e14ee293e1064 (patch) | |
tree | e1f049a73479d3d4f401e2fe7b1bcfb839ff4846 /Omap35xxPkg/PciEmulation | |
parent | 0c1a4aa69a1810ae053afa62c913e371d89a496e (diff) | |
download | edk2-platforms-51866b5465c1d316a66d7c697f7e14ee293e1064.tar.xz |
Update USB init code to do a softreset.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10208 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Omap35xxPkg/PciEmulation')
-rw-r--r-- | Omap35xxPkg/PciEmulation/PciEmulation.c | 6 |
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 |