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

2014-04-04 Thread Masahiro Yamada
Hi Wolfgang, On Fri, 04 Apr 2014 11:22:17 +0200 Wolfgang Denk wrote: > Dear Masahiro, > > In message <20140404114250.5c15.aa925...@jp.panasonic.com> you wrote: > > > > > Correct. In some (really old) kernel versions this was the way to pass > > > this information to the kernel, so we neede di

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

2014-04-04 Thread Wolfgang Denk
Dear Masahiro, In message <20140404114250.5c15.aa925...@jp.panasonic.com> you wrote: > > > 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 struc

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

2014-04-03 Thread Masahiro Yamada
Hi Simon, Wolfgang, On Thu, 03 Apr 2014 23:51:35 +0200 Wolfgang Denk wrote: > Dear Simon, > > In message > 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

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

2014-04-03 Thread Wolfgang Denk
Dear Simon, In message 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 boa

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

2014-04-03 Thread Simon Glass
Hi, On 3 April 2014 14:01, Tom Rini wrote: > On Wed, Apr 02, 2014 at 04:12:24PM +0900, Masahiro Yamada wrote: > > Hi. > > > > I notice bardrate parameter bd_t as well as gd_t. > > > > > > In include/asm-generic/global_data.h > > > > typedef struct global_data { > > bd_t *bd; > > unsi

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

2014-04-03 Thread Tom Rini
On Wed, Apr 02, 2014 at 04:12:24PM +0900, Masahiro Yamada wrote: > Hi. > > I notice bardrate parameter bd_t as well as gd_t. > > > In include/asm-generic/global_data.h > > typedef struct global_data { > bd_t *bd; > unsigned long flags; > unsigned int baudrate; > > We have "ba

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

2014-04-02 Thread Masahiro Yamada
Hi. I notice bardrate parameter bd_t as well as gd_t. In include/asm-generic/global_data.h typedef struct global_data { bd_t *bd; unsigned long flags; unsigned int baudrate; We have "baudrate" here. E.g. arch/arm/include/asm/u-boot.h typedef struct bd_info {