summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYinghai Lu <yinghailu@gmail.com>2006-05-18 16:54:30 +0000
committerYinghai Lu <yinghailu@gmail.com>2006-05-18 16:54:30 +0000
commit2b396cdcf268c1c9865c51517461b031f8995917 (patch)
tree65546b9854ac9792477924b4596b75fd4b32ec05
parentbad9d105cf908bbb032768a1605265654b38ca3a (diff)
add option to decide to use onboard vga or addon card.
CONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2308 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/config/Options.lb5
-rw-r--r--src/devices/device.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/config/Options.lb b/src/config/Options.lb
index 3dfa80110f..4742908937 100644
--- a/src/config/Options.lb
+++ b/src/config/Options.lb
@@ -384,6 +384,11 @@ define CONFIG_CONSOLE_VGA_MULTI
export always
comment "Multi VGA console"
end
+define CONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST
+ default 0
+ export always
+ comment "Use onboard VGA instead of add on VGA card"
+end
define CONFIG_CONSOLE_BTEXT
default 0
export always
diff --git a/src/devices/device.c b/src/devices/device.c
index f64e51d1f6..1b239f9d15 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -413,7 +413,7 @@ static void allocate_vga_resource(void)
vga = vga_first;
}
-#if 1
+#if CONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST == 1
if (vga_onboard) // will use on board vga as pri
#else
if (!vga) // will use last add on adapter as pri