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>
This commit is contained in:
Kyösti Mälkki 2019-01-03 11:38:55 +02:00
parent af9e459d12
commit 651f4d231c
2 changed files with 2 additions and 36 deletions

View File

@ -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);

View File

@ -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);