Subject: Re: MAGMA support
To: Peter Eisch <peter@boku.net>
From: Jason Wright <jason@thought.net>
List: port-sparc
Date: 01/14/2002 01:02:05
On Fri, Dec 28, 2001 at 10:11:38PM -0600, Peter Eisch wrote:
> Back in sept/oct 1999 I tried to make it work to no avail.  I went so far as
> to even buy a newer version of the card, as second newer version of the
> card, tried in Classic, then LX then SS5 and then SS20 and never got more
> than garbage.  So then I built the kernel with gobs of debugging and found
> that it's trying to talk to it, but I too never worked out what is really
> going wrong.
> 
The garbage is probably because the oscillator frequency is wrong.
The driver tries to use 25Mhz, but I bet the prom 'clock' property
is set to a non 25 value.  I just made a change to OpenBSD's magma
driver that allows us to properly decode the prom 'clock' node and
do the right thing (der Mouse, you'll run into this too when trying
to support your board).

Relevant diff:
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/arch/sparc/dev/magma.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&f=u

> Ultimately I found it easier to pick up SS5's whenever I needed another
> serial port.  If you do find a way to make it happy, I too would be happy.
> 
Must be nice =)

--Jason L. Wright