From a3c10acaacb6baeac377338dae3bc0d5b0fb104a Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Sun, 25 Apr 2010 15:21:18 +0000 Subject: Following patch changes the K8M890 VGA handling. It reverts the framebuffer size to option based (similar what Uwe did) and also it uses GFXUMA to handle the high_tables_start offset from memory top. To satisfy the CMOS option users (Hi, libv! ;) I added also a possibility to do that through CMOS. Fixed printks to match the new style. Signed-off-by: Rudolf Marek Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5494 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/asus/m2v-mx_se/mainboard.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mainboard/asus/m2v-mx_se') diff --git a/src/mainboard/asus/m2v-mx_se/mainboard.c b/src/mainboard/asus/m2v-mx_se/mainboard.c index 4b6f322498..d6190b995a 100644 --- a/src/mainboard/asus/m2v-mx_se/mainboard.c +++ b/src/mainboard/asus/m2v-mx_se/mainboard.c @@ -24,6 +24,10 @@ #include #include "chip.h" +#if CONFIG_GFXUMA +uint64_t uma_memory_base, uma_memory_size; +#endif + int add_mainboard_resources(struct lb_memory *mem) { device_t dev; @@ -38,6 +42,11 @@ int add_mainboard_resources(struct lb_memory *mem) res->size); } +#if (CONFIG_GFXUMA == 1) + lb_add_memory_range(mem, LB_MEM_RESERVED, + uma_memory_base, uma_memory_size); +#endif + #if CONFIG_HAVE_ACPI_RESUME == 1 lb_add_memory_range(mem, LB_MEM_RESERVED, CONFIG_RAMBASE, ((CONFIG_RAMTOP) - CONFIG_RAMBASE)); -- cgit v1.2.3