summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYinghai Lu <yinghai.lu@amd.com>2007-04-06 20:59:54 +0000
committerStefan Reinauer <stepan@openbios.org>2007-04-06 20:59:54 +0000
commitda38d60a708bea7e981d70e42f69b6e625a98178 (patch)
treec9b4eaf117325bef262ced6ea82cb30260c7502e /src
parent75812a66bba98547683935c51d52dc25684ead85 (diff)
This commit is part of YhLu's patch from January 18th.
Drop a lot of debugging code from northbridge.c Signed-off-by: Yinghai Lu <yinghai.lu@amd.com> Signed-off-by: Ed Swierk <eswierk@arastra.com> Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ward Vandewege <ward@gnu.org> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2595 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/amd/amdk8/northbridge.c38
1 files changed, 2 insertions, 36 deletions
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c
index a91c54a723..b285426e66 100644
--- a/src/northbridge/amd/amdk8/northbridge.c
+++ b/src/northbridge/amd/amdk8/northbridge.c
@@ -103,12 +103,6 @@ static unsigned int amdk8_nodeid(device_t dev)
static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned link, unsigned sblink, unsigned int max, unsigned offset_unitid)
{
-#if 0
- printk_debug("%s amdk8_scan_chains max: %d starting...\n",
- dev_path(dev), max);
-#endif
-// I want to put sb chain in bus 0 can I?
-
uint32_t link_type;
int i;
@@ -212,10 +206,6 @@ static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned lin
((dev->link[link].subordinate) << 24);
f1_write_config32(config_reg, config_busses);
-#if 0
- printk_debug("%s Hyper transport scan link: %d max: %d\n",
- dev_path(dev), link, max);
-#endif
/* Now we can scan all of the subordinate busses i.e. the
* chain on the hypertranport link
*/
@@ -224,11 +214,6 @@ static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned lin
}
max = hypertransport_scan_chain(&dev->link[link], 0, 0xbf, max, ht_unitid_base, offset_unitid);
-#if 0
- printk_debug("%s Hyper transport scan link: %d new max: %d\n",
- dev_path(dev), link, max);
-#endif
-
/* We know the number of busses behind this bridge. Set the
* subordinate bus number to it's real value
*/
@@ -254,11 +239,6 @@ static unsigned int amdk8_scan_chain(device_t dev, unsigned nodeid, unsigned lin
}
-#if 0
- printk_debug("%s Hypertransport scan link: %d done\n",
- dev_path(dev), link);
-#endif
-
return max;
}
@@ -271,11 +251,6 @@ static unsigned int amdk8_scan_chains(device_t dev, unsigned int max)
nodeid = amdk8_nodeid(dev);
-#if 0
- printk_debug("%s amdk8_scan_chains max: %d starting...\n",
- dev_path(dev), max);
-#endif
-// I want to put sb chain in bus 0
if(nodeid==0) {
sblink = (pci_read_config32(dev, 0x64)>>8) & 3;
@@ -301,10 +276,6 @@ static unsigned int amdk8_scan_chains(device_t dev, unsigned int max)
max = amdk8_scan_chain(dev, nodeid, link, sblink, max, offset_unitid);
}
-#if 0
- printk_debug("%s amdk8_scan_chains max: %d done\n",
- dev_path(dev), max);
-#endif
return max;
}
@@ -332,12 +303,7 @@ static int reg_useable(unsigned reg,
result = 1;
}
}
-#if 0
- printk_debug("reg: %02x result: %d gnodeid: %u glink: %u nodeid: %u link: %u\n",
- reg, result,
- goal_nodeid, goal_link,
- nodeid, link);
-#endif
+
return result;
}
@@ -1258,7 +1224,7 @@ static unsigned int cpu_bus_scan(device_t dev, unsigned int max)
if (dev && dev->enabled) {
j = pci_read_config32(dev, 0xe8);
j = (j >> 12) & 3; // dev is func 3
- printk_debug(" %s siblings=%d\r\n", dev_path(dev), j);
+ printk_debug(" %s siblings=%d\n", dev_path(dev), j);
if(nb_cfg_54) {
// For e0 single core if nb_cfg_54 is set, apicid will be 0, 2, 4....