All of lore.kernel.org
 help / color / mirror / Atom feed
From: Finn Thain <fthain@telegraphics.com.au>
To: Michael Schmitz <schmitzmic@gmail.com>
Cc: linux-m68k <linux-m68k@lists.linux-m68k.org>
Subject: Re: [RFC 4/4] m68k/atari: fix SCC initialization for debug console
Date: Tue, 4 Mar 2014 13:31:35 +1100 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.00.1403041304120.13150@nippy.intranet> (raw)
In-Reply-To: <CAOmrzkJhFs=HCBkxKQYNk9tNs1Nd8O5KiUG0qsWDJSRtWGzuGQ@mail.gmail.com>


On Tue, 4 Mar 2014, Michael Schmitz wrote:

> >
> > The 7.9872 MHz PCLK used in this patch was inferred from the existing 
> > code as I don't have any hardware data.
> 
> The difference in clock source settings is the main reason we can't use 
> the exact same code IIRC.

> >         .byte   14,2,14,3       /* use master clock for BRG, enable */

This is the other difference. For some reason the SCC initialization code 
on a Mac selects the external clock for the Baud Rate Generator, whereas 
on an Atari the master clock is used.

pmac_zilog does the same as the Mac code here. There is some mention of 
MIDI in the comments there. AppleTalk also uses an external clock, IIRC.

I've no idea whether the master clock runs at the same rate across all Mac 
models. Anyway, the existing code works on all the Macs I've tested 
(though it needs the bootloader to "warm up serial ports" on some 
powerbooks).

Finn

      reply	other threads:[~2014-03-04  2:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-02 23:56 [RFC 4/4] m68k/atari: fix SCC initialization for debug console Finn Thain
2014-03-04  0:34 ` Michael Schmitz
2014-03-04  2:31   ` Finn Thain [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.00.1403041304120.13150@nippy.intranet \
    --to=fthain@telegraphics.com.au \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=schmitzmic@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.