Re: [RFC 4/4] m68k/atari: fix SCC initialization for debug console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux