From: Jean-Christophe PLAGNIOL-VILLARD Date: Mon, 29 Jun 2009 22:25:21 +0200 Subject: [U-Boot] [PATCH v3] arm nomadik: use 1000 as HZ value and rewrite timer code In-Reply-To: <20090629105237.GA11969@mail.gnudd.com> References: <20090627220232.GR8587@game.jcrosoft.org> <6a60aa4cc4e40f72a235dd845d4d4a3f06f373b7.1245661681.git.rubini@unipv.it> <20090629105237.GA11969@mail.gnudd.com> Message-ID: <20090629202521.GA22980@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12:52 Mon 29 Jun , Alessandro Rubini wrote: > From: Alessandro Rubini > > This sets CONFIG_SYS_HZ to 1000 as required, and completely rewrites > timer code, which is now both correct and much smaller. Unused > functions like udelay_masked() have been removed as no driver uses > them, even the ones that are not currently active for this board. > mtu.h is copied literally from the kernel sources. > > Signed-off-by: Alessandro Rubini > Acked-by: Andrea Gallo > --- > > I've used mtu.h from kernel sources and done the other changes as requested > (the extra variable just to return it was a mishap from an earlier printf > I needed to find a misconfig). > > > for the record what is its precision now? > > it counts at 2.4MHz, so the 1000HZ tick has no approximation and udelay > is correct with sub-microsecond error. I'll use in soft_i2c, needed to > turn on the LCD light. > > cpu/arm926ejs/nomadik/mtu.h | 45 +++++++++++ if it's ok with I'll move it to include/asm-arm/arch-nomadik/ Best Regards, J.