summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/gx1
diff options
context:
space:
mode:
authorJuergen Beisert <juergen127@kreuzholzen.de>2007-10-07 22:46:51 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-10-07 22:46:51 +0000
commit557a9018edb3e335706d0cc0ad80be4b1c137e72 (patch)
tree1af56d7df3b82b5bcc91f1843125094ebe25b947 /src/northbridge/amd/gx1
parenta166bb1e0036a40412c0fe9367c40302c4186f35 (diff)
downloadcoreboot-557a9018edb3e335706d0cc0ad80be4b1c137e72.tar.xz
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
Diffstat (limited to 'src/northbridge/amd/gx1')
-rw-r--r--src/northbridge/amd/gx1/northbridge.c4
1 files changed, 1 insertions, 3 deletions
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);