1 /* arch/arm/mach-s5pv310/include/mach/regs-mct.h
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
6 * S5PV310 MCT 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_MCT_H
14 #define __ASM_ARCH_REGS_MCT_H
18 #define S5PV310_MCT_CFG (S5P_VA_SYSTIMER + 0x00)
19 #define S5PV310_MCT_G_CNT_L (S5P_VA_SYSTIMER + 0x100)
20 #define S5PV310_MCT_G_CNT_U (S5P_VA_SYSTIMER + 0x104)
21 #define S5PV310_MCT_G_CNT_WSTAT (S5P_VA_SYSTIMER + 0x110)
22 #define G_CNT_U_STAT (1 << 1)
23 #define G_CNT_L_STAT (1 << 0)
25 #define S5PV310_MCT_G_TCON (S5P_VA_SYSTIMER + 0x240)
26 #define G_TCON_START (1 << 8)
28 #define S5PV310_MCT_G_INT_CSTAT (S5P_VA_SYSTIMER + 0x244)
29 #define S5PV310_MCT_G_INT_ENB (S5P_VA_SYSTIMER + 0x248)
30 #define S5PV310_MCT_G_WSTAT (S5P_VA_SYSTIMER + 0x24C)
31 #define G_WSTAT_TCON_STAT (1 << 16)
33 #define S5PV310_MCT_L0_TCNTB (S5P_VA_SYSTIMER + 0x300)
34 #define S5PV310_MCT_L0_TCNTO (S5P_VA_SYSTIMER + 0x304)
35 #define S5PV310_MCT_L0_ICNTB (S5P_VA_SYSTIMER + 0x308)
36 #define S5PV310_MCT_L0_ICNTO (S5P_VA_SYSTIMER + 0x30C)
37 #define S5PV310_MCT_L0_FRCNTB (S5P_VA_SYSTIMER + 0x310)
38 #define S5PV310_MCT_L0_FRCNTO (S5P_VA_SYSTIMER + 0x314)
39 #define S5PV310_MCT_L0_TCON (S5P_VA_SYSTIMER + 0x320)
41 #define S5PV310_MCT_L0_INT_CSTAT (S5P_VA_SYSTIMER + 0x330)
42 #define S5PV310_MCT_L0_INT_ENB (S5P_VA_SYSTIMER + 0x334)
43 #define S5PV310_MCT_L0_WSTAT (S5P_VA_SYSTIMER + 0x340)
45 #define S5PV310_MCT_L1_TCNTB (S5P_VA_SYSTIMER + 0x400)
46 #define S5PV310_MCT_L1_TCNTO (S5P_VA_SYSTIMER + 0x404)
47 #define S5PV310_MCT_L1_ICNTB (S5P_VA_SYSTIMER + 0x408)
48 #define S5PV310_MCT_L1_ICNTO (S5P_VA_SYSTIMER + 0x40C)
49 #define S5PV310_MCT_L1_FRCNTB (S5P_VA_SYSTIMER + 0x410)
50 #define S5PV310_MCT_L1_FRCNTO (S5P_VA_SYSTIMER + 0x414)
51 #define S5PV310_MCT_L1_TCON (S5P_VA_SYSTIMER + 0x420)
52 #define S5PV310_MCT_L1_INT_CSTAT (S5P_VA_SYSTIMER + 0x430)
53 #define S5PV310_MCT_L1_INT_ENB (S5P_VA_SYSTIMER + 0x434)
54 #define S5PV310_MCT_L1_WSTAT (S5P_VA_SYSTIMER + 0x440)
56 #define L_TCON_INTERVAL_MODE (1 << 2)
57 #define L_TCON_INT_START (1 << 1)
58 #define L_TCON_TIMER_START (1 << 0)
60 #define L_INT_ENB_CNTIE (1 << 0)
62 #define L_TCON_STAT (1 << 3)
63 #define L_ICNTB_STAT (1 << 1)
64 #define L_TCNTB_STAT (1 << 0)
66 #define L_UPDATE_ICNTB (1 << 31)
68 #endif /* __ASM_ARCH_REGS_MCT_H */