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

Masahiro Yamada yamada.m at jp.panasonic.com
Wed Apr 2 09:12:24 CEST 2014


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 {
	unsigned int	bi_baudrate;	/* serial console baudrate */

We have "bi_baudrate".



My question is what's the difference
between gd->baudrate and bd->bi_baudrate.
Why do we need both?

Since baudrate is a common paramter for all architectures,
bd->bi_baudrate looks weird to me.




Best Regards
Masahiro Yamada



More information about the U-Boot mailing list