aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/sn/kernel/setup.c
diff options
context:
space:
mode:
authorMark Maule <maule@sgi.com>2005-04-26 11:01:00 -0400
committerTony Luck <tony.luck@intel.com>2005-06-28 12:23:04 -0400
commita9f9de7378e3a81f7266f542f2290399a298ef52 (patch)
treef88da35e16834984a43b79c66cb8ea3918944271 /arch/ia64/sn/kernel/setup.c
parent66b7f8a30437b8639e798f7db8e9be1da5711efa (diff)
[IA64-SGI] altix: enable vgacon support
Altix patch to enable use of vgacon driver on that platform. Depends on the PCDP generalization patch discussed at: http://marc.theaimsgroup.com/?l=linux-ia64&m=111446235101939&w=2 Signed-off-by: Mark Maule <maule@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/sn/kernel/setup.c')
-rw-r--r--arch/ia64/sn/kernel/setup.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c
index 44bfc7f318cb..3e5ba34ac2ef 100644
--- a/arch/ia64/sn/kernel/setup.c
+++ b/arch/ia64/sn/kernel/setup.c
@@ -36,6 +36,7 @@
36#include <asm/machvec.h> 36#include <asm/machvec.h>
37#include <asm/system.h> 37#include <asm/system.h>
38#include <asm/processor.h> 38#include <asm/processor.h>
39#include <asm/vga.h>
39#include <asm/sn/arch.h> 40#include <asm/sn/arch.h>
40#include <asm/sn/addrs.h> 41#include <asm/sn/addrs.h>
41#include <asm/sn/pda.h> 42#include <asm/sn/pda.h>
@@ -273,14 +274,17 @@ void __init sn_setup(char **cmdline_p)
273 274
274 ia64_sn_plat_set_error_handling_features(); 275 ia64_sn_plat_set_error_handling_features();
275 276
277#if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE)
276 /* 278 /*
277 * If the generic code has enabled vga console support - lets 279 * If there was a primary vga adapter identified through the
278 * get rid of it again. This is a kludge for the fact that ACPI 280 * EFI PCDP table, make it the preferred console. Otherwise
279 * currtently has no way of informing us if legacy VGA is available 281 * zero out conswitchp.
280 * or not.
281 */ 282 */
282#if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE) 283
283 if (conswitchp == &vga_con) { 284 if (vga_console_membase) {
285 /* usable vga ... make tty0 the preferred default console */
286 add_preferred_console("tty", 0, NULL);
287 } else {
284 printk(KERN_DEBUG "SGI: Disabling VGA console\n"); 288 printk(KERN_DEBUG "SGI: Disabling VGA console\n");
285#ifdef CONFIG_DUMMY_CONSOLE 289#ifdef CONFIG_DUMMY_CONSOLE
286 conswitchp = &dummy_con; 290 conswitchp = &dummy_con;