Move Geode GX2 UMA video memory size to Kconfig
[coreboot.git] / src / northbridge / amd / gx2 / northbridge.c
index 6f3e17abc7bc7115bbc4e64859d5037b71a7b518..a8043dd14455f5a3eccd7ee89eb7b6988e6de2bd 100644 (file)
@@ -15,7 +15,6 @@
 #include <cpu/amd/vr.h>
 #include <cpu/cpu.h>
 #include "../../../southbridge/amd/cs5536/cs5536.h"
-#define VIDEO_MB 8
 
 #define NORTHBRIDGE_FILE "northbridge.c"
 
@@ -302,7 +301,7 @@ static void enable_dev(struct device *dev)
                graphics_init();
                dev->ops = &pci_domain_ops;
                pci_set_method(dev);
-               tomk = ((sizeram() - VIDEO_MB) * 1024) - SMM_SIZE;
+               tomk = ((sizeram() - CONFIG_VIDEO_MB) * 1024) - SMM_SIZE;
 #if CONFIG_WRITE_HIGH_TABLES==1
                /* Leave some space for ACPI, PIRQ and MP tables */
                high_tables_base = (tomk * 1024) - HIGH_MEMORY_SIZE;