diff options
Diffstat (limited to 'src/mainboard/tyan')
-rw-r--r-- | src/mainboard/tyan/s8226/get_bus_conf.c | 31 | ||||
-rw-r--r-- | src/mainboard/tyan/s8226/mptable.c | 12 |
2 files changed, 1 insertions, 42 deletions
diff --git a/src/mainboard/tyan/s8226/get_bus_conf.c b/src/mainboard/tyan/s8226/get_bus_conf.c index 3cbe59c82a..7a6876b880 100644 --- a/src/mainboard/tyan/s8226/get_bus_conf.c +++ b/src/mainboard/tyan/s8226/get_bus_conf.c @@ -30,11 +30,6 @@ * and acpi_tables busnum is default. */ u8 bus_sp5100[2]; -u8 bus_sr5650[14]; - - - -u32 sbdn_sr5650; u32 sbdn_sp5100; void get_bus_conf(void); @@ -49,13 +44,8 @@ void get_bus_conf(void) for (i = 0; i < 0; i++) { bus_sp5100[i] = 0; } - for (i = 0; i < ARRAY_SIZE(bus_sr5650); i++) { - bus_sr5650[i] = 0; - } - - bus_sr5650[0] = 0; - bus_sp5100[0] = bus_sr5650[0]; + bus_sp5100[0] = 0; /* sp5100 */ dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, 4)); @@ -63,23 +53,4 @@ void get_bus_conf(void) if (dev) { 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(sbdn_sr5650 + i, 0)); - if (dev) { - bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); - } - } - -/* - for (i = 0; i < 4; i++) { - dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, i)); - if (dev) { - bus_sp5100[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS); - } - } -*/ - - } diff --git a/src/mainboard/tyan/s8226/mptable.c b/src/mainboard/tyan/s8226/mptable.c index 8a248cc70f..6a12f2b821 100644 --- a/src/mainboard/tyan/s8226/mptable.c +++ b/src/mainboard/tyan/s8226/mptable.c @@ -28,7 +28,6 @@ #include <cpu/x86/lapic.h> #include <cpu/amd/amdfam10_sysconf.h> -extern u8 bus_sr5650[14]; extern u8 bus_sp5100[2]; extern u32 sbdn_sr5650; extern u32 sbdn_sp5100; @@ -144,17 +143,6 @@ static void *smp_write_config_table(void *v) /* SATA */ PCI_INT(0x0, 0x11, 0x0, 0x16); //6, INTG - /* on board NIC & Slot PCIE. */ - /* configuration B doesnt need dev 5,6,7 */ - /* - * PCI_INT(bus_sr5650[0x5], 0x0, 0x0, 0x11); - * PCI_INT(bus_sr5650[0x6], 0x0, 0x0, 0x12); - * PCI_INT(bus_sr5650[0x7], 0x0, 0x0, 0x13); - */ - - //smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0, (((13)<<2)|(0)), apicid_sr5650, 28); /* dev d */ - //smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_sr5650[13], (((0)<<2)|(1)), apicid_sr5650, 0); /* card behind dev13 */ - /* PCI slots */ /* PCI_SLOT 0. */ PCI_INT(bus_sp5100[1], 0x5, 0x0, 0x14); |