Skip to content

Commit 939ca9f

Browse files
committed
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal
Pull thermal SoC updates from Eduardo Valentin: "This is a really small pull in the midst of a lot of pending patches. We are in the middle of restructuring how we are maintaining the thermal subsystem, as per discussion in our last LPC. For now, I am sending just some changes that were pending in my tree. Looking forward to get a more streamlined process in the next merge window" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal: thermal: db8500: Rewrite to be a pure OF sensor thermal: db8500: Use dev helper variable thermal: db8500: Finalize device tree conversion thermal: thermal_mmio: remove some dead code
2 parents 9ecb3e1 + 6c375ec commit 939ca9f

File tree

5 files changed

+114
-463
lines changed

5 files changed

+114
-463
lines changed

drivers/mfd/db8500-prcmu.c

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include <linux/regulator/db8500-prcmu.h>
3737
#include <linux/regulator/machine.h>
3838
#include <linux/platform_data/ux500_wdt.h>
39-
#include <linux/platform_data/db8500_thermal.h>
4039
#include "dbx500-prcmu-regs.h"
4140

4241
/* Index of different voltages to be used when accessing AVSData */
@@ -3014,53 +3013,6 @@ static struct ux500_wdt_data db8500_wdt_pdata = {
30143013
.timeout = 600, /* 10 minutes */
30153014
.has_28_bits_resolution = true,
30163015
};
3017-
/*
3018-
* Thermal Sensor
3019-
*/
3020-
3021-
static struct resource db8500_thsens_resources[] = {
3022-
{
3023-
.name = "IRQ_HOTMON_LOW",
3024-
.start = IRQ_PRCMU_HOTMON_LOW,
3025-
.end = IRQ_PRCMU_HOTMON_LOW,
3026-
.flags = IORESOURCE_IRQ,
3027-
},
3028-
{
3029-
.name = "IRQ_HOTMON_HIGH",
3030-
.start = IRQ_PRCMU_HOTMON_HIGH,
3031-
.end = IRQ_PRCMU_HOTMON_HIGH,
3032-
.flags = IORESOURCE_IRQ,
3033-
},
3034-
};
3035-
3036-
static struct db8500_thsens_platform_data db8500_thsens_data = {
3037-
.trip_points[0] = {
3038-
.temp = 70000,
3039-
.type = THERMAL_TRIP_ACTIVE,
3040-
.cdev_name = {
3041-
[0] = "thermal-cpufreq-0",
3042-
},
3043-
},
3044-
.trip_points[1] = {
3045-
.temp = 75000,
3046-
.type = THERMAL_TRIP_ACTIVE,
3047-
.cdev_name = {
3048-
[0] = "thermal-cpufreq-0",
3049-
},
3050-
},
3051-
.trip_points[2] = {
3052-
.temp = 80000,
3053-
.type = THERMAL_TRIP_ACTIVE,
3054-
.cdev_name = {
3055-
[0] = "thermal-cpufreq-0",
3056-
},
3057-
},
3058-
.trip_points[3] = {
3059-
.temp = 85000,
3060-
.type = THERMAL_TRIP_CRITICAL,
3061-
},
3062-
.num_trips = 4,
3063-
};
30643016

30653017
static const struct mfd_cell common_prcmu_devs[] = {
30663018
{
@@ -3084,10 +3036,7 @@ static const struct mfd_cell db8500_prcmu_devs[] = {
30843036
},
30853037
{
30863038
.name = "db8500-thermal",
3087-
.num_resources = ARRAY_SIZE(db8500_thsens_resources),
3088-
.resources = db8500_thsens_resources,
3089-
.platform_data = &db8500_thsens_data,
3090-
.pdata_size = sizeof(db8500_thsens_data),
3039+
.of_compatible = "stericsson,db8500-thermal",
30913040
},
30923041
};
30933042

drivers/thermal/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ config DOVE_THERMAL
310310

311311
config DB8500_THERMAL
312312
tristate "DB8500 thermal management"
313-
depends on MFD_DB8500_PRCMU
313+
depends on MFD_DB8500_PRCMU && OF
314314
default y
315315
help
316316
Adds DB8500 thermal management implementation according to the thermal

0 commit comments

Comments
 (0)