amdfam10 boards: Drop variable sbdn_rs780

It mirrors value of sysconf.sbdn.

Change-Id: I3cb611f1ea33da19e63523bc0fe99f2792eebc57
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30633
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:45 +02:00
parent 8052fe459c
commit 58954d2bf3
13 changed files with 13 additions and 39 deletions

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
memset(bus_sb800, 0, sizeof(bus_sb800));
for (i = 0; i < ARRAY_SIZE(bus_rs780); i++) {
@ -90,7 +88,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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]) {

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
memset(bus_sb800, 0, sizeof(bus_sb800));
@ -89,7 +87,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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]) {

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
memset(bus_sb800, 0, sizeof(bus_sb800));
@ -90,7 +88,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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]) {

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
memset(bus_sb800, 0, sizeof(bus_sb800));
@ -90,7 +88,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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]) {

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}

View File

@ -45,7 +45,6 @@ u32 hcdnx[] = {
0x20202020,
};
static u32 sbdn_rs780;
void get_bus_conf(void)
{
@ -62,7 +61,6 @@ void get_bus_conf(void)
get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_rs780 = sysconf.sbdn;
for (i = 0; i < 2; i++) {
bus_sb700[i] = 0;
@ -82,7 +80,7 @@ void get_bus_conf(void)
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0));
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);
}