[PATCH] early serial init

Tom Rini trini at kernel.crashing.org
Fri Apr 12 10:03:41 EST 2002


On Thu, Apr 11, 2002 at 04:28:49PM -0700, andrew may wrote:
> On Thu, Apr 11, 2002 at 04:10:56PM -0700, Tom Rini wrote:
> > On Thu, Apr 11, 2002 at 03:36:42PM -0700, andrew may wrote:
> >
> > > This patch is to remove the need for the BASE BAUD define.
> >
> > Only if you get this information from somewhere else, yes?  This isn't
> > currently something we grab from OpenBIOS, or could, right?
>
> If you look at the patch you see the only thing we need to know is the clock
> rate of the CPU. Then you can to a mfdcr() to calc the base baud. If there
> is an external clock then we need the basebaud from somewhere else.

Ah, right..

[snip]
> > More seriously, if someone wants to try and do that there's lots of
> > other things which would need to be changed first.
>
> Yes there is a lot of work to do, but I would like to see it happen.
> Right now we have to do seperate builds for our custum board and one for
> our Walnut boards and that is a pain.

I assume once the custom HW is 'ready', you'll be able to stop doing
that tho.  I think you'll spend more time trying to get everything just
right than you would building 2 kernels a few times (I bet much of the
pain comes from the current kbuild crap.  You might wanna play w/ the
current kbuild-2.5 stuff if you're going to pick a kernel rev & stay for
a while, it gets the deps right so you only recompile the needed files
in cases like this).

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list