[Description]:

Add a feature flag in Uhci & Ehci to disable legacy USB SMI.
[Impaction]:
  Platform integrator can choose to legacy USB SMI or not.
[Reference Info]
  EDK Tracker 1082

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5081 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-04-17 11:02:59 +00:00
parent 90d44b32f4
commit dd4047a51c
7 changed files with 17 additions and 4 deletions

View File

@ -1580,7 +1580,9 @@ EhcDriverBindingStart (
// Robustnesss improvement such as for UoL
// Default is not required.
//
// EhcClearLegacySupport (Ehc);
if (FeaturePcdGet (PcdUsbLegacySupport)) {
EhcClearLegacySupport (Ehc);
}
EhcResetHC (Ehc, EHC_RESET_TIMEOUT);
Status = EhcInitHC (Ehc);

View File

@ -36,7 +36,7 @@ Revision History
#include <Library/UefiLib.h>
#include <Library/BaseLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <IndustryStandard/Pci22.h>

View File

@ -49,7 +49,10 @@
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[FeaturePcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdUsbLegacySupport
[LibraryClasses]
MemoryAllocationLib
@ -59,7 +62,7 @@
UefiDriverEntryPoint
BaseMemoryLib
DebugLib
PcdLib
[Protocols]
gEfiPciIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED

View File

@ -1658,7 +1658,9 @@ UhciDriverBindingStart (
// Robustnesss improvement such as for UoL
// Default is not required.
//
// UhciTurnOffUsbEmulation (PciIo);
if (FeaturePcdGet (PcdUsbLegacySupport)) {
UhciTurnOffUsbEmulation (PciIo);
}
Status = PciIo->Attributes (
PciIo,

View File

@ -39,6 +39,7 @@ Revision History
#include <Library/UefiLib.h>
#include <Library/BaseLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <IndustryStandard/Pci22.h>

View File

@ -49,7 +49,10 @@
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[FeaturePcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdUsbLegacySupport
[LibraryClasses]
MemoryAllocationLib
@ -59,6 +62,7 @@
UefiDriverEntryPoint
BaseMemoryLib
DebugLib
PcdLib
[Protocols]

View File

@ -128,6 +128,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst|TRUE|BOOLEAN|0x00010044
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportHardwareErrorRecord|FALSE|BOOLEAN|0x00010045
gEfiMdeModulePkgTokenSpaceGuid.PcdUgaConsumeSupport|TRUE|BOOLEAN|0x00010046
gEfiMdeModulePkgTokenSpaceGuid.PcdUsbLegacySupport|FALSE|BOOLEAN|0x00010047
[PcdsFixedAtBuild.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPcdCallBackNumberPerPcdEntry|0x08|UINT32|0x0001000f