This RFC version of the patch set is intended to share the current work about providing a thermal solution using Linux thermal infrastructure. The closest driver which has the same features and not using acpi layer is drivers/platform/x86/acerhdf.c.
For the ARM world there is no clarity for placing such files so currently I have placed the temperature sensor driver and a binding layer for cooling device, thermal zone and core thermal interfaces inside staging directory. Feel free to comment about the implementation, the directory structure and the shortcomings.
Amit Daniel Kachhap (4): ARM: Exynos4: Add thermal sensor driver for samsung exynos4 platform. ARM: Exynos4: Add thermal sensor driver platform device support ARM: Exynos4: Enable thermal sensor driver for origen board ARM: Exynos4: Add thermal interface support for linux thermal layer
arch/arm/mach-exynos4/Kconfig | 5 + arch/arm/mach-exynos4/Makefile | 3 +- arch/arm/mach-exynos4/dev-tmu.c | 71 +++ arch/arm/mach-exynos4/include/mach/exynos4-tmu.h | 75 ++++ arch/arm/mach-exynos4/include/mach/irqs.h | 3 + arch/arm/mach-exynos4/include/mach/map.h | 1 + arch/arm/mach-exynos4/include/mach/regs-tmu.h | 58 +++ .../mach-exynos4/include/mach/thermal_interface.h | 26 ++ arch/arm/mach-exynos4/mach-origen.c | 10 + arch/arm/plat-samsung/include/plat/devs.h | 2 + drivers/staging/Kconfig | 2 + drivers/staging/Makefile | 1 + drivers/staging/thermal_exynos4/Kconfig | 12 + drivers/staging/thermal_exynos4/Makefile | 5 + drivers/staging/thermal_exynos4/sensor/Kconfig | 14 + drivers/staging/thermal_exynos4/sensor/Makefile | 4 + .../thermal_exynos4/sensor/exynos4210_tmu.c | 465 ++++++++++++++++++++ .../staging/thermal_exynos4/thermal_interface.c | 382 ++++++++++++++++ 18 files changed, 1138 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-exynos4/dev-tmu.c create mode 100644 arch/arm/mach-exynos4/include/mach/exynos4-tmu.h create mode 100644 arch/arm/mach-exynos4/include/mach/regs-tmu.h create mode 100644 arch/arm/mach-exynos4/include/mach/thermal_interface.h create mode 100644 drivers/staging/thermal_exynos4/Kconfig create mode 100644 drivers/staging/thermal_exynos4/Makefile create mode 100644 drivers/staging/thermal_exynos4/sensor/Kconfig create mode 100644 drivers/staging/thermal_exynos4/sensor/Makefile create mode 100644 drivers/staging/thermal_exynos4/sensor/exynos4210_tmu.c create mode 100644 drivers/staging/thermal_exynos4/thermal_interface.c