From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudhakar Rajashekhara Date: Fri, 3 Dec 2010 14:29:29 +0530 Subject: [U-Boot] [PATCH] davinci: Rewrite timer.c to use tbl/tbu emulation variables in gd In-Reply-To: <4CF7A5C4.6010303@ge.com> References: <4CF7A5C4.6010303@ge.com> Message-ID: <012a01cb92c8$64ef4cf0$2ecde6d0$@raj@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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 Thanks, Sudhakar