upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / mach-s5pv310 / include / mach / regs-tmu.h
1 /* linux/arch/arm/mach-s5pv310/include/mach/regs-thermal.h
2
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 *      http://www.samsung.com/
5 *
6 * S5PV310 - Clock register definitions
7 *
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.
11 */
12
13 #ifndef __ASM_ARCH_REGS_THERMAL_H
14 #define __ASM_ARCH_REGS_THERMAL_H __FILE__
15
16 #define TRIMINFO                         (0x0)
17
18 #define TMU_CON0                         (0x20)
19 #define TMU_STATUS                       (0x28)
20 #define SAMPLING_INTERNAL        (0x2C)
21 #define CNT_VALUE0                       (0x30)
22 #define CNT_VALUE1                       (0x34)
23
24 #define CURRENT_TEMP             (0x40)
25 #define THRESHOLD_TEMP           (0x44)
26
27 #define TRG_LEV0                         (0x50)
28 #define TRG_LEV1                         (0x54)
29 #define TRG_LEV2                         (0x58)
30 #define TRG_LEV3                         (0x5C)
31
32 #define PAST_TMEP0                       (0x60)
33 #define PAST_TMEP1                       (0x64)
34 #define PAST_TMEP2                       (0x68)
35 #define PAST_TMEP3                       (0x6C)
36
37 #define INTEN                            (0x70)
38 #define INTSTAT                          (0x74)
39 #define INTCLEAR                         (0x78)
40
41 #define INTEN0              (1)
42 #define INTEN1              (1<<4)
43 #define INTEN2              (1<<8)
44 #define INTEN3              (1<<12)
45
46 #define INTSTAT0              (1)
47 #define INTSTAT1              (1<<4)
48 #define INTSTAT2              (1<<8)
49 #define INTSTAT3              (1<<12)
50
51 #define TRIM_TEMP_MASK          (0xFF)
52
53 #define INTCLEAR0                       (1)
54 #define INTCLEAR1                       (1<<4)
55 #define INTCLEAR2                       (1<<8)
56 #define INTCLEAR3                       (1<<12)
57 #define INTCLEARALL                     (INTCLEAR0 | INTCLEAR1 |\
58                                                         INTCLEAR2 | INTCLEAR2)
59
60 #endif