arm: a320: fix broken timer
authorPo-Yu Chuang <ratbert@faraday-tech.com>
Wed, 10 Aug 2011 17:44:21 +0000 (17:44 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 8 Nov 2011 19:52:23 +0000 (20:52 +0100)
commit60d1ea94ead7327d46f0a38cf8d20663a508fe34
treea17f1cdee4ad54c8912e60ec5e1396c2d83088f3
parenta3e09cc28c0abb48f76f9375bf4d1c6e0cae82fe
arm: a320: fix broken timer

timer.c used static data and are called before relocation.
Move all static variables into global_data structure. Also cleanup
timer.c from unused stubs and make it truly use 64 bit tick values.

Remove reset_timer_masked() get_timer_masked()

reference: arch/arm/cpu/arm926ejs/at91/timer.c

Based on Reinhard Meyer <u-boot@emk-elektronik.de>'s patches
5dca710a3d7703e41da0e9894f2d71f9e25bea6b
cfff263f41e32c7ba2ee9162a8cc6423eb5a8390

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Tested-by: Macpaul Lin <macpaul@gmail.com>
arch/arm/cpu/arm920t/a320/timer.c