aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/i82810/debug.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-11-20 23:18:10 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-11-20 23:18:10 +0000
commit4cf5ecf39d58751cbddbbeb3133886acaecc9550 (patch)
tree2216cf6194d51cfa3d0be66f4bc35951c8ea1e57 /src/northbridge/intel/i82810/debug.c
parent76c6c95c1ee3d231ee861afba8dbc341f4c02e07 (diff)
Get rid of the unnecessary indirection by 'struct mem_controller' for the
Intel 810 chipset (and all boards using it). This isn't required for this chipset as there's only one memory controller. This also helps a lot with romcc register usage, you should see the dreaded "too few registers" less often. Build-tested with all three boards using the Intel 810 chipset. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Corey Osgood <corey.osgood@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3764 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/intel/i82810/debug.c')
-rw-r--r--src/northbridge/intel/i82810/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/northbridge/intel/i82810/debug.c b/src/northbridge/intel/i82810/debug.c
index bcb60e2b0a..5733700af3 100644
--- a/src/northbridge/intel/i82810/debug.c
+++ b/src/northbridge/intel/i82810/debug.c
@@ -1,11 +1,11 @@
-static void dump_spd_registers(const struct mem_controller *ctrl)
+static void dump_spd_registers(void)
{
int i;
print_debug("\r\n");
- for(i = 0; i < 4; i++) {
+ for(i = 0; i < DIMM_SOCKETS; i++) {
unsigned device;
- device = ctrl->channel0[i];
+ device = DIMM_SPD_BASE + i;
if (device) {
int j;
print_debug("dimm: ");