1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2b501fd7bSArnd Bergmann /* 3b501fd7bSArnd Bergmann * Timers Module 4b501fd7bSArnd Bergmann */ 5b501fd7bSArnd Bergmann 6b501fd7bSArnd Bergmann #ifndef __ASM_MACH_REGS_TIMERS_H 7b501fd7bSArnd Bergmann #define __ASM_MACH_REGS_TIMERS_H 8b501fd7bSArnd Bergmann 9b501fd7bSArnd Bergmann #define TMR_CCR (0x0000) 10b501fd7bSArnd Bergmann #define TMR_TN_MM(n, m) (0x0004 + ((n) << 3) + (((n) + (m)) << 2)) 11b501fd7bSArnd Bergmann #define TMR_CR(n) (0x0028 + ((n) << 2)) 12b501fd7bSArnd Bergmann #define TMR_SR(n) (0x0034 + ((n) << 2)) 13b501fd7bSArnd Bergmann #define TMR_IER(n) (0x0040 + ((n) << 2)) 14b501fd7bSArnd Bergmann #define TMR_PLVR(n) (0x004c + ((n) << 2)) 15b501fd7bSArnd Bergmann #define TMR_PLCR(n) (0x0058 + ((n) << 2)) 16b501fd7bSArnd Bergmann #define TMR_WMER (0x0064) 17b501fd7bSArnd Bergmann #define TMR_WMR (0x0068) 18b501fd7bSArnd Bergmann #define TMR_WVR (0x006c) 19b501fd7bSArnd Bergmann #define TMR_WSR (0x0070) 20b501fd7bSArnd Bergmann #define TMR_ICR(n) (0x0074 + ((n) << 2)) 21b501fd7bSArnd Bergmann #define TMR_WICR (0x0080) 22b501fd7bSArnd Bergmann #define TMR_CER (0x0084) 23b501fd7bSArnd Bergmann #define TMR_CMR (0x0088) 24b501fd7bSArnd Bergmann #define TMR_ILR(n) (0x008c + ((n) << 2)) 25b501fd7bSArnd Bergmann #define TMR_WCR (0x0098) 26b501fd7bSArnd Bergmann #define TMR_WFAR (0x009c) 27b501fd7bSArnd Bergmann #define TMR_WSAR (0x00A0) 28b501fd7bSArnd Bergmann #define TMR_CVWR(n) (0x00A4 + ((n) << 2)) 29b501fd7bSArnd Bergmann 30b501fd7bSArnd Bergmann #define TMR_CCR_CS_0(x) (((x) & 0x3) << 0) 31b501fd7bSArnd Bergmann #define TMR_CCR_CS_1(x) (((x) & 0x7) << 2) 32b501fd7bSArnd Bergmann #define TMR_CCR_CS_2(x) (((x) & 0x3) << 5) 33b501fd7bSArnd Bergmann 34b501fd7bSArnd Bergmann #endif /* __ASM_MACH_REGS_TIMERS_H */ 35