[U-Boot] [Question] bardrate both in gd_t and bd_t

Masahiro Yamada yamada.m at jp.panasonic.com
Fri Apr 4 04:42:50 CEST 2014


Hi Simon, Wolfgang,

On Thu, 03 Apr 2014 23:51:35 +0200
Wolfgang Denk <wd at denx.de> wrote:

> Dear Simon,
> 
> In message <CAPnjgZ2PrHue3hTW__MaYBRMA3OFZ3p1k9D49rZatur9G5x--g at mail.gmail.com> you wrote:
> >
> > The duplication existed before generic board (i.e. each arch had its own
> > baudrate in global_data). I believe the reason for it being in bd_t is that
> > it can be passed to the kernel in that structure on some archs. So removing
> > it there may break some boards.
> 
> Correct. In some (really old) kernel versions this was the way to pass
> this information to the kernel, so we neede dit there.
> 
> > I suspect the reason it is in global_data is that the bd_t  structure
> > doesn't exist until some time after the console is started up, so it
> > wouldn't be possible to do serial output otherwise.
> 
> Also correct.
> 

Thanks.
Sadly, it looks like we should keep both of the two.


Best Regards
Masahiro Yamada



More information about the U-Boot mailing list