From af39e0ebc18ff85135c2fb2efd0a3c69fa05c081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 3 Jan 2019 11:38:49 +0200 Subject: amdfam10 boards: Drop variable sbdn_sr5650 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It mirrors value of sysconf.sbdn. Change-Id: I3ea42280a1bdceffebb6b5c85aee18347734ee4e Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/30635 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Angel Pons --- src/mainboard/asus/kcma-d8/get_bus_conf.c | 4 +--- src/mainboard/asus/kgpe-d16/get_bus_conf.c | 4 +--- src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/mainboard/asus/kcma-d8/get_bus_conf.c b/src/mainboard/asus/kcma-d8/get_bus_conf.c index 63fb342596..bcb7c43d8f 100644 --- a/src/mainboard/asus/kcma-d8/get_bus_conf.c +++ b/src/mainboard/asus/kcma-d8/get_bus_conf.c @@ -47,7 +47,6 @@ u32 hcdnx[] = { }; -static u32 sbdn_sr5650; u32 sbdn_sp5100; void get_bus_conf(void) @@ -65,7 +64,6 @@ void get_bus_conf(void) get_pci1234(); sysconf.sbdn = (sysconf.hcdn[0] & 0xff); - sbdn_sr5650 = sysconf.sbdn; sbdn_sp5100 = 0; for (i = 0; i < 2; i++) { @@ -88,7 +86,7 @@ void get_bus_conf(void) /* sr5650 */ 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) { bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); if(255 != bus_sr5650[i]) { diff --git a/src/mainboard/asus/kgpe-d16/get_bus_conf.c b/src/mainboard/asus/kgpe-d16/get_bus_conf.c index 63fb342596..bcb7c43d8f 100644 --- a/src/mainboard/asus/kgpe-d16/get_bus_conf.c +++ b/src/mainboard/asus/kgpe-d16/get_bus_conf.c @@ -47,7 +47,6 @@ u32 hcdnx[] = { }; -static u32 sbdn_sr5650; u32 sbdn_sp5100; void get_bus_conf(void) @@ -65,7 +64,6 @@ void get_bus_conf(void) get_pci1234(); sysconf.sbdn = (sysconf.hcdn[0] & 0xff); - sbdn_sr5650 = sysconf.sbdn; sbdn_sp5100 = 0; for (i = 0; i < 2; i++) { @@ -88,7 +86,7 @@ void get_bus_conf(void) /* sr5650 */ 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) { bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); if(255 != bus_sr5650[i]) { diff --git a/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c b/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c index 43995534e9..ab9f6d96a9 100644 --- a/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c +++ b/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c @@ -46,7 +46,6 @@ u32 hcdnx[] = { }; -static u32 sbdn_sr5650; u32 sbdn_sp5100; void get_bus_conf(void) @@ -64,7 +63,6 @@ void get_bus_conf(void) get_pci1234(); sysconf.sbdn = (sysconf.hcdn[0] & 0xff); - sbdn_sr5650 = sysconf.sbdn; sbdn_sp5100 = 0; for (i = 0; i < 2; i++) { @@ -87,7 +85,7 @@ void get_bus_conf(void) /* sr5650 */ 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) { bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); if(255 != bus_sr5650[i]) { -- cgit v1.2.3