[U-Boot-Users] [PATCH] Fix AT9RM9200 timer to avoid erroneous timeouts

Anders Larsen anders at alarsen.net
Wed Feb 28 14:56:44 CET 2007


Hi,

the timeout handling in e.g. drivers/cfi_flash.c assumes that
get_timer() increments to 0xffffffff, then starts from 0 again.

The implementation in cpu/arm920t/at91rm9200/interrupts.c acts
differently - it only increments to 0xffffffff/TIMER_LOAD_VAL,
thereby wrapping too early (every couple of minutes).
Now and again this causes e.g. flash_status_check() to erroneously
report a timeout.
The patch below fixes this.

Cheers
 Anders





More information about the U-Boot mailing list