]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARM: tegra: Use architected timer on ARMv8
authorThierry Reding <treding@nvidia.com>
Tue, 28 Jul 2015 09:35:54 +0000 (11:35 +0200)
committerTom Warren <twarren@nvidia.com>
Tue, 28 Jul 2015 17:30:18 +0000 (10:30 -0700)
ARMv8 requires an architected timer to be present, so it can be used
instead of the Tegra US timer. This allows for better code reuse.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
include/configs/tegra-common.h

index 49fa8b321064e533c0512820c44d8e0b4bb4ebbf..ffe167e85ac3bcdc90617cc2ff401d33f2ef09f9 100644 (file)
 
 #include <asm/arch/tegra.h>            /* get chip and board defs */
 
+/* Use the Tegra US timer on ARMv7, but the architected timer on ARMv8. */
+#ifndef CONFIG_ARM64
 #define CONFIG_SYS_TIMER_RATE          1000000
 #define CONFIG_SYS_TIMER_COUNTER       NV_PA_TMRUS_BASE
+#endif
 
 /*
  * Display CPU and Board information