summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/advansus/a785e-i/get_bus_conf.c20
-rw-r--r--src/mainboard/amd/bimini_fam10/get_bus_conf.c19
-rw-r--r--src/mainboard/amd/mahogany_fam10/get_bus_conf.c15
-rw-r--r--src/mainboard/amd/tilapia_fam10/get_bus_conf.c15
-rw-r--r--src/mainboard/asus/m4a78-em/get_bus_conf.c15
-rw-r--r--src/mainboard/asus/m4a785-m/get_bus_conf.c15
-rw-r--r--src/mainboard/asus/m5a88-v/get_bus_conf.c20
-rw-r--r--src/mainboard/avalue/eax-785e/get_bus_conf.c20
-rw-r--r--src/mainboard/gigabyte/ma785gm/get_bus_conf.c15
-rw-r--r--src/mainboard/gigabyte/ma785gmt/get_bus_conf.c15
-rw-r--r--src/mainboard/gigabyte/ma78gm/get_bus_conf.c15
-rw-r--r--src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c15
-rw-r--r--src/mainboard/jetway/pa78vm5/get_bus_conf.c15
13 files changed, 13 insertions, 201 deletions
diff --git a/src/mainboard/advansus/a785e-i/get_bus_conf.c b/src/mainboard/advansus/a785e-i/get_bus_conf.c
index 4a8a03b7ea..2e035b5fa5 100644
--- a/src/mainboard/advansus/a785e-i/get_bus_conf.c
+++ b/src/mainboard/advansus/a785e-i/get_bus_conf.c
@@ -23,7 +23,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_sb800[6];
u32 apicid_sb800;
@@ -63,15 +62,8 @@ void get_bus_conf(void)
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < ARRAY_SIZE(bus_rs780); i++) {
- bus_rs780[i] = 0;
- }
-
-
-
- bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
- bus_sb800[0] = bus_rs780[0];
+ bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(0x14, 4));
@@ -86,16 +78,6 @@ void get_bus_conf(void)
}
}
- /* 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);
- if(255 != bus_rs780[i]) {
- }
- }
- }
-
/* I/O APICs: APIC ID Version State Address */
if (IS_ENABLED(CONFIG_LOGICAL_CPUS))
apicid_base = get_apicid_base(1);
diff --git a/src/mainboard/amd/bimini_fam10/get_bus_conf.c b/src/mainboard/amd/bimini_fam10/get_bus_conf.c
index 579ca7bbfe..76048190bb 100644
--- a/src/mainboard/amd/bimini_fam10/get_bus_conf.c
+++ b/src/mainboard/amd/bimini_fam10/get_bus_conf.c
@@ -23,7 +23,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_sb800[6];
u32 apicid_sb800;
@@ -64,13 +63,7 @@ void get_bus_conf(void)
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < ARRAY_SIZE(bus_rs780); i++) {
- bus_rs780[i] = 0;
- }
-
-
- bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
- bus_sb800[0] = bus_rs780[0];
+ bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(0x14, 4));
@@ -85,16 +78,6 @@ void get_bus_conf(void)
}
}
- /* 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);
- if(255 != bus_rs780[i]) {
- }
- }
- }
-
/* I/O APICs: APIC ID Version State Address */
if (IS_ENABLED(CONFIG_LOGICAL_CPUS))
apicid_base = get_apicid_base(1);
diff --git a/src/mainboard/amd/mahogany_fam10/get_bus_conf.c b/src/mainboard/amd/mahogany_fam10/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/amd/mahogany_fam10/get_bus_conf.c
+++ b/src/mainboard/amd/mahogany_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);
diff --git a/src/mainboard/amd/tilapia_fam10/get_bus_conf.c b/src/mainboard/amd/tilapia_fam10/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/amd/tilapia_fam10/get_bus_conf.c
+++ b/src/mainboard/amd/tilapia_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);
diff --git a/src/mainboard/asus/m4a78-em/get_bus_conf.c b/src/mainboard/asus/m4a78-em/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/asus/m4a78-em/get_bus_conf.c
+++ b/src/mainboard/asus/m4a78-em/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);
diff --git a/src/mainboard/asus/m4a785-m/get_bus_conf.c b/src/mainboard/asus/m4a785-m/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/asus/m4a785-m/get_bus_conf.c
+++ b/src/mainboard/asus/m4a785-m/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);
diff --git a/src/mainboard/asus/m5a88-v/get_bus_conf.c b/src/mainboard/asus/m5a88-v/get_bus_conf.c
index f08ad8633b..2e035b5fa5 100644
--- a/src/mainboard/asus/m5a88-v/get_bus_conf.c
+++ b/src/mainboard/asus/m5a88-v/get_bus_conf.c
@@ -23,7 +23,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_sb800[6];
u32 apicid_sb800;
@@ -64,14 +63,7 @@ void get_bus_conf(void)
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < ARRAY_SIZE(bus_rs780); i++) {
- bus_rs780[i] = 0;
- }
-
-
- bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
- bus_sb800[0] = bus_rs780[0];
-
+ bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(0x14, 4));
@@ -86,16 +78,6 @@ void get_bus_conf(void)
}
}
- /* 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);
- if(255 != bus_rs780[i]) {
- }
- }
- }
-
/* I/O APICs: APIC ID Version State Address */
if (IS_ENABLED(CONFIG_LOGICAL_CPUS))
apicid_base = get_apicid_base(1);
diff --git a/src/mainboard/avalue/eax-785e/get_bus_conf.c b/src/mainboard/avalue/eax-785e/get_bus_conf.c
index f08ad8633b..2e035b5fa5 100644
--- a/src/mainboard/avalue/eax-785e/get_bus_conf.c
+++ b/src/mainboard/avalue/eax-785e/get_bus_conf.c
@@ -23,7 +23,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_sb800[6];
u32 apicid_sb800;
@@ -64,14 +63,7 @@ void get_bus_conf(void)
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < ARRAY_SIZE(bus_rs780); i++) {
- bus_rs780[i] = 0;
- }
-
-
- bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
- bus_sb800[0] = bus_rs780[0];
-
+ bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(0x14, 4));
@@ -86,16 +78,6 @@ void get_bus_conf(void)
}
}
- /* 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);
- if(255 != bus_rs780[i]) {
- }
- }
- }
-
/* I/O APICs: APIC ID Version State Address */
if (IS_ENABLED(CONFIG_LOGICAL_CPUS))
apicid_base = get_apicid_base(1);
diff --git a/src/mainboard/gigabyte/ma785gm/get_bus_conf.c b/src/mainboard/gigabyte/ma785gm/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/gigabyte/ma785gm/get_bus_conf.c
+++ b/src/mainboard/gigabyte/ma785gm/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);
diff --git a/src/mainboard/gigabyte/ma785gmt/get_bus_conf.c b/src/mainboard/gigabyte/ma785gmt/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/gigabyte/ma785gmt/get_bus_conf.c
+++ b/src/mainboard/gigabyte/ma785gmt/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);
diff --git a/src/mainboard/gigabyte/ma78gm/get_bus_conf.c b/src/mainboard/gigabyte/ma78gm/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/gigabyte/ma78gm/get_bus_conf.c
+++ b/src/mainboard/gigabyte/ma78gm/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);
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);
diff --git a/src/mainboard/jetway/pa78vm5/get_bus_conf.c b/src/mainboard/jetway/pa78vm5/get_bus_conf.c
index 9812b00ae5..b97556c4b3 100644
--- a/src/mainboard/jetway/pa78vm5/get_bus_conf.c
+++ b/src/mainboard/jetway/pa78vm5/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);