[U-Boot] [PATCH] mx5/6 timer: Use defined CONFIG_SYS_MX*_CLK32

Stefano Babic sbabic at denx.de
Fri Aug 17 23:09:30 CEST 2012


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
=====================================================================


More information about the U-Boot mailing list