[U-Boot-Users] Serial Port Configuration on MPC8xx

Christophe.LINDHEIMER at fr.thalesgroup.com Christophe.LINDHEIMER at fr.thalesgroup.com
Thu Jul 10 14:49:29 CEST 2003


> >
> > In fact when I change the baudrate of SMC1 in UBoot, I see 
> that the same
> > baudrate remains used in the linux console ( am I getting 
> mad ?? :-)) )
> 
> This is just lucky coincidence if you happen to use the  same  serial
> port  for cosole in U-Boot and Linux. Normally, you will have to pass
> the required information to the Linux kernel as a boot argument, like
> "console=ttyS2,115200"
> 

I am thinking that in the Bd_info there is a parameter indicating the
baudrate of the serial lline.
This value must be used by Linux to set up the console at the right baudrate
even without using the console
boot argument...

> > So I thought that the IO Connfiguration & The BRG settings 
> was done only by
> > UBoot.
> 
> No, the philosophy is that each part of the software, each driver, is
> responsible to initialize the hardware it accesses. So the LInux UART
> driver will initialize the serial port(s) itself.
> 
> > BTW, depending on the hardware the IO pins ( and the IO 
> Config ) are not the
> > same and nothing in the linux config allow to choose 
> that... So it should
> 
> There are some de-facto standard configurations, which are  supported
> by the Linux driver.
> 
> > mean that the Linux Uart Driver should be patched depending on your
> > hardware.
> 
> Indeed. If your hardware guys decided to build some different  confi-
> guration,  this  may require to add some #ifdef's to the Linux kernel
> code. If you have a look at the UART drivers in our kernel treee  you
> will see what I mean :-(

Ok .
I gonna see if I had to change something in the UART driver.

Thanks.

Chris




More information about the U-Boot mailing list