intel medfield: thermal_driver
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.
Signed-off-by Durgadoss R <[email protected]>
[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]
Signed-off-by Alan Cox <[email protected]>
---
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
@@ -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
@@ -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
Matthew Garrett
AppliedApplied, thanks.
Signature · 1 line
Matthew Garrett | [email protected]