summaryrefslogtreecommitdiff
path: root/src/mainboard/iei
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-03 11:38:53 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-04 17:22:04 +0000
commitaf9e459d125060db89430e0138d86f46b5820d66 (patch)
tree7a25da469fd70a9b2ec7ab4635d087e66e2184d8 /src/mainboard/iei
parent228746b3464d2b76bd418e2214351976c316ba68 (diff)
amdfam10 boards: Drop array bus_rs780
Values in the array are not used anywhere. Change-Id: I608b8c2e21bc515c56a27982815c1da43f3bb976 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30637 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/iei')
-rw-r--r--src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c b/src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c
+++ b/src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c
@@ -24,7 +24,6 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
-static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@@ -65,12 +64,8 @@ void get_bus_conf(void)
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
}
- for (i = 0; i < ARRAY_SIZE(bus_rs780); i++) {
- bus_rs780[i] = 0;
- }
- bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
- bus_sb700[0] = bus_rs780[0];
+ bus_sb700[0] = (sysconf.pci1234[0] >> 16) & 0xff;
/* sb700 */
dev = dev_find_slot(bus_sb700[0], PCI_DEVFN(0x14, 4));
@@ -78,14 +73,6 @@ void get_bus_conf(void)
bus_sb700[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
}
- /* rs780 */
- for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
- dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sysconf.sbdn + i, 0));
- if (dev) {
- bus_rs780[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
- }
- }
-
/* I/O APICs: APIC ID Version State Address */
if (IS_ENABLED(CONFIG_LOGICAL_CPUS))
apicid_base = get_apicid_base(1);