aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/samsung/exynos_thermal_common.c1
-rw-r--r--drivers/thermal/samsung/exynos_thermal_common.h16
-rw-r--r--drivers/thermal/samsung/exynos_tmu.c2
-rw-r--r--drivers/thermal/samsung/exynos_tmu.h (renamed from include/linux/platform_data/exynos_thermal.h)26
4 files changed, 24 insertions, 21 deletions
diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c
index f20f458be0a0..c9edc307dcf3 100644
--- a/drivers/thermal/samsung/exynos_thermal_common.c
+++ b/drivers/thermal/samsung/exynos_thermal_common.c
@@ -22,7 +22,6 @@
22 22
23#include <linux/cpu_cooling.h> 23#include <linux/cpu_cooling.h>
24#include <linux/err.h> 24#include <linux/err.h>
25#include <linux/platform_data/exynos_thermal.h>
26#include <linux/slab.h> 25#include <linux/slab.h>
27#include <linux/thermal.h> 26#include <linux/thermal.h>
28 27
diff --git a/drivers/thermal/samsung/exynos_thermal_common.h b/drivers/thermal/samsung/exynos_thermal_common.h
index 8df18486078c..57ce33b39b54 100644
--- a/drivers/thermal/samsung/exynos_thermal_common.h
+++ b/drivers/thermal/samsung/exynos_thermal_common.h
@@ -44,6 +44,22 @@
44 44
45#define EXYNOS_ZONE_COUNT 3 45#define EXYNOS_ZONE_COUNT 3
46 46
47/**
48 * struct freq_clip_table
49 * @freq_clip_max: maximum frequency allowed for this cooling state.
50 * @temp_level: Temperature level at which the temperature clipping will
51 * happen.
52 * @mask_val: cpumask of the allowed cpu's where the clipping will take place.
53 *
54 * This structure is required to be filled and passed to the
55 * cpufreq_cooling_unregister function.
56 */
57struct freq_clip_table {
58 unsigned int freq_clip_max;
59 unsigned int temp_level;
60 const struct cpumask *mask_val;
61};
62
47struct thermal_trip_point_conf { 63struct thermal_trip_point_conf {
48 int trip_val[MAX_TRIP_COUNT]; 64 int trip_val[MAX_TRIP_COUNT];
49 int trip_count; 65 int trip_count;
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
index 2b2cc333cd7d..568c31d0d1cb 100644
--- a/drivers/thermal/samsung/exynos_tmu.c
+++ b/drivers/thermal/samsung/exynos_tmu.c
@@ -27,9 +27,9 @@
27#include <linux/module.h> 27#include <linux/module.h>
28#include <linux/of.h> 28#include <linux/of.h>
29#include <linux/platform_device.h> 29#include <linux/platform_device.h>
30#include <linux/platform_data/exynos_thermal.h>
31 30
32#include "exynos_thermal_common.h" 31#include "exynos_thermal_common.h"
32#include "exynos_tmu.h"
33 33
34/* Exynos generic registers */ 34/* Exynos generic registers */
35#define EXYNOS_TMU_REG_TRIMINFO 0x0 35#define EXYNOS_TMU_REG_TRIMINFO 0x0
diff --git a/include/linux/platform_data/exynos_thermal.h b/drivers/thermal/samsung/exynos_tmu.h
index da7e6274b175..1857609518f2 100644
--- a/include/linux/platform_data/exynos_thermal.h
+++ b/drivers/thermal/samsung/exynos_tmu.h
@@ -1,8 +1,9 @@
1/* 1/*
2 * exynos_thermal.h - Samsung EXYNOS TMU (Thermal Management Unit) 2 * exynos_tmu.h - Samsung EXYNOS TMU (Thermal Management Unit)
3 * 3 *
4 * Copyright (C) 2011 Samsung Electronics 4 * Copyright (C) 2011 Samsung Electronics
5 * Donggeun Kim <dg77.kim@samsung.com> 5 * Donggeun Kim <dg77.kim@samsung.com>
6 * Amit Daniel Kachhap <amit.daniel@samsung.com>
6 * 7 *
7 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
@@ -19,10 +20,12 @@
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */ 21 */
21 22
22#ifndef _LINUX_EXYNOS_THERMAL_H 23#ifndef _EXYNOS_TMU_H
23#define _LINUX_EXYNOS_THERMAL_H 24#define _EXYNOS_TMU_H
24#include <linux/cpu_cooling.h> 25#include <linux/cpu_cooling.h>
25 26
27#include "exynos_thermal_common.h"
28
26enum calibration_type { 29enum calibration_type {
27 TYPE_ONE_POINT_TRIMMING, 30 TYPE_ONE_POINT_TRIMMING,
28 TYPE_TWO_POINT_TRIMMING, 31 TYPE_TWO_POINT_TRIMMING,
@@ -33,21 +36,6 @@ enum soc_type {
33 SOC_ARCH_EXYNOS4210 = 1, 36 SOC_ARCH_EXYNOS4210 = 1,
34 SOC_ARCH_EXYNOS, 37 SOC_ARCH_EXYNOS,
35}; 38};
36/**
37 * struct freq_clip_table
38 * @freq_clip_max: maximum frequency allowed for this cooling state.
39 * @temp_level: Temperature level at which the temperature clipping will
40 * happen.
41 * @mask_val: cpumask of the allowed cpu's where the clipping will take place.
42 *
43 * This structure is required to be filled and passed to the
44 * cpufreq_cooling_unregister function.
45 */
46struct freq_clip_table {
47 unsigned int freq_clip_max;
48 unsigned int temp_level;
49 const struct cpumask *mask_val;
50};
51 39
52/** 40/**
53 * struct exynos_tmu_platform_data 41 * struct exynos_tmu_platform_data
@@ -116,4 +104,4 @@ struct exynos_tmu_platform_data {
116 struct freq_clip_table freq_tab[4]; 104 struct freq_clip_table freq_tab[4];
117 unsigned int freq_tab_count; 105 unsigned int freq_tab_count;
118}; 106};
119#endif /* _LINUX_EXYNOS_THERMAL_H */ 107#endif /* _EXYNOS_TMU_H */