From: Wolfgang Denk Date: Thu, 03 Apr 2014 23:51:35 +0200 Subject: [U-Boot] [Question] bardrate both in gd_t and bd_t In-Reply-To: References: <20140402161224.2E8A.AA925319@jp.panasonic.com> <20140403200108.GL16360@bill-the-cat> Message-ID: <20140403215135.919D8383408@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 boards. 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 structure > doesn't exist until some time after the console is started up, so it > wouldn't be possible to do serial output otherwise. Also correct. Thanks! Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Always borrow money from a pessimist; they don't expect to be paid back.