diff options
| -rw-r--r-- | drivers/thermal/Kconfig | 11 | ||||
| -rw-r--r-- | drivers/thermal/Makefile | 1 | ||||
| -rw-r--r-- | drivers/thermal/qcom/Kconfig | 11 | ||||
| -rw-r--r-- | drivers/thermal/qcom/Makefile | 1 | ||||
| -rw-r--r-- | drivers/thermal/qcom/qcom-spmi-temp-alarm.c (renamed from drivers/thermal/qcom-spmi-temp-alarm.c) | 2 |
5 files changed, 13 insertions, 13 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 772ab9dadda7..344f6459862b 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig | |||
| @@ -374,17 +374,6 @@ config TANGO_THERMAL | |||
| 374 | 374 | ||
| 375 | source "drivers/thermal/tegra/Kconfig" | 375 | source "drivers/thermal/tegra/Kconfig" |
| 376 | 376 | ||
| 377 | config QCOM_SPMI_TEMP_ALARM | ||
| 378 | tristate "Qualcomm SPMI PMIC Temperature Alarm" | ||
| 379 | depends on OF && SPMI && IIO | ||
| 380 | select REGMAP_SPMI | ||
| 381 | help | ||
| 382 | This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) | ||
| 383 | PMIC devices. It shows up in sysfs as a thermal sensor with multiple | ||
| 384 | trip points. The temperature reported by the thermal sensor reflects the | ||
| 385 | real time die temperature if an ADC is present or an estimate of the | ||
| 386 | temperature based upon the over temperature stage value. | ||
| 387 | |||
| 388 | config GENERIC_ADC_THERMAL | 377 | config GENERIC_ADC_THERMAL |
| 389 | tristate "Generic ADC based thermal sensor" | 378 | tristate "Generic ADC based thermal sensor" |
| 390 | depends on IIO | 379 | depends on IIO |
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile index 0b5d33a49b3e..486d682be047 100644 --- a/drivers/thermal/Makefile +++ b/drivers/thermal/Makefile | |||
| @@ -29,7 +29,6 @@ thermal_sys-$(CONFIG_DEVFREQ_THERMAL) += devfreq_cooling.o | |||
| 29 | 29 | ||
| 30 | # platform thermal drivers | 30 | # platform thermal drivers |
| 31 | obj-y += broadcom/ | 31 | obj-y += broadcom/ |
| 32 | obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM) += qcom-spmi-temp-alarm.o | ||
| 33 | obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o | 32 | obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o |
| 34 | obj-$(CONFIG_ROCKCHIP_THERMAL) += rockchip_thermal.o | 33 | obj-$(CONFIG_ROCKCHIP_THERMAL) += rockchip_thermal.o |
| 35 | obj-$(CONFIG_RCAR_THERMAL) += rcar_thermal.o | 34 | obj-$(CONFIG_RCAR_THERMAL) += rcar_thermal.o |
diff --git a/drivers/thermal/qcom/Kconfig b/drivers/thermal/qcom/Kconfig index be32e5abce3c..cdb455ffd575 100644 --- a/drivers/thermal/qcom/Kconfig +++ b/drivers/thermal/qcom/Kconfig | |||
| @@ -9,3 +9,14 @@ config QCOM_TSENS | |||
| 9 | thermal zone device via the mode file results in disabling the sensor. | 9 | thermal zone device via the mode file results in disabling the sensor. |
| 10 | Also able to set threshold temperature for both hot and cold and update | 10 | Also able to set threshold temperature for both hot and cold and update |
| 11 | when a threshold is reached. | 11 | when a threshold is reached. |
| 12 | |||
| 13 | config QCOM_SPMI_TEMP_ALARM | ||
| 14 | tristate "Qualcomm SPMI PMIC Temperature Alarm" | ||
| 15 | depends on OF && SPMI && IIO | ||
| 16 | select REGMAP_SPMI | ||
| 17 | help | ||
| 18 | This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) | ||
| 19 | PMIC devices. It shows up in sysfs as a thermal sensor with multiple | ||
| 20 | trip points. The temperature reported by the thermal sensor reflects the | ||
| 21 | real time die temperature if an ADC is present or an estimate of the | ||
| 22 | temperature based upon the over temperature stage value. | ||
diff --git a/drivers/thermal/qcom/Makefile b/drivers/thermal/qcom/Makefile index a821929ede0b..717a08600bb5 100644 --- a/drivers/thermal/qcom/Makefile +++ b/drivers/thermal/qcom/Makefile | |||
| @@ -1,2 +1,3 @@ | |||
| 1 | obj-$(CONFIG_QCOM_TSENS) += qcom_tsens.o | 1 | obj-$(CONFIG_QCOM_TSENS) += qcom_tsens.o |
| 2 | qcom_tsens-y += tsens.o tsens-common.o tsens-8916.o tsens-8974.o tsens-8960.o tsens-v2.o | 2 | qcom_tsens-y += tsens.o tsens-common.o tsens-8916.o tsens-8974.o tsens-8960.o tsens-v2.o |
| 3 | obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM) += qcom-spmi-temp-alarm.o | ||
diff --git a/drivers/thermal/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c index b2d5d5bf4a9b..c1fd71dbab3e 100644 --- a/drivers/thermal/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #include <linux/regmap.h> | 23 | #include <linux/regmap.h> |
| 24 | #include <linux/thermal.h> | 24 | #include <linux/thermal.h> |
| 25 | 25 | ||
| 26 | #include "thermal_core.h" | 26 | #include "../thermal_core.h" |
| 27 | 27 | ||
| 28 | #define QPNP_TM_REG_TYPE 0x04 | 28 | #define QPNP_TM_REG_TYPE 0x04 |
| 29 | #define QPNP_TM_REG_SUBTYPE 0x05 | 29 | #define QPNP_TM_REG_SUBTYPE 0x05 |
