Skip to content
Snippets Groups Projects
Commit 70bcb43e authored by Thierry Reding's avatar Thierry Reding Committed by Tom Warren
Browse files

armv8: Make COUNTER_FREQUENCY optional


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

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
parent b9f269f6
No related branches found
No related tags found
No related merge requests found
...@@ -54,8 +54,10 @@ reset: ...@@ -54,8 +54,10 @@ reset:
orr x0, x0, #0xf /* SCR_EL3.NS|IRQ|FIQ|EA */ orr x0, x0, #0xf /* SCR_EL3.NS|IRQ|FIQ|EA */
msr scr_el3, x0 msr scr_el3, x0
msr cptr_el3, xzr /* Enable FP/SIMD */ msr cptr_el3, xzr /* Enable FP/SIMD */
#ifdef COUNTER_FREQUENCY
ldr x0, =COUNTER_FREQUENCY ldr x0, =COUNTER_FREQUENCY
msr cntfrq_el0, x0 /* Initialize CNTFRQ */ msr cntfrq_el0, x0 /* Initialize CNTFRQ */
#endif
b 0f b 0f
2: msr vbar_el2, x0 2: msr vbar_el2, x0
mov x0, #0x33ff mov x0, #0x33ff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment