uboot-mt623x/cpu/nios2
Scott McNutt d8bc0a2889 nios2: Reload timer count in reset_timer()
When the timestamp is incremented via interrupt and the interrupt
   period is greater than 1 msec, successive calls to get_timer() can
   produce inaccurate timing since the interrupts are asynchronous
   to the timing loop. For example, with an interrupt period of 10 msec
   two successive calls to get_timer() could indicate an elapsed time
   of 10 msec after only several hundred usecs -- depending on when
   the next interrupt actually occurs. This behavior can cause
   reliability issues with components such as CFI and NAND.

   This can be remedied by calling reset_timer() prior to establishing
   the base timestamp with get_timer(0), provided reset_timer()
   resets the hardware timer (rather than simply resetting only the
   timestamp). This has the effect of synchronizing the interrupts
   (and the advance of the timestamp) with the timing loop.

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-02 12:28:41 -04:00
..
Makefile nios2: Move serial drivers to individual files in drivers/serial 2010-04-02 12:28:40 -04:00
config.mk Patches by Scott McNutt, 24 Aug 2004: 2004-10-10 21:27:30 +00:00
cpu.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
epcs.c nios2: Fix outx/writex parameter order in io.h 2010-04-02 12:28:41 -04:00
exceptions.S Nios II - Fix I/O Macros and mini-app stubs 2006-06-08 11:59:57 -04:00
interrupts.c nios2: Reload timer count in reset_timer() 2010-04-02 12:28:41 -04:00
start.S Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
sysid.c General help message cleanup 2009-06-12 20:47:16 +02:00
traps.c Patches by Scott McNutt, 24 Aug 2004: 2004-10-10 21:27:30 +00:00