u-boot-brain/cpu/arm926ejs
Dirk Behme 80c40b765b ARM: Davinci: Fix DM644x timer overflow handling and cleanup
Fix ARM based DaVinci DM644x timer overflow handling and cleanup timer code.

Changes:

- Remove *_masked() functions as noted by Wolfgang

- Adapt register naming to recent TI spec (sprue26, March 2007)

- Fix reset_timer() handling

- As reported by Pieter [1] the overflow fix introduced a delay of factor 16 (e.g 2 seconds became 32). While the overflow fix is basically okay, it missed to divide udelay by 16, too. Fix this.

[1] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/38179

- Remove software division of timer count value (DIV(x) macro) and do it in hardware (TIM_CLK_DIV).

Many thanks to Troy Kisky <troy.kisky@boundarydevices.com> and Pieter Voorthuijsen <pieter.voorthuijsen@Prodrive.nl> for the hints & testing!

Patch is compile tested with davinci_dvevm & sonata & schmoogie configuration and tested by Pieter on DaVinci EVM hardware.

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Acked-by: Pieter Voorthuijsen <pieter.voorthuijsen@Prodrive.nl>
2008-04-22 23:12:01 +02:00
..
at91sam9 AT91SAM9: Move CONFIG_HAS_DATAFLASH to Makefile 2008-04-01 01:46:12 +02:00
davinci ARM: Davinci: Fix DM644x timer overflow handling and cleanup 2008-04-22 23:12:01 +02:00
omap Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
versatile Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
config.mk Update ARM Integrator boards: 2005-10-04 23:10:28 +02:00
cpu.c GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
cpuinfo.c Remove duplicate defines for ARRAY_SIZE 2008-02-14 00:43:02 +01:00
interrupts.c Use timer_init() instead of board supplied interrupt_init() 2008-04-01 01:44:05 +02:00
Makefile Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
start.S AT91CAP9 support : cpu/ files 2008-02-14 09:37:57 +00:00