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@kreuzholzen.de>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2840 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Juergen Beisert 2007-10-07 22:46:51 +00:00 committed by Uwe Hermann
parent a166bb1e00
commit 557a9018ed
1 changed files with 1 additions and 3 deletions

View File

@ -125,8 +125,6 @@ static uint32_t find_pci_tolm(struct bus *bus)
return tolm; return tolm;
} }
#define FRAMEBUFFERK 4096
static void pci_domain_set_resources(device_t dev) static void pci_domain_set_resources(device_t dev)
{ {
device_t mc_dev; device_t mc_dev;
@ -153,7 +151,7 @@ static void pci_domain_set_resources(device_t dev)
tomk = ramreg << 10; tomk = ramreg << 10;
/* Sort out the framebuffer size */ /* Sort out the framebuffer size */
tomk -= FRAMEBUFFERK; tomk -= CONFIG_VIDEO_MB * 1024;
*bcdramtop = ((tomk << 10) - 1); *bcdramtop = ((tomk << 10) - 1);
*mcgbaseadd = (tomk >> 9); *mcgbaseadd = (tomk >> 9);