[U-Boot] [PATCH] MX27: add missing get_tbclk()
Marek Vasut
marek.vasut at gmail.com
Tue Feb 7 22:26:21 CET 2012
> Signed-off-by: Stefano Babic <sbabic at denx.de>
> ---
> arch/arm/cpu/arm926ejs/mx27/timer.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/cpu/arm926ejs/mx27/timer.c
> b/arch/arm/cpu/arm926ejs/mx27/timer.c index 5af9359..226c0a5 100644
> --- a/arch/arm/cpu/arm926ejs/mx27/timer.c
> +++ b/arch/arm/cpu/arm926ejs/mx27/timer.c
> @@ -171,3 +171,11 @@ void __udelay(unsigned long usec)
> while (get_ticks() < tmp) /* loop till event */
> /*NOP*/;
> }
> +
> +ulong get_tbclk(void)
> +{
> + ulong tbclk;
> +
> + tbclk = CONFIG_MX27_CLK32;
> + return tbclk;
> +}
Why not simply ... return CONFIG... ?
M
More information about the U-Boot
mailing list