Skip to contentSkip to conversation

intel medfield: thermal_driver

PATCH Applied Alan Cox 2 participants 2 messages Jan 25, 2011 – Feb 7, 2011 x86 platform drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 intel medfield: thermal_driver

From: Durgadoss <[email protected]>

This is the basic thermal sensor driver for Intel MID platform using the Medfield chipset. It plugs in via the thermal drivers and provides sensor readings for the device sensors.

[Polish and tidy
- Use pr_fmt
- Printing prune
- Tidy comments/spelling
- Handle errors registering with the thermal zone
- Propogate errors back from conversion more cleanly
- Remove name based hack in identifying direct channel]

---

 drivers/platform/x86/Kconfig             |    7 
 drivers/platform/x86/Makefile            |    1 
 drivers/platform/x86/intel_mid_thermal.c |  574 ++++++++++++++++++++++++++++++
 3 files changed, 582 insertions(+), 0 deletions(-)
 create mode 100644 drivers/platform/x86/intel_mid_thermal.c
drivers/platform/x86/Kconfig +7 -0
index 9515c9d..d650b1c 100644
@@ -605,6 +605,13 @@ config INTEL_MID_OCD
 	  Say Y here to support over-current detection and handling on
 	  Intel Medfield MID platforms.
 
+config INTEL_MFLD_THERMAL
+        tristate "Thermal driver for Intel Medfield platform"
+        depends on INTEL_SCU_IPC && THERMAL
+        help
+          Say Y here to enable thermal driver support for the  Intel Medfield
+          platform.
+
 config RAR_REGISTER
 	bool "Restricted Access Region Register Driver"
 	depends on PCI && X86_MRST
drivers/platform/x86/Makefile +1 -0
index 1bbb4f9..5d30d51 100644
@@ -36,4 +36,5 @@ obj-$(CONFIG_GPIO_INTEL_PMIC)	+= intel_pmic_gpio.o
 obj-$(CONFIG_XO1_RFKILL)	+= xo1-rfkill.o
 obj-$(CONFIG_IBM_RTL)		+= ibm_rtl.o
 obj-$(CONFIG_INTEL_MID_POWER_BUTTON)	+= intel_mid_powerbtn.o
+obj-$(CONFIG_INTEL_MFLD_THERMAL)   	+= intel_mid_thermal.o
 
drivers/platform/x86/intel_mid_thermal.c new file +574 -0

574 lines not on this page · raw message