summaryrefslogtreecommitdiff
path: root/src/mainboard/advansus/a785e-i
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-03 11:38:45 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-04 17:21:05 +0000
commit58954d2bf39201c115bcff0dc3bdebf5557e9c5e (patch)
tree9cba9d56c52915082dab3e030148cdd65fc902fe /src/mainboard/advansus/a785e-i
parent8052fe459c777db7985bdfed3ca198a556fc970c (diff)
downloadcoreboot-58954d2bf39201c115bcff0dc3bdebf5557e9c5e.tar.xz
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>
Diffstat (limited to 'src/mainboard/advansus/a785e-i')
-rw-r--r--src/mainboard/advansus/a785e-i/get_bus_conf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mainboard/advansus/a785e-i/get_bus_conf.c b/src/mainboard/advansus/a785e-i/get_bus_conf.c
index 9538098c34..4a8a03b7ea 100644
--- a/src/mainboard/advansus/a785e-i/get_bus_conf.c
+++ b/src/mainboard/advansus/a785e-i/get_bus_conf.c
@@ -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]) {