Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
036e8a13
Commit
036e8a13
authored
Aug 15, 2013
by
Zhang Rui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'exynos', 'imx' and 'fixes' of .git into next
parents
aa1ab434
37713a1e
044d5c26
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
572 additions
and
0 deletions
+572
-0
Documentation/devicetree/bindings/thermal/imx-thermal.txt
Documentation/devicetree/bindings/thermal/imx-thermal.txt
+17
-0
drivers/thermal/Kconfig
drivers/thermal/Kconfig
+11
-0
drivers/thermal/Makefile
drivers/thermal/Makefile
+1
-0
drivers/thermal/cpu_cooling.c
drivers/thermal/cpu_cooling.c
+2
-0
drivers/thermal/imx_thermal.c
drivers/thermal/imx_thermal.c
+541
-0
No files found.
Documentation/devicetree/bindings/thermal/imx-thermal.txt
0 → 100644
View file @
036e8a13
* Temperature Monitor (TEMPMON) on Freescale i.MX SoCs
Required properties:
- compatible : "fsl,imx6q-thermal"
- fsl,tempmon : phandle pointer to system controller that contains TEMPMON
control registers, e.g. ANATOP on imx6q.
- fsl,tempmon-data : phandle pointer to fuse controller that contains TEMPMON
calibration data, e.g. OCOTP on imx6q. The details about calibration data
can be found in SoC Reference Manual.
Example:
tempmon {
compatible = "fsl,imx6q-tempmon";
fsl,tempmon = <&anatop>;
fsl,tempmon-data = <&ocotp>;
};
drivers/thermal/Kconfig
View file @
036e8a13
...
...
@@ -91,6 +91,17 @@ config THERMAL_EMULATION
because userland can easily disable the thermal policy by simply
flooding this sysfs node with low temperature values.
config IMX_THERMAL
tristate "Temperature sensor driver for Freescale i.MX SoCs"
depends on CPU_THERMAL
depends on MFD_SYSCON
depends on OF
help
Support for Temperature Monitor (TEMPMON) found on Freescale i.MX SoCs.
It supports one critical trip point and one passive trip point. The
cpufreq is used as the cooling device to throttle CPUs when the
passive trip is crossed.
config SPEAR_THERMAL
bool "SPEAr thermal sensor driver"
depends on PLAT_SPEAR
...
...
drivers/thermal/Makefile
View file @
036e8a13
...
...
@@ -21,6 +21,7 @@ obj-y += samsung/
obj-$(CONFIG_DOVE_THERMAL)
+=
dove_thermal.o
obj-$(CONFIG_DB8500_THERMAL)
+=
db8500_thermal.o
obj-$(CONFIG_ARMADA_THERMAL)
+=
armada_thermal.o
obj-$(CONFIG_IMX_THERMAL)
+=
imx_thermal.o
obj-$(CONFIG_DB8500_CPUFREQ_COOLING)
+=
db8500_cpufreq_cooling.o
obj-$(CONFIG_INTEL_POWERCLAMP)
+=
intel_powerclamp.o
obj-$(CONFIG_X86_PKG_TEMP_THERMAL)
+=
x86_pkg_temp_thermal.o
...
...
drivers/thermal/cpu_cooling.c
View file @
036e8a13
...
...
@@ -322,6 +322,8 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb,
if
(
cpumask_test_cpu
(
policy
->
cpu
,
&
notify_device
->
allowed_cpus
))
max_freq
=
notify_device
->
cpufreq_val
;
else
return
0
;
/* Never exceed user_policy.max */
if
(
max_freq
>
policy
->
user_policy
.
max
)
...
...
drivers/thermal/imx_thermal.c
0 → 100644
View file @
036e8a13
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment