diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-03 11:38:55 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-04 17:22:33 +0000 |
commit | 651f4d231c462a5a055d2444d18fd53e12fbef0f (patch) | |
tree | f47924e13682ec96ca5b69177b12725d654e36d3 /src/mainboard/asus/kgpe-d16 | |
parent | af9e459d125060db89430e0138d86f46b5820d66 (diff) |
amdfam10 boards: Drop array bus_sr5650
Values in the array are not used anywhere.
Change-Id: Iee92f903db97533709d54d1f214f2f23a1fab06b
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30638
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/asus/kgpe-d16')
-rw-r--r-- | src/mainboard/asus/kgpe-d16/get_bus_conf.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/mainboard/asus/kgpe-d16/get_bus_conf.c b/src/mainboard/asus/kgpe-d16/get_bus_conf.c index 994bf1e7d4..af893914f8 100644 --- a/src/mainboard/asus/kgpe-d16/get_bus_conf.c +++ b/src/mainboard/asus/kgpe-d16/get_bus_conf.c @@ -25,7 +25,6 @@ /* Global variables for MB layouts and these will be shared by irqtable mptable * and acpi_tables busnum is default. */ -static u8 bus_sr5650[14]; u8 bus_sp5100[2]; u32 apicid_sp5100; @@ -67,14 +66,8 @@ void get_bus_conf(void) for (i = 0; i < 2; i++) { bus_sp5100[i] = 0; } - for (i = 0; i < ARRAY_SIZE(bus_sr5650); i++) { - bus_sr5650[i] = 0; - } - - - bus_sr5650[0] = (sysconf.pci1234[0] >> 16) & 0xff; - bus_sp5100[0] = bus_sr5650[0]; + bus_sp5100[0] = (sysconf.pci1234[0] >> 16) & 0xff; /* sp5100 */ dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(0x14, 4)); @@ -82,16 +75,6 @@ void get_bus_conf(void) bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS); } - /* sr5650 */ - for (i = 1; i < ARRAY_SIZE(bus_sr5650); i++) { - dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sysconf.sbdn + i, 0)); - if (dev) { - bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); - if(255 != bus_sr5650[i]) { - } - } - } - /* I/O APICs: APIC ID Version State Address */ if (IS_ENABLED(CONFIG_LOGICAL_CPUS)) apicid_base = get_apicid_base(1); |