]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/tmu.h
Convert CONFIG_BOOTCOUNT_ENV to Kconfig
[people/ms/u-boot.git] / include / tmu.h
1 /*
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
23 enum 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 */
37 enum 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 */
45 int tmu_init(const void *blob);
46 #endif /* _THERMAL_H_ */