From 557a9018edb3e335706d0cc0ad80be4b1c137e72 Mon Sep 17 00:00:00 2001 From: Juergen Beisert Date: Sun, 7 Oct 2007 22:46:51 +0000 Subject: 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 Acked-by: Peter Stuge Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2840 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/amd/gx1/northbridge.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/amd/gx1/northbridge.c b/src/northbridge/amd/gx1/northbridge.c index 1101daa539..e2ca30d8d7 100644 --- a/src/northbridge/amd/gx1/northbridge.c +++ b/src/northbridge/amd/gx1/northbridge.c @@ -125,8 +125,6 @@ static uint32_t find_pci_tolm(struct bus *bus) return tolm; } -#define FRAMEBUFFERK 4096 - static void pci_domain_set_resources(device_t dev) { device_t mc_dev; @@ -153,7 +151,7 @@ static void pci_domain_set_resources(device_t dev) tomk = ramreg << 10; /* Sort out the framebuffer size */ - tomk -= FRAMEBUFFERK; + tomk -= CONFIG_VIDEO_MB * 1024; *bcdramtop = ((tomk << 10) - 1); *mcgbaseadd = (tomk >> 9); -- cgit v1.2.3