summaryrefslogtreecommitdiffstats
path: root/include/configs
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-07-28 11:35:54 +0200
committerTom Warren <twarren@nvidia.com>2015-07-28 10:30:18 -0700
commitf41f0a1918fcb7f6fa0a8d4182dc4b7c6aca48bb (patch)
tree4b2205e94aa79aa640f794784ccbe2e799d8f28a /include/configs
parentaa4418770ef9c143b0027e5038c690539b0ebb1a (diff)
downloadtalos-obmc-uboot-f41f0a1918fcb7f6fa0a8d4182dc4b7c6aca48bb.tar.gz
talos-obmc-uboot-f41f0a1918fcb7f6fa0a8d4182dc4b7c6aca48bb.zip
ARM: tegra: Use architected timer on ARMv8
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>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/tegra-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index 49fa8b3210..ffe167e85a 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -18,8 +18,11 @@
#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
OpenPOWER on IntegriCloud