sandybridge/acpi: remove unnessary check of PCI IDs
DRAM Controller is always 00.0. No need to check its PCI ID. Change-Id: I9c5f3e5658905e464491579f8da01aa6a03bd3b7 Signed-off-by: Vagiz Tarkhanov <rakkin@autistici.org> Reviewed-on: https://review.coreboot.org/21754 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
1dd448c0cf
commit
e200c1cf6f
@ -26,14 +26,12 @@
|
|||||||
|
|
||||||
unsigned long acpi_fill_mcfg(unsigned long current)
|
unsigned long acpi_fill_mcfg(unsigned long current)
|
||||||
{
|
{
|
||||||
device_t dev;
|
|
||||||
u32 pciexbar = 0;
|
u32 pciexbar = 0;
|
||||||
u32 pciexbar_reg;
|
u32 pciexbar_reg;
|
||||||
int max_buses;
|
int max_buses;
|
||||||
|
|
||||||
dev = dev_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_SB, 0);
|
struct device *const dev = dev_find_slot(0, PCI_DEVFN(0, 0));
|
||||||
if (!dev)
|
|
||||||
dev = dev_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_IB, 0);
|
|
||||||
if (!dev)
|
if (!dev)
|
||||||
return current;
|
return current;
|
||||||
|
|
||||||
|
@ -201,9 +201,6 @@
|
|||||||
#ifndef __ASSEMBLER__
|
#ifndef __ASSEMBLER__
|
||||||
static inline void barrier(void) { asm("" ::: "memory"); }
|
static inline void barrier(void) { asm("" ::: "memory"); }
|
||||||
|
|
||||||
#define PCI_DEVICE_ID_SB 0x0104
|
|
||||||
#define PCI_DEVICE_ID_IB 0x0154
|
|
||||||
|
|
||||||
#ifdef __SMM__
|
#ifdef __SMM__
|
||||||
void intel_sandybridge_finalize_smm(void);
|
void intel_sandybridge_finalize_smm(void);
|
||||||
#else /* !__SMM__ */
|
#else /* !__SMM__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user