summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-10-13 21:17:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-10-13 21:17:14 +0000
commit37c48ece580d4aeacd2f905999d656ff184ffb9c (patch)
treefb5985dba703d03691046068d458f692b44cdb9d /sys/arch/sgi/dev
parent36559ce0b2c164d1ca60a5f34ce82c27545cfb1e (diff)
Make iof(4) pass its bus speed to children, this in turn allows com(4) to
pick the right clock if the PCI bus the I/O board is on degrades to 33MHz.
Diffstat (limited to 'sys/arch/sgi/dev')
-rw-r--r--sys/arch/sgi/dev/com_iof.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/sgi/dev/com_iof.c b/sys/arch/sgi/dev/com_iof.c
index 4a0190ffe23..1b3240c7817 100644
--- a/sys/arch/sgi/dev/com_iof.c
+++ b/sys/arch/sgi/dev/com_iof.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_iof.c,v 1.3 2009/10/11 19:36:25 miod Exp $ */
+/* $OpenBSD: com_iof.c,v 1.4 2009/10/13 21:17:11 miod Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -92,10 +92,7 @@ com_iof_attach(struct device *parent, struct device *self, void *aux)
sc->sc_hwflags = 0;
sc->sc_swflags = 0;
- /* XXX need to get PCI bus speed from parent */
- sc->sc_frequency = 66666667;
- if (0)
- sc->sc_frequency >>= 1;
+ sc->sc_frequency = iaa->iaa_clock;
/* if it's in use as console, it's there. */
if (!(console && !comconsattached)) {