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
This commit is contained in:
jljusten 2012-05-04 15:01:56 +00:00
parent a12c154727
commit 9b167857a4
1 changed files with 13 additions and 0 deletions

View File

@ -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 EFI_STATUS
EFIAPI EFIAPI
ConnectRecursivelyIfPciMassStorage ( ConnectRecursivelyIfPciMassStorage (
@ -933,6 +945,7 @@ Returns:
BdsLibConnectAll (); BdsLibConnectAll ();
PciInitialization (); PciInitialization ();
AcpiInitialization ();
// //
// Clear the logo after all devices are connected. // Clear the logo after all devices are connected.