From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [Question] bardrate both in gd_t and bd_t
Date: Thu, 3 Apr 2014 16:01:08 -0400 [thread overview]
Message-ID: <20140403200108.GL16360@bill-the-cat> (raw)
In-Reply-To: <20140402161224.2E8A.AA925319@jp.panasonic.com>
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 "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.
I think the answer is sadly just duplicated datastructures. Simon do
you recall why we didn't drop this duplication before? Thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140403/67126e53/attachment.pgp>
next prev parent reply other threads:[~2014-04-03 20:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140403200108.GL16360@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox