From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Tue, 11 Feb 2014 15:57:03 +0800 Subject: [U-Boot] [PATCH RESEND 2/2] serial: opencores_yanu: Avoid duplicate oc_serial_setbrg() implementation In-Reply-To: <1391575610.10468.2.camel@phoenix> References: <1391575552.10468.1.camel@phoenix> <1391575610.10468.2.camel@phoenix> Message-ID: <52F9D7CF.5050302@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Alex, On 02/05/2014 12:46 PM, Axel Lin wrote: > The implementation of oc_serial_setbrg() for CONFIG_SYS_NIOS_FIXEDBAUD and > !CONFIG_SYS_NIOS_FIXEDBAUD are very similar. > Add a baudrate variable and set it to either CONFIG_BAUDRATE or gd->baudrate. > Then we can unify the code for both cases. Applied to nios branch. Thanks and sorry for late response. Thomas Chou