blob: e07ee3e9d2aa1f8ebcc25f9a2cdba464ed4729d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
/* linux/arch/arm/mach-exynos/include/mach/regs-tmu.h
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* EXYNOS4 - Thermal Management support
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_REGS_THERMAL_H
#define __ASM_ARCH_REGS_THERMAL_H __FILE__
#define TRIMINFO (0x0)
#define TMU_CON (0x20)
#define TMU_STATUS (0x28)
#define SAMPLING_INTERNAL (0x2C)
#define CNT_VALUE0 (0x30)
#define CNT_VALUE1 (0x34)
#define CURRENT_TEMP (0x40)
#define TRIMINFO_CON (0x14)
#define THD_TEMP_RISE (0x50)
#define THD_TEMP_FALL (0x54)
#define PAST_TMEP0 (0x60)
#define PAST_TMEP1 (0x64)
#define PAST_TMEP2 (0x68)
#define PAST_TMEP3 (0x6C)
#define INTEN (0x70)
#define INTSTAT (0x74)
#define INTCLEAR (0x78)
#define EMUL_CON (0x80)
#define TRIMINFO_RELOAD (1)
#define CORE_EN (1)
#define TRIP_EN (1<<12)
#define TRIP_ONLYCURRENT (0<<13)
#define TRIP_CUR_PAST3_0 (4<<13)
#define TRIP_CUR_PAST7_0 (5<<13)
#define TRIP_CUR_PAST11_0 (6<<13)
#define TRIP_CUR_PAST15_0 (7<<13)
#define INTEN_RISE0 (1)
#define INTEN_RISE1 (1<<4)
#define INTEN_RISE2 (1<<8)
#define INTEN_FALL0 (1<<16)
#define INTEN_FALL1 (1<<20)
#define INTEN_FALL2 (1<<24)
#define INTSTAT_RISE0 (1)
#define INTSTAT_RISE1 (1<<4)
#define INTSTAT_RISE2 (1<<8)
#define INTSTAT_FALL0 (1<<16)
#define INTSTAT_FALL1 (1<<20)
#define INTSTAT_FALL2 (1<<24)
#define TRIM_INFO_MASK (0xFF)
#define INTCLEAR_RISE0 (1)
#define INTCLEAR_RISE1 (1<<4)
#define INTCLEAR_RISE2 (1<<8)
#define INTCLEAR_FALL0 (1<<16)
#define INTCLEAR_FALL1 (1<<20)
#define INTCLEAR_FALL2 (1<<24)
#define INTCLEARALL (INTCLEAR_RISE0 | INTCLEAR_RISE1 | \
INTCLEAR_RISE2 | INTCLEAR_FALL0 | \
INTCLEAR_FALL1 | INTCLEAR_FALL2)
#define EMUL_EN (1)
#endif
|