AGESA fam15: Drop code that was commented out

Only references to bus_rd890, bus_sp5100 and bus_sr5650 were
in code sections that had been commented out.

Change-Id: If5552c409ce948c494345f49dbaad790b398bff8
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/6331
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Kyösti Mälkki 2014-07-15 16:19:08 +03:00
parent 99c636f858
commit f62659f643
8 changed files with 4 additions and 160 deletions

View File

@ -31,7 +31,6 @@
* and acpi_tables busnum is default.
*/
u8 bus_sb700[2];
u8 bus_rd890[14];
/*
* Here you only need to set value in pci1234 for HT-IO that could be installed or not
@ -51,7 +50,6 @@ u32 hcdnx[] = {
};
u32 sbdn_sb700;
u32 sbdn_rd890;
void get_bus_conf(void)
{
@ -65,13 +63,9 @@ void get_bus_conf(void)
for (i = 0; i < ARRAY_SIZE(bus_sb700); i++) {
bus_sb700[i] = 0;
}
for (i = 0; i < ARRAY_SIZE(bus_rd890); i++) {
bus_rd890[i] = 0;
}
bus_rd890[0] = (pci1234x[0] >> 16) & 0xff;
bus_sb700[0] = bus_rd890[0];
bus_sb700[0] = (pci1234x[0] >> 16) & 0xff;
/* sb700 */
dev = dev_find_slot(bus_sb700[0], PCI_DEVFN(sbdn_sb700 + 0x14, 4));
@ -82,13 +76,5 @@ void get_bus_conf(void)
bus_sb700[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
}
/* rd890 */
for (i = 1; i < ARRAY_SIZE(bus_rd890); i++) {
dev = dev_find_slot(bus_rd890[0], PCI_DEVFN(sbdn_rd890 + i, 0));
if (dev) {
bus_rd890[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
}
}
printk(BIOS_DEBUG, "Mainboard - Get_bus_conf.c - get_bus_conf - End.\n");
}

View File

@ -28,9 +28,7 @@
#include <cpu/x86/lapic.h>
#include <cpu/amd/amdfam15.h>
extern u8 bus_rd890[14];
extern u8 bus_sb700[2];
extern u32 sbdn_rd890;
extern u32 sbdn_sb700;
@ -130,17 +128,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_rd890[0x5], 0x0, 0x0, 0x11);
* PCI_INT(bus_rd890[0x6], 0x0, 0x0, 0x12);
* PCI_INT(bus_rd890[0x7], 0x0, 0x0, 0x13);
*/
//smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0, (((13)<<2)|(0)), apicid_rd890, 28); /* dev d */
//smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_rd890[13], (((0)<<2)|(1)), apicid_rd890, 0); /* card behind dev13 */
/* PCI slots */
/* PCI_SLOT 0. */
PCI_INT(bus_sb700[1], 0x5, 0x0, 0x14);

View File

@ -31,11 +31,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)
@ -48,13 +43,8 @@ void get_bus_conf(void)
for (i = 0; i < ARRAY_SIZE(bus_sp5100); 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));
@ -62,25 +52,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);
}
}
*/
/* I/O APICs: APIC ID Version State Address */
}

View File

@ -28,9 +28,7 @@
#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;
static void *smp_write_config_table(void *v)
@ -144,17 +142,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);

View File

@ -31,11 +31,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)
@ -48,13 +43,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));
@ -62,25 +52,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);
}
}
*/
/* I/O APICs: APIC ID Version State Address */
}

View File

@ -28,9 +28,7 @@
#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;
static void *smp_write_config_table(void *v)
@ -144,17 +142,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);

View File

@ -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);
}
}
*/
}

View File

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