[COMMON] soc: samsung: add tmu header
authorYulgon Kim <yulgon.kim@samsung.com>
Wed, 12 Apr 2017 01:33:29 +0000 (10:33 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:09:06 +0000 (17:09 +0900)
Change-Id: Icd6bfbe5b4a89c3a9f9c196f1635220afac1269f
Signed-off-by: Yulgon Kim <yulgon.kim@samsung.com>
include/soc/samsung/tmu.h [new file with mode: 0644]

diff --git a/include/soc/samsung/tmu.h b/include/soc/samsung/tmu.h
new file mode 100644 (file)
index 0000000..903034f
--- /dev/null
@@ -0,0 +1,72 @@
+/*
+ * Copyright 2014 Samsung Electronics Co., Ltd.
+ *      http://www.samsung.com/
+ *
+ * Header file for tmu support
+ *
+ * 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 __ASM_ARCH_TMU_H
+#define __ASM_ARCH_TMU_H
+
+#define EXYNOS_MAX_TEMP                125
+#define EXYNOS_MIN_TEMP                10
+#define EXYNOS_COLD_TEMP       15
+
+enum tmu_noti_state_t {
+       TMU_NORMAL,
+       TMU_COLD,
+       TMU_HOT,
+       TMU_CRITICAL,
+};
+
+enum gpu_noti_state_t {
+       GPU_NORMAL,
+       GPU_COLD,
+       GPU_THROTTLING1,
+       GPU_THROTTLING2,
+       GPU_THROTTLING3,
+       GPU_THROTTLING4,
+       GPU_TRIPPING,
+       GPU_THROTTLING,
+};
+
+enum isp_noti_state_t {
+       ISP_NORMAL = 0,
+       ISP_COLD,
+       ISP_THROTTLING,
+       ISP_THROTTLING1,
+       ISP_THROTTLING2,
+       ISP_THROTTLING3,
+       ISP_THROTTLING4,
+       ISP_TRIPPING,
+};
+
+#ifdef CONFIG_EXYNOS_THERMAL
+extern int exynos_tmu_add_notifier(struct notifier_block *n);
+#else
+static inline int exynos_tmu_add_notifier(struct notifier_block *n)
+{
+       return 0;
+}
+#endif
+#if defined(CONFIG_GPU_THERMAL)
+extern int exynos_gpu_add_notifier(struct notifier_block *n);
+#else
+static inline int exynos_gpu_add_notifier(struct notifier_block *n)
+{
+       return 0;
+}
+#endif
+#if defined(CONFIG_ISP_THERMAL)
+extern int exynos_tmu_isp_add_notifier(struct notifier_block *n);
+#else
+static inline int exynos_tmu_isp_add_notifier(struct notifier_block *n)
+{
+       return 0;
+}
+#endif
+#endif /* __ASM_ARCH_TMU_H */