]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg PlatformBdsLib: Set SCI_EN bit of PMCNTRL
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 May 2012 15:01:56 +0000 (15:01 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 May 2012 15:01:56 +0000 (15:01 +0000)
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

OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c

index 58531a800b2b420f5ee1287002252e407deb3bb3..9faab8521e068d1df47824e37b429445093c9a31 100644 (file)
@@ -773,6 +773,18 @@ PciInitialization (
 }\r
 \r
 \r
+VOID\r
+AcpiInitialization (\r
+  VOID\r
+  )\r
+{\r
+  //\r
+  // Set ACPI SCI_EN bit in PMCNTRL\r
+  //\r
+  IoOr16 ((PciRead32 (PCI_LIB_ADDRESS (0, 1, 3, 0x40)) & ~BIT0) + 4, BIT0);\r
+}\r
+\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 ConnectRecursivelyIfPciMassStorage (\r
@@ -933,6 +945,7 @@ Returns:
   BdsLibConnectAll ();\r
 \r
   PciInitialization ();\r
+  AcpiInitialization ();\r
 \r
   //\r
   // Clear the logo after all devices are connected.\r