From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 3 Apr 2014 16:01:08 -0400 Subject: [U-Boot] [Question] bardrate both in gd_t and bd_t In-Reply-To: <20140402161224.2E8A.AA925319@jp.panasonic.com> References: <20140402161224.2E8A.AA925319@jp.panasonic.com> Message-ID: <20140403200108.GL16360@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: