From d9f151cda68a86d176b0d6773c019eeae1d58301 Mon Sep 17 00:00:00 2001 From: Amit Daniel Kachhap Date: Mon, 12 Dec 2011 10:44:36 +0530 Subject: thermal: exynos: Add thermal interface support for linux thermal layer This codes uses the generic linux thermal layer and creates a bridge between temperature sensors, linux thermal framework and cooling devices for samsung exynos platform. This layer recieves or monitor the temperature from the sensor and informs the generic thermal layer. Signed-off-by: Amit Daniel Kachhap --- include/linux/exynos_thermal.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/linux/exynos_thermal.h (limited to 'include/linux/exynos_thermal.h') diff --git a/include/linux/exynos_thermal.h b/include/linux/exynos_thermal.h new file mode 100644 index 00000000000..15f1a17453d --- /dev/null +++ b/include/linux/exynos_thermal.h @@ -0,0 +1,32 @@ +/* linux/include/linux/exynos_thermal.h + * + * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#ifndef THERMAL_INTERFACE_H +#define THERMAL_INTERFACE_H +/* CPU Zone information */ + +#define SENSOR_NAME_LEN 16 + +#define PANIC_ZONE 4 +#define WARN_ZONE 3 +#define MONITOR_ZONE 2 +#define SAFE_ZONE 1 +#define NO_ACTION 0 + +struct thermal_sensor_info { + char name[SENSOR_NAME_LEN]; + int (*read_temperature)(void *data); + void *private_data; + void *sensor_data; +}; + +extern int exynos4_register_temp_sensor(struct thermal_sensor_info *sensor); +extern void exynos4_report_trigger(void); +#endif -- cgit v1.2.3