[U-Boot-Users] [PATCH][BUGFIX] Incorrect handling of AT91RM9200 timer overflow

Steven Scholz steven.scholz at imc-berlin.de
Tue Nov 22 10:32:11 CET 2005


Wolfgang,

> the AT91RM9200 timer functions are confusing apples with bananas.
> 
> When the (16-bit) timer overflows, we have lost exactly 2^16 counts
> (or a multiple thereof, but we currently can't catch that situation),
> but get_timer_raw() instead adds the (unrelated) conversion factor
> to milliseconds, causing udelay() to potentially return too early.
> 
> The patch below fixes this.
> 
> Cheers
>  Anders
> 
> CHANGELOG:
>   Fix incorrect handling of at91rm9200 timer overflow in get_timer_raw()
>   Patch by Anders Larsen, 11 Nov 2005
> 
> Signed-off-by: Anders Larsen <alarsen at rea.de>

Makes sense. Please apply.

--
Steven




More information about the U-Boot mailing list