]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arm64: sysreg: add physical timer registers
authorMark Rutland <mark.rutland@arm.com>
Thu, 9 Mar 2017 16:47:06 +0000 (16:47 +0000)
committerMark Rutland <mark.rutland@arm.com>
Thu, 9 Mar 2017 16:55:26 +0000 (16:55 +0000)
This patch adds sysreg definitions for system registers used to control
the architected physical timer. Subsequent patches will make use of
these definitions.

The encodings were taken from ARM DDI 0487A.k_iss10775, Table C5-6.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/sysreg.h

index 9dc30bc06aa1741d4ee22ad8d9ba01bf21a247ff..3e281b12ec3bf079669812697d35c07a1adeaf8a 100644 (file)
 
 #define SYS_CNTFRQ_EL0                 sys_reg(3, 3, 14, 0, 0)
 
+#define SYS_CNTP_TVAL_EL0              sys_reg(3, 3, 14, 2, 0)
+#define SYS_CNTP_CTL_EL0               sys_reg(3, 3, 14, 2, 1)
+#define SYS_CNTP_CVAL_EL0              sys_reg(3, 3, 14, 2, 2)
+
 #define __PMEV_op2(n)                  ((n) & 0x7)
 #define __CNTR_CRm(n)                  (0x8 | (((n) >> 3) & 0x3))
 #define SYS_PMEVCNTRn_EL0(n)           sys_reg(3, 3, 14, __CNTR_CRm(n), __PMEV_op2(n))