]> git.ipfire.org Git - people/ms/u-boot.git/commit
davinci: Rewrite timer.c to use tbl/tbu emulation variables in gd
authorNick Thompson <nick.thompson@ge.com>
Sat, 11 Dec 2010 15:46:46 +0000 (10:46 -0500)
committerSandeep Paulraj <s-paulraj@ti.com>
Sat, 11 Dec 2010 15:46:46 +0000 (10:46 -0500)
commite465cf2377d15f1ca1fa22079c766e89ad0aaf29
treeae4cece477a9334e5f2145b5e158d2841e06d590
parentac8983bcba75576c50307b5e8dc8fb848740ee61
davinci: Rewrite timer.c to use tbl/tbu emulation variables in gd

This change allows the davinci timer functions to be used before
relocation since it avoids using static variables prior to BSS being
made available.

The code is based on that used in the at91 timers, modified to use
a davinci specific hardware timer. It also maintains reset_timer()
to allow deprecated timer usage to continue to work (for example,
in nand_base.c)

Signed-off-by: Nick Thompson <nick.thompson@ge.com>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
Tested-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Tested-by: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
arch/arm/cpu/arm926ejs/davinci/timer.c