[U-Boot] [PATCH] sa1100 change get_timer(base) to return time since base

Kristoffer Ericson kristoffer.ericson at gmail.com
Tue Jun 1 16:53:11 CEST 2010


On Sun, May 16, 2010 at 07:35:18PM +0200, Jochen Friedrich wrote:
> similar to 274737e5eb25b2bcd3af3a96da923effd543284f
> 
> This patch changes get_timer() for sa1100 to return the time since
> 'base' instead of the time since the counter was at zero.
> 
> Symptom seen is flash timeout errors when erasing or programming a
> sector using the common cfi flash code.
> 
> Signed-off-by: Jochen Friedrich <jochen at scram.de>
> ---

Did this get applied anywhere? Fail to see it inside the git log.

>  arch/arm/cpu/sa1100/timer.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/cpu/sa1100/timer.c b/arch/arm/cpu/sa1100/timer.c
> index 0207501..aea90ab 100644
> --- a/arch/arm/cpu/sa1100/timer.c
> +++ b/arch/arm/cpu/sa1100/timer.c
> @@ -41,7 +41,7 @@ void reset_timer (void)
>  
>  ulong get_timer (ulong base)
>  {
> -	return get_timer_masked ();
> +	return get_timer_masked () - base;
>  }
>  
>  void set_timer (ulong t)
> -- 
> 1.7.1
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list