[U-Boot] [PATCH 1/5] imx: Add get_tbclk() function for imx25

Stefano Babic sbabic at denx.de
Thu Jun 30 17:38:43 CEST 2011


On 06/30/2011 11:57 AM, Matthias Weisser wrote:
> Need this function for autoboot keyd
> 

Hi Matthias,

> +/*
> + * This function is derived from PowerPC code (timebase clock frequency).
> + * On ARM it returns the number of timer ticks per second.
> + */
> +ulong get_tbclk(void)
> +{
> +	ulong tbclk;
> +
> +	tbclk = CONFIG_MX25_CLK32;
> +	return tbclk;
> +}

Which is the advantage to add this function instead using directly
CONFIG_MX25_CLK32 in the caller ? It is not me so clear..

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list