summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDavid Feng <fenghua@phytium.com.cn>2015-03-02 15:29:34 +0800
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2015-04-16 11:27:15 +0200
commit148822d5464b99f4996d6aa8891013b7929c50dc (patch)
tree19ba508bfdfa9a6726152383c8f519fc6865b486 /arch
parent81e9fe5a29880d7af75702291ab0f36ed5a1b054 (diff)
downloadu-boot-imx-148822d5464b99f4996d6aa8891013b7929c50dc.zip
u-boot-imx-148822d5464b99f4996d6aa8891013b7929c50dc.tar.gz
u-boot-imx-148822d5464b99f4996d6aa8891013b7929c50dc.tar.bz2
Armv8: Initializing CNTVOFF_EL2
Linux-arm64 require that CNTVOFF_EL2 should be programmed with a consistent value on all cpus. Initializing CNTVOFF_EL2 at state transition instead of start.S could prevent potential different value on cpus if ATF exist and u-boot runs at only one cpu. Signed-off-by: David Feng <fenghua@phytium.com.cn>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/macro.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/macro.h b/arch/arm/include/asm/macro.h
index 3cf3307..9bb0efa 100644
--- a/arch/arm/include/asm/macro.h
+++ b/arch/arm/include/asm/macro.h
@@ -143,6 +143,9 @@ lr .req x30
mov \xreg1, #0x33ff
msr cptr_el2, \xreg1 /* Disable coprocessor traps to EL2 */
+ /* Initialize Generic Timers */
+ msr cntvoff_el2, xzr
+
/* Initialize SCTLR_EL2
*
* setting RES1 bits (29,28,23,22,18,16,11,5,4) to 1