summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/i855/debug.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-11-22 12:59:36 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-11-22 12:59:36 +0000
commit6e9ab97106925f74b993ddf66db0b6525dc71580 (patch)
tree054463939786fb42f43b05d81e6f5b50308f86b8 /src/northbridge/intel/i855/debug.c
parentabc0c8551604933ca54e9eaa48c3f00e4915dc90 (diff)
i855: Remove useless memctrl indirection.
This needlessly complicates the code and increases register pressure on romcc chipsets. We did the same conversion on i440BX, i830, and others. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Peter Stuge <peter@stuge.se> Acked-by: Stefan Reinauer <stepan@coreboot.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6112 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/intel/i855/debug.c')
-rw-r--r--src/northbridge/intel/i855/debug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/northbridge/intel/i855/debug.c b/src/northbridge/intel/i855/debug.c
index 2f7d5342a1..0c6747e4a3 100644
--- a/src/northbridge/intel/i855/debug.c
+++ b/src/northbridge/intel/i855/debug.c
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <spd.h>
+
static void print_debug_pci_dev(unsigned dev)
{
print_debug("PCI: ");
@@ -84,13 +86,13 @@ static inline void dump_pci_devices(void)
}
}
-static inline void dump_spd_registers(const struct mem_controller *ctrl)
+static inline void dump_spd_registers(void)
{
int i;
print_debug("\n");
for(i = 0; i < 2; i++) {
unsigned device;
- device = ctrl->channel0[i];
+ device = DIMM0 + i;
if (device) {
int j;
print_debug("dimm: ");