summaryrefstree
path: root/kernel/include/dt-bindings/thermal/thermal.h
blob: 025dd969b9ab6ed8a64f67b5779dfc4e4cc6c065 (plain)
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
/*
 * This header provides constants for most thermal bindings.
 *
 * Copyright (C) 2013 Texas Instruments
 *	Eduardo Valentin <eduardo.valentin@ti.com>
 *
 * GPLv2 only
 */

#ifndef _DT_BINDINGS_THERMAL_THERMAL_H
#define _DT_BINDINGS_THERMAL_THERMAL_H

/* On cooling devices upper and lower limits */
#define THERMAL_NO_LIMIT		(-1UL)
#define TABLE_END			(~1)

#define THROTTLE_ACTIVE			(1)
#define THROTTLE_PASSIVE		(2)
#define SW_TRIP				(3)
#define HW_TRIP				(4)

#define DISABLE				(0)
#define ENABLE				(1)

#define NORMAL_SENSOR	(0)
#define VIRTUAL_SENSOR	(1)

#endif