public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] ARM: tegra: Use architected timer on ARMv8
Date: Tue, 28 Jul 2015 11:35:54 +0200	[thread overview]
Message-ID: <1438076154-31892-2-git-send-email-thierry.reding@gmail.com> (raw)
In-Reply-To: <1438076154-31892-1-git-send-email-thierry.reding@gmail.com>

From: Thierry Reding <treding@nvidia.com>

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>
---
 include/configs/tegra-common.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index 7b4c0d70636e..62b047115343 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
-- 
2.4.5

  reply	other threads:[~2015-07-28  9:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 22:56 [U-Boot] [PATCH] armv8: Allow SoCs to override the generic timer Stephen Warren
2015-07-23 20:18 ` Simon Glass
2015-07-23 20:54 ` Tom Rini
2015-07-28  9:33 ` Thierry Reding
2015-07-28  9:35 ` [U-Boot] [PATCH 1/2] ARM: tegra: Initialize timer earlier Thierry Reding
2015-07-28  9:35   ` Thierry Reding [this message]
2015-08-02 21:29     ` [U-Boot] [PATCH 2/2] ARM: tegra: Use architected timer on ARMv8 Simon Glass
2015-07-28 16:08   ` [U-Boot] [PATCH 1/2] ARM: tegra: Initialize timer earlier Stephen Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1438076154-31892-2-git-send-email-thierry.reding@gmail.com \
    --to=thierry.reding@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox