public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/6] armv8: Make COUNTER_FREQUENCY optional
@ 2015-08-20  9:42 Thierry Reding
  2015-08-20  9:42 ` [U-Boot] [PATCH 2/6] ARM: tegra: Implement clk_m Thierry Reding
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Thierry Reding @ 2015-08-20  9:42 UTC (permalink / raw)
  To: u-boot

From: Thierry Reding <treding@nvidia.com>

Some platforms have the means to determine the counter frequency at
runtime, so give them an opportunity to do so.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 arch/arm/cpu/armv8/start.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S
index e70bed462a59..da45d984d01a 100644
--- a/arch/arm/cpu/armv8/start.S
+++ b/arch/arm/cpu/armv8/start.S
@@ -54,8 +54,10 @@ reset:
 	orr	x0, x0, #0xf			/* SCR_EL3.NS|IRQ|FIQ|EA */
 	msr	scr_el3, x0
 	msr	cptr_el3, xzr			/* Enable FP/SIMD */
+#ifdef COUNTER_FREQUENCY
 	ldr	x0, =COUNTER_FREQUENCY
 	msr	cntfrq_el0, x0			/* Initialize CNTFRQ */
+#endif
 	b	0f
 2:	msr	vbar_el2, x0
 	mov	x0, #0x33ff
-- 
2.4.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-08-27 17:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20  9:42 [U-Boot] [PATCH 1/6] armv8: Make COUNTER_FREQUENCY optional Thierry Reding
2015-08-20  9:42 ` [U-Boot] [PATCH 2/6] ARM: tegra: Implement clk_m Thierry Reding
2015-08-20 14:58   ` Stephen Warren
2015-08-20 16:20     ` Tom Warren
2015-08-27 17:08     ` Tom Warren
2015-08-20  9:42 ` [U-Boot] [PATCH 3/6] ARM: tegra: clk_m is the architected timer source clock Thierry Reding
2015-08-20  9:42 ` [U-Boot] [PATCH 4/6] e2220-1170: Remove hard-coded counter frequency Thierry Reding
2015-08-20  9:42 ` [U-Boot] [PATCH 5/6] p2371: " Thierry Reding
2015-08-20 15:33   ` Stephen Warren
2015-08-20  9:42 ` [U-Boot] [PATCH 6/6] p2571: " Thierry Reding
2015-08-20 15:32 ` [U-Boot] [PATCH 1/6] armv8: Make COUNTER_FREQUENCY optional Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox