diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-17 11:02:59 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-17 11:02:59 +0000 |
commit | dd4047a51c56bae1080b357330ed99dcd286c766 (patch) | |
tree | bf0d46a5ac947d2cb6963b99ef22e43cc363b848 /MdeModulePkg/Bus/Pci/UhciDxe | |
parent | 90d44b32f45d342e320acccbfaad03996e660848 (diff) | |
download | edk2-platforms-dd4047a51c56bae1080b357330ed99dcd286c766.tar.xz |
[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
Diffstat (limited to 'MdeModulePkg/Bus/Pci/UhciDxe')
-rw-r--r-- | MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c | 4 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h | 1 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c index 0fc633d8bb..f0aedc753f 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c +++ b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c @@ -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,
diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h index d0aea616f5..73f9fe2c0f 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h +++ b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h @@ -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>
diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf b/MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf index 4f46bf5bb1..818ff6dade 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf +++ b/MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf @@ -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]
|