From 6a35fab2723f3b1ca288cd9224d263570cfbe184 Mon Sep 17 00:00:00 2001 From: Chris Ching Date: Thu, 19 Oct 2017 11:45:30 -0600 Subject: soc/amd/stoneyridge: Use macros for PCI_DEVFN calls * Change all calls to PCI_DEVFN to macros * Remove CBB and CDB Kconfig since these are static for stoneyridge BUG=b:62200746 TEST=build Change-Id: I001c4ccd0ad7cf2047870b3618e13642144ddf56 Signed-off-by: Chris Ching Reviewed-on: https://review.coreboot.org/22110 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/amd/stoneyridge/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/amd/stoneyridge/acpi.c') diff --git a/src/soc/amd/stoneyridge/acpi.c b/src/soc/amd/stoneyridge/acpi.c index e6e785c1a8..02ee6fa02f 100644 --- a/src/soc/amd/stoneyridge/acpi.c +++ b/src/soc/amd/stoneyridge/acpi.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -239,7 +240,7 @@ void generate_cpu_entries(device_t device) device_t cdb_dev; /* Stoney Ridge is single node, just report # of cores */ - cdb_dev = dev_find_slot(CONFIG_CBB, PCI_DEVFN(CONFIG_CDB, 5)); + cdb_dev = dev_find_slot(0, NB_DEVFN); cores = (pci_read_config32(cdb_dev, 0x84) & 0xff) + 1; printk(BIOS_DEBUG, "ACPI \\_PR report %d core(s)\n", cores); -- cgit v1.2.3