public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [Question] bardrate both in gd_t and bd_t
@ 2014-04-02  7:12 Masahiro Yamada
  2014-04-03 20:01 ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Masahiro Yamada @ 2014-04-02  7:12 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-04 11:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-02  7:12 [U-Boot] [Question] bardrate both in gd_t and bd_t Masahiro Yamada
2014-04-03 20:01 ` Tom Rini
2014-04-03 20:08   ` Simon Glass
2014-04-03 21:51     ` Wolfgang Denk
2014-04-04  2:42       ` Masahiro Yamada
2014-04-04  9:22         ` Wolfgang Denk
2014-04-04 11:19           ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox