1 /* arch/arm/mach-s5pv310/include/mach/regs-systimer.h
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
6 * S5PV310 System Time configutation
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef __ASM_ARCH_REGS_SYSTIMER_H
14 #define __ASM_ARCH_REGS_SYSTIMER_H
18 #define S5PV310_TCFG (S5P_VA_SYSTIMER + (0x00))
19 #define S5PV310_TCON (S5P_VA_SYSTIMER + (0x04))
20 #define S5PV310_TICNTB (S5P_VA_SYSTIMER + (0x08))
21 #define S5PV310_TICNTO (S5P_VA_SYSTIMER + (0x0C))
22 #define S5PV310_TFCNTB (S5P_VA_SYSTIMER + (0x10))
23 #define S5PV310_INT_CSTAT (S5P_VA_SYSTIMER + (0x20))
24 #define S5PV310_FRCNTB (S5P_VA_SYSTIMER + (0x24))
25 #define S5PV310_FRCNTO (S5P_VA_SYSTIMER + (0x28))
27 #define S5PV310_TCFG_TICK_SWRST (1<<16)
29 #define S5PV310_TCFG_CLKBASE_PCLK (0<<12)
30 #define S5PV310_TCFG_CLKBASE_SYS_MAIN (1<<12)
31 #define S5PV310_TCFG_CLKBASE_XRTCXTI (2<<12)
32 #define S5PV310_TCFG_CLKBASE_MASK (3<<12)
33 #define S5PV310_TCFG_CLKBASE_SHIFT (12)
35 #define S5PV310_TCFG_PRESCALER_MASK (255<<0)
37 #define S5PV310_TCFG_MUX_DIV1 (0<<8)
38 #define S5PV310_TCFG_MUX_MASK (7<<8)
40 #define S5PV310_TCON_FRC_START (1<<6)
41 #define S5PV310_TCON_TICK_INT_START (1<<3)
42 #define S5PV310_TCON_TICK_START (1<<0)
44 #define S5PV310_INT_FRC_EN (1<<9)
45 #define S5PV310_INT_TICK_EN (1<<8)
46 #define S5PV310_INT_FRC_STATUS (1<<2)
47 #define S5PV310_INT_TICK_STATUS (1<<1)
48 #define S5PV310_INT_EN (1<<0)
50 #endif /* __ASM_ARCH_REGS_SYSTIMER_H */