blob: da07a2211eaacb61b8c1c4ff1d1efe6c35fdfc8a [file] [log] [blame]
Akshay Saraswat39d182d2013-02-25 01:13:00 +00001/*
2 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 * Akshay Saraswat <akshay.s@samsung.com>
5 *
6 * Thermal Management Unit
7 *
8 * See file CREDITS for list of people who contributed to this
9 * project.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17 * MA 02111-1307 USA
18 */
19
20#ifndef _TMU_H
21#define _TMU_H
22
23enum tmu_status_t {
24 TMU_STATUS_INIT = -1,
25 TMU_STATUS_NORMAL = 0,
26 TMU_STATUS_WARNING,
27 TMU_STATUS_TRIPPED,
28};
29
30/*
31 * Monitors status of the TMU device and exynos temperature
32 *
33 * @param temp pointer to the current temperature value
34 * @return enum tmu_status_t value, code indicating event to execute
35 * and -1 on error
36 */
37enum tmu_status_t tmu_monitor(int *temp);
38
39/*
40 * Initialize TMU device
41 *
42 * @param blob FDT blob
43 * @return int value, 0 for success
44 */
45int tmu_init(const void *blob);
46#endif /* _THERMAL_H_ */