[U-Boot] [PATCH] davinci: Rewrite timer.c to use tbl/tbu emulation variables in gd
Sudhakar Rajashekhara
sudhakar.raj at ti.com
Fri Dec 3 09:59:29 CET 2010
Hi Nick,
On Thu, Dec 02, 2010 at 19:27:24, Nick Thompson wrote:
> 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 at ge.com>
> ---
> This patch relies on http://patchwork.ozlabs.org/patch/73758/ which has not been
> accepted yet. I have made a comment on it, suggesting that it should be changed:
> http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/90040/focus=90162
>
> arch/arm/cpu/arm926ejs/davinci/timer.c | 77 ++++++++++++--------------------
> 1 files changed, 28 insertions(+), 49 deletions(-)
>
I applied this patch on top of http://patchwork.ozlabs.org/patch/73758/
and tested on DM365 without any config changes. Now the board boots fine
without any hang.
Tested-by: Sudhakar Rajashekhara <sudhakar.raj at ti.com>
Thanks,
Sudhakar
More information about the U-Boot
mailing list