upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / plat-s5p / include / plat / s5p-tmu.h
1 /* linux/arch/arm/plat-s5p/include/plat/s5p-tmu.h\r
2 *\r
3 * Copyright 2010 Samsung Electronics Co., Ltd.\r
4 *      http://www.samsung.com/\r
5 *\r
6 * S5P - TMU driver support\r
7 *\r
8 * This program is free software; you can redistribute it and/or modify\r
9 * it under the terms of the GNU General Public License version 2 as\r
10 * published by the Free Software Foundation.\r
11 */\r
12 \r
13 #ifndef _S5PV310_THERMAL_H\r
14 #define _S5PV310_THERMAL_H\r
15 \r
16 struct tmu_data {\r
17         char    te1;                    /* e-fused temperature for 25 */\r
18         char    te2;                    /* e-fused temperature for 85 */\r
19         int     cooling;\r
20         int     mode;                   /* compensation mode */\r
21         int     tmu_flag;\r
22 };\r
23 \r
24 struct s5p_tmu {\r
25         int                             id;\r
26         void __iomem            *tmu_base;\r
27         char                    temperature;\r
28         struct device           *dev;\r
29         struct tmu_data         data;\r
30 };\r
31 \r
32 extern void s5p_tmu_set_platdata(struct tmu_data *pd);\r
33 extern struct s5p_tmu *s5p_tmu_get_platdata(void);\r
34 extern int s5p_tmu_get_irqno(int num);\r
35 \r
36 #endif /* _S5PV310_THERMAL_H */\r