xref: /rk3399_rockchip-uboot/arch/arm/mach-exynos/include/mach/tmu.h (revision 783983f323730540f861413dfbea6802c88afcf8)
1*77b55e8cSThomas Abraham /*
2*77b55e8cSThomas Abraham  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
3*77b55e8cSThomas Abraham  *      http://www.samsung.com
4*77b55e8cSThomas Abraham  * Akshay Saraswat <akshay.s@samsung.com>
5*77b55e8cSThomas Abraham  *
6*77b55e8cSThomas Abraham  * EXYNOS - Thermal Management Unit
7*77b55e8cSThomas Abraham  *
8*77b55e8cSThomas Abraham  * See file CREDITS for list of people who contributed to this
9*77b55e8cSThomas Abraham  * project.
10*77b55e8cSThomas Abraham  *
11*77b55e8cSThomas Abraham  * This program is free software; you can redistribute it and/or modify
12*77b55e8cSThomas Abraham  * it under the terms of the GNU General Public License version 2 as
13*77b55e8cSThomas Abraham  * published by the Free Software Foundation.
14*77b55e8cSThomas Abraham  * You should have received a copy of the GNU General Public License
15*77b55e8cSThomas Abraham  * along with this program; if not, write to the Free Software
16*77b55e8cSThomas Abraham  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17*77b55e8cSThomas Abraham  * MA 02111-1307 USA
18*77b55e8cSThomas Abraham  */
19*77b55e8cSThomas Abraham 
20*77b55e8cSThomas Abraham #ifndef __ASM_ARCH_TMU_H
21*77b55e8cSThomas Abraham #define __ASM_ARCH_TMU_H
22*77b55e8cSThomas Abraham 
23*77b55e8cSThomas Abraham struct exynos5_tmu_reg {
24*77b55e8cSThomas Abraham 	u32 triminfo;
25*77b55e8cSThomas Abraham 	u32 rsvd1[4];
26*77b55e8cSThomas Abraham 	u32 triminfo_control;
27*77b55e8cSThomas Abraham 	u32 rsvd5[2];
28*77b55e8cSThomas Abraham 	u32 tmu_control;
29*77b55e8cSThomas Abraham 	u32 rsvd7;
30*77b55e8cSThomas Abraham 	u32 tmu_status;
31*77b55e8cSThomas Abraham 	u32 sampling_internal;
32*77b55e8cSThomas Abraham 	u32 counter_value0;
33*77b55e8cSThomas Abraham 	u32 counter_value1;
34*77b55e8cSThomas Abraham 	u32 rsvd8[2];
35*77b55e8cSThomas Abraham 	u32 current_temp;
36*77b55e8cSThomas Abraham 	u32 rsvd10[3];
37*77b55e8cSThomas Abraham 	u32 threshold_temp_rise;
38*77b55e8cSThomas Abraham 	u32 threshold_temp_fall;
39*77b55e8cSThomas Abraham 	u32 rsvd13[2];
40*77b55e8cSThomas Abraham 	u32 past_temp3_0;
41*77b55e8cSThomas Abraham 	u32 past_temp7_4;
42*77b55e8cSThomas Abraham 	u32 past_temp11_8;
43*77b55e8cSThomas Abraham 	u32 past_temp15_12;
44*77b55e8cSThomas Abraham 	u32 inten;
45*77b55e8cSThomas Abraham 	u32 intstat;
46*77b55e8cSThomas Abraham 	u32 intclear;
47*77b55e8cSThomas Abraham 	u32 rsvd15;
48*77b55e8cSThomas Abraham 	u32 emul_con;
49*77b55e8cSThomas Abraham };
50*77b55e8cSThomas Abraham #endif /* __ASM_ARCH_TMU_H */
51