From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Date: Thu, 20 Mar 2008 15:24:38 +0100 Subject: [U-Boot-Users] DaVinci DM644x timer problem (divided by 16) In-Reply-To: <4CD35CD1F8085945B597F80EEC8942138A2495@exc01.bk.prodrive.nl> References: <4CD35CD1F8085945B597F80EEC8942138A2495@exc01.bk.prodrive.nl> Message-ID: <47E273A6.9090404@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Pieter Voorthuijsen wrote: > Hello, > > Some months ago, a patch was submitted ([ARM] fix timer overflow in > DaVinci). The result was that in /cpu/arm926ejs/davinci/timer.c > read_timer was divided by 16. > > http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=ea686f52e4 > 5b3df2938866d3f5a98bb2556dfe2b > > Right now, when I have my bootdelay variable (on a DVEVM) set to 2, and > countdown takes 32 seconds... Also iprobe got very very very slow. > Maybe more items are affected by this timer division. > > Is anybody else seeing this? Clearly when the timer is used by several > blocks, it cannot be easily divided by 16. I think we need something > else to work with the wrap around of the timer... Thanks for the report! Any idea what might be better? Thanks Dirk