summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-10-07 04:17:49 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-10-07 04:17:49 +0000
commit34a910dec983a2915fb1e729d45d1bd6aab82db4 (patch)
tree87efbd8b62fd33b79c97ef07dc4aa19583b36380 /sys/arch/sgi/dev
parent8549c344f7b2474926c4cba8de710ed46baf54d1 (diff)
Small steps towards getting the serial clock correct on IOC4 serial ports.
Diffstat (limited to 'sys/arch/sgi/dev')
-rw-r--r--sys/arch/sgi/dev/com_iof.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sgi/dev/com_iof.c b/sys/arch/sgi/dev/com_iof.c
index 66e61bfc47a..73dc9638400 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.1 2009/08/18 19:34:15 miod Exp $ */
+/* $OpenBSD: com_iof.c,v 1.2 2009/10/07 04:17:46 miod Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -87,7 +87,10 @@ com_iof_attach(struct device *parent, struct device *self, void *aux)
sc->sc_hwflags = 0;
sc->sc_swflags = 0;
- sc->sc_frequency = 22000000 / 3;
+ /* XXX need to get PCI bus speed from parent */
+ sc->sc_frequency = 66666667;
+ if (0)
+ sc->sc_frequency >>= 1;
/* if it's in use as console, it's there. */
if (!(console && !comconsattached)) {
@@ -107,6 +110,7 @@ com_iof_attach(struct device *parent, struct device *self, void *aux)
*/
sc->sc_iot = comconsiot;
sc->sc_iobase = comconsaddr;
+ sc->sc_frequency = comconsfreq;
if (comcnattach(sc->sc_iot, sc->sc_iobase, TTYDEF_SPEED,
sc->sc_frequency, (TTYDEF_CFLAG & ~(CSIZE | PARENB)) | CS8))