[U-Boot] [PATCH 1/2] arm: a320 timer: move static data to global_data struct

Reinhard Meyer
2010-11-01T08:37:27Z

Dear ratbert.chuang,
> From: Po-Yu Chuang <ratbert@faraday-tech.com>
>
> 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.
>
> Based on Reinhard Meyer <u-boot@emk-elektronik.de>'s patch
> 5dca710a3d7703e41da0e9894f2d71f9e25bea6b
>
> Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>

Can you hold on with this for a few days?
Recent discussions about the timer issue have revealed that there are
potential improvements and mainly udelay() needs a minor fix to
prevent a potential failure after a few billion years.

I have improvements in mind and will implement them in a few days, and
would appreciate if not so perfect code would not be copied and spread
before that ;)

Best Regards,
Reinhard