[LinuxBIOS] r2840 - trunk/LinuxBIOSv2/src/northbridge/amd/gx1

svn at openbios.org svn at openbios.org
Mon Oct 8 00:46:51 CEST 2007


Author: uwe
Date: 2007-10-08 00:46:51 +0200 (Mon, 08 Oct 2007)
New Revision: 2840

Modified:
   trunk/LinuxBIOSv2/src/northbridge/amd/gx1/northbridge.c
Log:
Make the reserved video memory on Geode GX1 based systems configurable.
This makes sense on systems with small memories when the VGA feature is
not used (CONFIG_VIDEO_MB = 0 in this case).

On Geode GX1 based systems the following amount of memory should be reserved
when VGA support is enabled:
 - 1MiB for VGA and SVGA resolutions
 - 2MiB for XGA resolution
 - 4MiB for SXGA resolution

Signed-off-by: Juergen Beisert <juergen127 at kreuzholzen.de>
Acked-by: Peter Stuge <peter at stuge.se>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>



Modified: trunk/LinuxBIOSv2/src/northbridge/amd/gx1/northbridge.c
===================================================================
--- trunk/LinuxBIOSv2/src/northbridge/amd/gx1/northbridge.c	2007-10-07 22:25:49 UTC (rev 2839)
+++ trunk/LinuxBIOSv2/src/northbridge/amd/gx1/northbridge.c	2007-10-07 22:46:51 UTC (rev 2840)
@@ -125,8 +125,6 @@
 	return tolm;
 }
 
-#define FRAMEBUFFERK 4096
-
 static void pci_domain_set_resources(device_t dev)
 {
 	device_t mc_dev;
@@ -153,7 +151,7 @@
 		tomk = ramreg << 10;
 
 		/* Sort out the framebuffer size */
-		tomk -= FRAMEBUFFERK;
+		tomk -= CONFIG_VIDEO_MB * 1024;
 		*bcdramtop = ((tomk << 10) - 1);
 		*mcgbaseadd = (tomk >> 9);
 





More information about the coreboot mailing list