]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Armv8: Initializing CNTVOFF_EL2
authorDavid Feng <fenghua@phytium.com.cn>
Mon, 2 Mar 2015 07:29:34 +0000 (15:29 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:16 +0000 (21:47 +0200)
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>
arch/arm/include/asm/macro.h

index 3cf3307b37a44333e4812705d16a344f977a5123..9bb0efa5ff04e41a345ebc8446ab509dd2c22ae3 100644 (file)
@@ -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