From 20f66016c15d0fac4fa08efead965eaa6931e068 Mon Sep 17 00:00:00 2001 From: lonewolf Date: Thu, 22 Jan 2004 14:15:51 +0000 Subject: [PATCH] Correctly read the board revision. --- sys/arch/sgimips/gio/newport.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/sgimips/gio/newport.c b/sys/arch/sgimips/gio/newport.c index 7cdaf8c4798c..91f303bd1120 100644 --- a/sys/arch/sgimips/gio/newport.c +++ b/sys/arch/sgimips/gio/newport.c @@ -1,4 +1,4 @@ -/* $NetBSD: newport.c,v 1.1 2003/12/15 05:24:51 lonewolf Exp $ */ +/* $NetBSD: newport.c,v 1.2 2004/01/22 14:15:51 lonewolf Exp $ */ /* * Copyright (c) 2003 Ilpo Ruotsalainen @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: newport.c,v 1.1 2003/12/15 05:24:51 lonewolf Exp $"); +__KERNEL_RCSID(0, "$NetBSD: newport.c,v 1.2 2004/01/22 14:15:51 lonewolf Exp $"); #include #include @@ -487,7 +487,7 @@ newport_setup_hw(struct newport_devconfig *dc) (1 << REX3_DCBMODE_CSHOLD_SHIFT) | (1 << REX3_DCBMODE_CSSETUP_SHIFT)); - dc->dc_boardrev = (rex3_read(dc, REX3_REG_DCBDATA0) >> 4) & 0x07; + dc->dc_boardrev = (rex3_read(dc, REX3_REG_DCBDATA0) >> 28) & 0x07; /* Setup cursor glyph */ curp = vc2_read_ireg(dc, VC2_IREG_CURSOR_ENTRY);