aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/via/k8t890/k8t890_dram.c
diff options
context:
space:
mode:
authorRudolf Marek <r.marek@assembler.cz>2010-04-25 20:24:09 +0000
committerRudolf Marek <r.marek@assembler.cz>2010-04-25 20:24:09 +0000
commit53b0b50dc838f98a2f3745861414d8b54474f3ba (patch)
treef88245b6b63402458eccd7379169e28949d7dfe1 /src/southbridge/via/k8t890/k8t890_dram.c
parentbcb8c97af94c9fc814fdbdafe5361666bf81d442 (diff)
Fix the the build of r5494 on Asus A8V-E SE. The K8M890 and K8T890
were not treated separately until now. Fix it. Hope self ack is OK, compiled tested locally. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Rudolf Marek <r.marek@assembler.cz> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5497 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/via/k8t890/k8t890_dram.c')
-rw-r--r--src/southbridge/via/k8t890/k8t890_dram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/via/k8t890/k8t890_dram.c b/src/southbridge/via/k8t890/k8t890_dram.c
index 4f99fec155..42c7881e82 100644
--- a/src/southbridge/via/k8t890/k8t890_dram.c
+++ b/src/southbridge/via/k8t890/k8t890_dram.c
@@ -98,7 +98,8 @@ static void dram_enable_k8m890(struct device *dev)
msr = rdmsr(TOP_MEM);
uma_memory_base = msr.lo - uma_memory_size;
- printk(BIOS_INFO, "K8M890: UMA base is %llx size is %d (MB)\n", uma_memory_base, uma_memory_size / 1024 / 1024);
+ printk(BIOS_INFO, "K8M890: UMA base is %llx size is %u (MB)\n", uma_memory_base,
+ (u32) (uma_memory_size / 1024 / 1024));
/* enable VGA, so the bridges gets VGA_EN and resources are set */
pci_write_config8(dev, 0xa1, 0x80);
#endif
@@ -131,7 +132,6 @@ static void dram_init_fb(struct device *dev)
*/
unsigned int fbbits = 0;
u8 tmp;
- int ret;
fbbits = ((log2(uma_memory_size >> 20) - 2) << 4);
printk(BIOS_INFO, "K8M890: Using a %dMB framebuffer.\n", (unsigned int) (uma_memory_size >> 20));