Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/dev Adjust sc_frequency in MD attachment as q...
details: https://anonhg.NetBSD.org/src/rev/49a2822270cc
branches: trunk
changeset: 761270:49a2822270cc
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jan 22 17:10:20 2011 +0000
description:
Adjust sc_frequency in MD attachment as quirks.
It is not applicable to all 1665x variants.
XXX: It looks IOBlix board actually has 22.1184MHz OSC without clock divisor
http://amiga.resource.cx/photos/gallery/ioblix.jpg
so needs to investigate why we have to divide sc_frequency by four
to get right baud rate on IOBlix com. (firmware sets MCR_PRESCALE?)
diffstat:
sys/arch/amiga/dev/com_supio.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 3f448a4492e6 -r 49a2822270cc sys/arch/amiga/dev/com_supio.c
--- a/sys/arch/amiga/dev/com_supio.c Sat Jan 22 16:59:26 2011 +0000
+++ b/sys/arch/amiga/dev/com_supio.c Sat Jan 22 17:10:20 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com_supio.c,v 1.28 2010/02/02 19:03:31 phx Exp $ */
+/* $NetBSD: com_supio.c,v 1.29 2011/01/22 17:10:20 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_supio.c,v 1.28 2010/02/02 19:03:31 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_supio.c,v 1.29 2011/01/22 17:10:20 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -136,6 +136,7 @@
COM_INIT_REGS(csc->sc_regs, iot, ioh, iobase);
csc->sc_frequency = supa->supio_arg;
+ csc->sc_frequency /= 4; /* XXX IOBlix firmware sets MCR_PRESCALE? */
com_attach_subr(csc);
Home |
Main Index |
Thread Index |
Old Index