diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-05-04 15:01:56 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-05-04 15:01:56 +0000 |
commit | 9b167857a4d925c459d1311de40937159c8ad464 (patch) | |
tree | 7f7f75d2adcc71f0a369b2f7843113ee20afd7a2 /OvmfPkg/Library | |
parent | a12c154727cd82faefc478458702270c296624e3 (diff) | |
download | edk2-platforms-9b167857a4d925c459d1311de40937159c8ad464.tar.xz |
OvmfPkg PlatformBdsLib: Set SCI_EN bit of PMCNTRL
If the bit is not set, then the only method ACPI defines
for setting it is to use the SMI SCI enable code path.
Since OVMF does not support SMM, we must enable the
bit during boot.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13278 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/Library')
-rw-r--r-- | OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c index 58531a800b..9faab8521e 100644 --- a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c @@ -773,6 +773,18 @@ PciInitialization ( }
+VOID
+AcpiInitialization (
+ VOID
+ )
+{
+ //
+ // Set ACPI SCI_EN bit in PMCNTRL
+ //
+ IoOr16 ((PciRead32 (PCI_LIB_ADDRESS (0, 1, 3, 0x40)) & ~BIT0) + 4, BIT0);
+}
+
+
EFI_STATUS
EFIAPI
ConnectRecursivelyIfPciMassStorage (
@@ -933,6 +945,7 @@ Returns: BdsLibConnectAll ();
PciInitialization ();
+ AcpiInitialization ();
//
// Clear the logo after all devices are connected.
|