diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-08-12 17:23:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-08-12 17:23:22 +0000 |
commit | 229c556bc1be3f39773166961e2989a17ab6aaa8 (patch) | |
tree | b184d74fb4eeaa0e96507e8c9f8e98c18da99eee /sys/arch/vax/stand/boot/autoconf.c | |
parent | c4469f1615eb58a0c8be3f9e8b58b434290cebee (diff) |
Figured out where the prom console routines are on KA60 and how to invoke
them, thanks to old ultrix bootblocks lying around.
Also, enable M-Bus clock on the I/O slot IOCSR, this unstucks the cpu
clocks (which really are implemented on the SSC on the I/O module, but
need to be controlled via the cpu's ``internal'' processor registers...)
Diffstat (limited to 'sys/arch/vax/stand/boot/autoconf.c')
-rw-r--r-- | sys/arch/vax/stand/boot/autoconf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/vax/stand/boot/autoconf.c b/sys/arch/vax/stand/boot/autoconf.c index 1f02f44d51a..9ddc286b3b1 100644 --- a/sys/arch/vax/stand/boot/autoconf.c +++ b/sys/arch/vax/stand/boot/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.11 2008/08/10 18:20:07 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.12 2008/08/12 17:23:21 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.19 2002/06/01 15:33:22 ragge Exp $ */ /* * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden. @@ -191,6 +191,14 @@ clkstart(void) mtpr(-10000, PR_NICR); /* Load in count register */ mtpr(0x800000d1, PR_ICCS); /* Start clock and enable interrupt */ + if (vax_boardtype == VAX_BTYP_60) { + extern int ka60_ioslot; + + /* enable M-Bus clock in IOCSR */ + *(unsigned int *)(0x30800000 + (ka60_ioslot << 25)) |= + 0x20000000; /* CLKIEN */ + } + mtpr(20, PR_IPL); } |