nb/intel/gm45/acpi.c: Don't read PCI config to check presence
Change-Id: I4cac29c1bf59df56df8cf0035ee1d5379bbde76e Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34837 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
302dddf0f4
commit
15063e8819
|
@ -69,9 +69,11 @@ unsigned long acpi_fill_mcfg(unsigned long current)
|
||||||
|
|
||||||
static unsigned long acpi_fill_dmar(unsigned long current)
|
static unsigned long acpi_fill_dmar(unsigned long current)
|
||||||
{
|
{
|
||||||
int me_active = (pcidev_on_root(3, 0) != NULL) &&
|
const struct device *dev;
|
||||||
(pci_read_config8(pcidev_on_root(3, 0), PCI_CLASS_REVISION) !=
|
|
||||||
0xff);
|
dev = pcidev_on_root(3, 0);
|
||||||
|
int me_active = dev && dev->enabled;
|
||||||
|
|
||||||
int stepping = pci_read_config8(pcidev_on_root(0, 0),
|
int stepping = pci_read_config8(pcidev_on_root(0, 0),
|
||||||
PCI_CLASS_REVISION);
|
PCI_CLASS_REVISION);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue