-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: OMAP4+: thermal: introduce bandgap temperature sensor
In the System Control Module, OMAP supplies a voltage reference and a temperature sensor feature that are gathered in the band gap voltage and temperature sensor (VBGAPTS) module. The band gap provides current and voltage reference for its internal circuits and other analog IP blocks. The analog-to-digital converter (ADC) produces an output value that is proportional to the silicon temperature. This patch provides a platform driver which expose this feature. It is moduled as a MFD child of the System Control Module core MFD driver. This driver provides only APIs to access the device properties, like temperature, thresholds and update rate. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: J Keerthy <j-keerthy@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information
Eduardo Valentin
authored and
Greg Kroah-Hartman
committed
Jul 17, 2012
1 parent
493aa89
commit 8feaf0c
Showing
8 changed files
with
1,666 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
config OMAP_BANDGAP | ||
tristate "Texas Instruments OMAP4+ temperature sensor driver" | ||
depends on THERMAL | ||
depends on ARCH_OMAP4 || SOC_OMAP5 | ||
help | ||
If you say yes here you get support for the Texas Instruments | ||
OMAP4460+ on die bandgap temperature sensor support. The register | ||
set is part of system control module. | ||
|
||
This includes alert interrupts generation and also the TSHUT | ||
support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
obj-$(CONFIG_OMAP_BANDGAP) += omap-thermal.o | ||
omap-thermal-y := omap-bandgap.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
List of TODOs (by Eduardo Valentin) | ||
|
||
on omap-bandgap.c: | ||
- Rework locking | ||
- Improve driver code by adding usage of regmap-mmio | ||
- Test every exposed API to userland | ||
- Add support to hwmon | ||
- Review and revisit all API exposed | ||
- Revisit PM support | ||
- Revisit data structures and simplify them | ||
- Once SCM-core api settles, update this driver accordingly | ||
|
||
on omap-thermal-common.c/omap-thermal.h: | ||
- Revisit extrapolation constants for O4/O5 | ||
- Revisit need for locking | ||
- Revisit trips and its definitions | ||
- Revisit trending | ||
|
||
on omap5-thermal.c | ||
- Add support for GPU cooling | ||
|
||
generally: | ||
- write Kconfig dependencies so that omap variants are covered | ||
- make checkpatch.pl and sparse happy | ||
- make sure this code works on OMAP4430, OMAP4460 and OMAP5430 | ||
- update documentation | ||
|
||
Copy patches to Eduardo Valentin <eduardo.valentin@ti.com> |
Oops, something went wrong.