u-boot/cpu/arm926ejs/davinci
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
..
dp83848.c [ARM] TI DaVinci support, hopefully final 2007-08-10 20:26:18 +02:00
ether.c Clean up some remaining CFG_CMD_ -> CONFIG_CMD_ issues. 2007-08-12 14:27:39 +02:00
i2c.c [ARM] TI DaVinci support, hopefully final 2007-08-10 20:26:18 +02:00
lowlevel_init.S Revert merge of git://www.denx.de/git/u-boot-arm, commit 62479b18: 2008-04-11 15:11:26 +02:00
lxt972.c [ARM] TI DaVinci support, hopefully final 2007-08-10 20:26:18 +02:00
Makefile [ARM] TI DaVinci support, hopefully final 2007-08-10 20:26:18 +02:00
nand.c Revert merge of git://www.denx.de/git/u-boot-arm, commit 62479b18: 2008-04-11 15:11:26 +02:00
reset.S [ARM] TI DaVinci support, hopefully final 2007-08-10 20:26:18 +02:00
timer.c ARM: Davinci: Fix DM644x timer overflow handling and cleanup 2008-04-22 23:12:01 +02:00