summaryrefslogtreecommitdiff
path: root/post/cpu/ppc4xx/uart.c
diff options
context:
space:
mode:
authorDirk Behme <dirk.behme@googlemail.com>2008-03-26 09:53:29 +0100
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-04-22 23:12:01 +0200
commit80c40b765b3642ddb9f3392b7898715aab44a29c (patch)
treef5238b881170be5e46f2c6846593f72027edf898 /post/cpu/ppc4xx/uart.c
parent58c5376ba67767ee684069d43e7f747a5d9ae8ed (diff)
downloadu-boot-imx-80c40b765b3642ddb9f3392b7898715aab44a29c.zip
u-boot-imx-80c40b765b3642ddb9f3392b7898715aab44a29c.tar.gz
u-boot-imx-80c40b765b3642ddb9f3392b7898715aab44a29c.tar.bz2
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>
Diffstat (limited to 'post/cpu/ppc4xx/uart.c')
0 files changed, 0 insertions, 0 deletions