From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Fri, 17 Aug 2012 23:09:30 +0200 Subject: [U-Boot] [PATCH] mx5/6 timer: Use defined CONFIG_SYS_MX*_CLK32 In-Reply-To: <1454692757.2524424.1345237425370.JavaMail.root@advansee.com> References: <1454692757.2524424.1345237425370.JavaMail.root@advansee.com> Message-ID: <502EB30A.9040607@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 On 17/08/2012 23:03, Beno?t Th?baudeau wrote: > > OK, then for mx25/35/5/6, would you like in timer.c something like: > #ifdef CONFIG_SYS_MX{*}_CLK32 > #define CLK_32KHZ CONFIG_SYS_MX{*}_CLK32 > #else > #define CLK_32KHZ 32768 > #endif > > {*}: 25, 35, 5 or 6 > > In that way, this definition could be removed from most boards, and that would > still allow exceptions and be future-proof. Yes, this is exactly what I meant. Best regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================