Subject: Re: Newbie looking to figure out how to do a port!
To: None <tech-ports@NetBSD.org>
From: Peter Seebach <seebs@plethora.net>
List: tech-ports
Date: 02/20/2006 05:21:44
In message <200602201014.FAA17776@Sparkle.Rodents.Montreal.QC.CA>, der Mouse wr
ites:
>> #define BASE_BAUD (((400*1000000)/((0x3C>>1)+1))/16)
>
>> What I don't get is...
>
>> Why would anyone write "/31" as "/((0x3C>>1)+1)"?
>
>Perhaps because it more closely mirrors the way some external document
>specifies something?  I've seen such things often enough.
>
>After all, why would anyone write 12903225 as (400*1000000)/31, either?

The board documentation says the UART clock is processor speed over 31.

But yeah, I was thinking there might be some document somewhere.

-s