msm: Add support for thermal monitor on msm8974

Add thermal monitoring and mitigation to kernel boot on msm8974
to prevent thermal conditions during boot time.

Change-Id: I9db10a4a69772fdcb8f2a450044ce446da8b593c
Signed-off-by: Eugene Seah <eseah@codeaurora.org>
This commit is contained in:
Eugene Seah 2012-07-12 12:40:38 -06:00 committed by Stephen Boyd
parent a429406fd6
commit a4b6684b92
3 changed files with 12 additions and 1 deletions

View file

@ -732,6 +732,15 @@
qcom,descriptor-fifo-size = <0x1400>;
};
};
qcom,msm-thermal {
compatible = "qcom,msm-thermal";
qcom,sensor-id = <0>;
qcom,poll-ms = <250>;
qcom,limit-temp = <60>;
qcom,temp-hysteresis = <10>;
qcom,freq-step = <2>;
};
};
/include/ "msm-pm8x41-rpm-regulator.dtsi"

View file

@ -26,6 +26,7 @@
#endif
#include <linux/regulator/machine.h>
#include <linux/regulator/krait-regulator.h>
#include <linux/msm_thermal.h>
#include <asm/mach/map.h>
#include <asm/hardware/gic.h>
#include <mach/board.h>
@ -434,6 +435,7 @@ void __init msm_8974_add_drivers(void)
else
msm_clock_init(&msm8974_clock_init_data);
msm8974_init_buses();
msm_thermal_device_init();
}
static struct of_device_id irq_match[] __initdata = {

View file

@ -75,7 +75,7 @@ config THERMAL_PM8XXX
config THERMAL_MONITOR
bool "Monitor thermal state and limit CPU Frequency"
depends on THERMAL_TSENS8960
depends on THERMAL_TSENS8960 || THERMAL_TSENS8974
depends on CPU_FREQ_MSM
default n
help