mirror of https://github.com/acidanthera/audk.git
[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:
parent
90d44b32f4
commit
dd4047a51c
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue