amdfam10 boards: Drop variable sbdn_sr5650

It mirrors value of sysconf.sbdn.

Change-Id: I3ea42280a1bdceffebb6b5c85aee18347734ee4e
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30635
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:49 +02:00
parent c9394017db
commit af39e0ebc1
3 changed files with 3 additions and 9 deletions

View File

@ -47,7 +47,6 @@ u32 hcdnx[] = {
}; };
static u32 sbdn_sr5650;
u32 sbdn_sp5100; u32 sbdn_sp5100;
void get_bus_conf(void) void get_bus_conf(void)
@ -65,7 +64,6 @@ void get_bus_conf(void)
get_pci1234(); get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff); sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_sr5650 = sysconf.sbdn;
sbdn_sp5100 = 0; sbdn_sp5100 = 0;
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
@ -88,7 +86,7 @@ void get_bus_conf(void)
/* sr5650 */ /* sr5650 */
for (i = 1; i < ARRAY_SIZE(bus_sr5650); i++) { for (i = 1; i < ARRAY_SIZE(bus_sr5650); i++) {
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0)); dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sysconf.sbdn + i, 0));
if (dev) { if (dev) {
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
if(255 != bus_sr5650[i]) { if(255 != bus_sr5650[i]) {

View File

@ -47,7 +47,6 @@ u32 hcdnx[] = {
}; };
static u32 sbdn_sr5650;
u32 sbdn_sp5100; u32 sbdn_sp5100;
void get_bus_conf(void) void get_bus_conf(void)
@ -65,7 +64,6 @@ void get_bus_conf(void)
get_pci1234(); get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff); sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_sr5650 = sysconf.sbdn;
sbdn_sp5100 = 0; sbdn_sp5100 = 0;
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
@ -88,7 +86,7 @@ void get_bus_conf(void)
/* sr5650 */ /* sr5650 */
for (i = 1; i < ARRAY_SIZE(bus_sr5650); i++) { for (i = 1; i < ARRAY_SIZE(bus_sr5650); i++) {
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0)); dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sysconf.sbdn + i, 0));
if (dev) { if (dev) {
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
if(255 != bus_sr5650[i]) { if(255 != bus_sr5650[i]) {

View File

@ -46,7 +46,6 @@ u32 hcdnx[] = {
}; };
static u32 sbdn_sr5650;
u32 sbdn_sp5100; u32 sbdn_sp5100;
void get_bus_conf(void) void get_bus_conf(void)
@ -64,7 +63,6 @@ void get_bus_conf(void)
get_pci1234(); get_pci1234();
sysconf.sbdn = (sysconf.hcdn[0] & 0xff); sysconf.sbdn = (sysconf.hcdn[0] & 0xff);
sbdn_sr5650 = sysconf.sbdn;
sbdn_sp5100 = 0; sbdn_sp5100 = 0;
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
@ -87,7 +85,7 @@ void get_bus_conf(void)
/* sr5650 */ /* sr5650 */
for (i = 1; i < ARRAY_SIZE(bus_sr5650); i++) { for (i = 1; i < ARRAY_SIZE(bus_sr5650); i++) {
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0)); dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sysconf.sbdn + i, 0));
if (dev) { if (dev) {
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
if(255 != bus_sr5650[i]) { if(255 != bus_sr5650[i]) {