From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Wed, 25 Feb 2015 16:10:51 -0700 Subject: [U-Boot] [PATCH 04/20] tegra: Provide more accurate microsecond time In-Reply-To: <1424212195-7501-5-git-send-email-sjg@chromium.org> References: <1424212195-7501-1-git-send-email-sjg@chromium.org> <1424212195-7501-5-git-send-email-sjg@chromium.org> Message-ID: <54EE567B.5090609@wwwdotorg.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 02/17/2015 03:29 PM, Simon Glass wrote: > Add an implementation of the timer functions for tegra, so that timing > is more accurate. Tegra has a 1 microsecond timer for this purpose. I'm a bit confused about this: include/configs/tegra-common.h:32:#define CONFIG_SYS_TIMER_COUNTER NV_PA_TMRUS_BASE lib/time.c: #ifdef CONFIG_SYS_TIMER_COUNTER unsigned long notrace timer_read_counter(void) { #ifdef CONFIG_SYS_TIMER_COUNTS_DOWN return ~readl(CONFIG_SYS_TIMER_COUNTER); #else return readl(CONFIG_SYS_TIMER_COUNTER); #endif } Doesn't that provide the same set of features, without requiring Tegra-specific code?