Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
hongbo.zhang | aa1acb0 | 2012-11-15 18:56:42 +0800 | [diff] [blame] | 2 | /* |
| 3 | * db8500_thermal.h - DB8500 Thermal Management Implementation |
| 4 | * |
| 5 | * Copyright (C) 2012 ST-Ericsson |
| 6 | * Copyright (C) 2012 Linaro Ltd. |
| 7 | * |
| 8 | * Author: Hongbo Zhang <hongbo.zhang@linaro.com> |
hongbo.zhang | aa1acb0 | 2012-11-15 18:56:42 +0800 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _DB8500_THERMAL_H_ |
| 12 | #define _DB8500_THERMAL_H_ |
| 13 | |
| 14 | #include <linux/thermal.h> |
| 15 | |
| 16 | #define COOLING_DEV_MAX 8 |
| 17 | |
| 18 | struct db8500_trip_point { |
| 19 | unsigned long temp; |
| 20 | enum thermal_trip_type type; |
| 21 | char cdev_name[COOLING_DEV_MAX][THERMAL_NAME_LENGTH]; |
| 22 | }; |
| 23 | |
| 24 | struct db8500_thsens_platform_data { |
| 25 | struct db8500_trip_point trip_points[THERMAL_MAX_TRIPS]; |
| 26 | int num_trips; |
| 27 | }; |
| 28 | |
| 29 | #endif /* _DB8500_THERMAL_H_ */ |