From 977ed2d99565fc35c52f50cbe310b7b211611e94 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 20 Jan 2009 22:46:52 +0000 Subject: fix small TOLUD issue in i945 raminit (trivial) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3885 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/intel/i945/raminit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c index 349174927e..8220e9bbd3 100644 --- a/src/northbridge/intel/i945/raminit.c +++ b/src/northbridge/intel/i945/raminit.c @@ -497,7 +497,7 @@ static void sdram_detect_cas_latency_and_ram_speed(struct sys_info * sysinfo, u8 } if (sysinfo->memory_frequency && sysinfo->cas) { - printk_debug("Memory will be driven at %dMHz with CAS=%d clocks\n", + printk_debug("Memory will be driven at %dMHz with CAS=%d clocks\n", sysinfo->memory_frequency, sysinfo->cas); } else { die("Could not find common memory frequency and CAS\n"); @@ -1348,11 +1348,11 @@ static int sdram_program_row_boundaries(struct sys_info *sysinfo) /* Some extra checks needed. See 4.1.26 in the * 82945G MCH datasheet (30750203) */ - pci_write_config8(PCI_DEV(0,0,0), TOLUD, tolud); + pci_write_config16(PCI_DEV(0,0,0), TOLUD, tolud); printk_debug("C0DRB = 0x%08x\n", MCHBAR32(C0DRB0)); printk_debug("C1DRB = 0x%08x\n", MCHBAR32(C1DRB0)); - printk_debug("TOLUD = 0x%02x\n", tolud); + printk_debug("TOLUD = 0x%04x\n", tolud); pci_write_config16(PCI_DEV(0,0,0), TOM, tolud>>3); -- cgit v1.2.3