[coreboot-gerrit] Change in coreboot[master]: amd/stoneyridge: Simplify SB link routing
Marshall Dawson (Code Review)
gerrit at coreboot.org
Tue Sep 12 00:35:58 CEST 2017
Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/21494
Change subject: amd/stoneyridge: Simplify SB link routing
......................................................................
amd/stoneyridge: Simplify SB link routing
Remove the check for the southbridge link from Stoney Ridge. The APU
is an SoC which can never be installed in a multi-node system. It is
pointless to detect and remember the sblink value, which is set by
hardware and comes up 0. The BKDG marks this as a reserved field vs.
documentation for multi-node-capable Family 15h devices.
Because there is only one option for SB link now, relocate the register
write done by set_vga_enable_reg() and remove the function.
Change-Id: Ie4ce6b5aa847a184534224db302437ff8d37c14b
Signed-off-by: Marshall Dawson <marshalldawson3rd at gmail.com>
---
M src/soc/amd/stoneyridge/northbridge.c
1 file changed, 2 insertions(+), 18 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/21494/1
diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c
index eacd82e..8e3c13c 100644
--- a/src/soc/amd/stoneyridge/northbridge.c
+++ b/src/soc/amd/stoneyridge/northbridge.c
@@ -58,7 +58,6 @@
} dram_base_mask_t;
static unsigned int node_nums;
-static unsigned int sblink;
static device_t __f0_dev;
static device_t __f1_dev;
static device_t __f2_dev;
@@ -143,18 +142,6 @@
pci_write_config32(__f1_dev, reg, value);
}
-static void set_vga_enable_reg(u32 nodeid, u32 linkn)
-{
- u32 val;
-
- val = 1 | (nodeid << 4) | (linkn << 12);
- /* Routes:
- * mmio 0xa0000:0xbffff
- * io 0x3b0:0x3bb, 0x3c0:0x3df
- */
- f1_write_config32(0xf4, val);
-}
-
static void read_resources(device_t dev)
{
/*
@@ -228,9 +215,8 @@
if (link == NULL)
return;
- printk(BIOS_DEBUG, "VGA: %s link %d has VGA device\n",
- dev_path(dev), sblink);
- set_vga_enable_reg(0, sblink);
+ printk(BIOS_DEBUG, "VGA: %s has VGA device\n", dev_path(dev));
+ f1_write_config32(0xf4, 1); /* Route A0000-BFFFF, IO 3B0-3BB 3C0-3DF */
}
static void set_resources(device_t dev)
@@ -605,8 +591,6 @@
/* first node */
static void sysconf_init(device_t dev)
{
- /* don't forget sublink1 */
- sblink = (pci_read_config32(dev, 0x64) >> 8) & 7;
/* NodeCnt[2:0] */
node_nums = ((pci_read_config32(dev, 0x60) >> 4) & 7) + 1;
}
--
To view, visit https://review.coreboot.org/21494
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4ce6b5aa847a184534224db302437ff8d37c14b
Gerrit-Change-Number: 21494
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170911/c9005804/attachment.html>
More information about the coreboot-gerrit
mailing list