diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2009-07-05 16:23:43 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2009-07-05 16:23:43 +0000 |
commit | 3f1458ddd42911fa63d9f55c10cd57ed3953016b (patch) | |
tree | 1392287f737e50fee42f49de7b887b8719e565a1 | |
parent | 328bccc6103b4a61b527b8257768685973d5b333 (diff) |
Fix build for i810 boards that don't enable onboard VGA, yet.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4400 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/northbridge/intel/i82810/raminit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/northbridge/intel/i82810/raminit.c b/src/northbridge/intel/i82810/raminit.c index c9561eb779..61fb2b6396 100644 --- a/src/northbridge/intel/i82810/raminit.c +++ b/src/northbridge/intel/i82810/raminit.c @@ -371,10 +371,12 @@ static void sdram_set_registers(void) /* Set size for onboard-VGA framebuffer. */ reg8 = pci_read_config8(PCI_DEV(0, 0, 0), SMRAM); reg8 &= 0x3f; /* Disable graphics (for now). */ +#ifdef CONFIG_VIDEO_MB if (CONFIG_VIDEO_MB == 512) reg8 |= (1 << 7); /* Enable graphics (512KB RAM). */ else if (CONFIG_VIDEO_MB == 1) reg8 |= (1 << 7) | (1 << 6); /* Enable graphics (1MB RAM). */ +#endif pci_write_config8(PCI_DEV(0, 0, 0), SMRAM, reg8); /* MISSC2: Bits 1, 2, 6, 7 must be set for VGA (see datasheet). */ |