52 lines
2.0 KiB
Diff
52 lines
2.0 KiB
Diff
From 6365da91ca9b08baabe09bfac2803edbc73d3843 Mon Sep 17 00:00:00 2001
|
|
From: memeka <mihailescu2m@gmail.com>
|
|
Date: Tue, 10 Jul 2018 22:13:03 +0930
|
|
Subject: [PATCH 030/109] ODROID-XU4: thermal: exynos: add support for 8 trip
|
|
points on Exynos5422 TMU
|
|
|
|
Change-Id: I6014d6d3fdecb6f58c6160f79ac969c6816f365d
|
|
Signed-off-by: memeka <mihailescu2m@gmail.com>
|
|
---
|
|
drivers/thermal/samsung/exynos_tmu.c | 18 ++++++++++++++++--
|
|
1 file changed, 16 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
|
|
index e9a90bc23b11..b49df21fa0e7 100644
|
|
--- a/drivers/thermal/samsung/exynos_tmu.c
|
|
+++ b/drivers/thermal/samsung/exynos_tmu.c
|
|
@@ -915,8 +915,6 @@ static int exynos_map_dt_data(struct platform_device *pdev)
|
|
case SOC_ARCH_EXYNOS4412:
|
|
case SOC_ARCH_EXYNOS5250:
|
|
case SOC_ARCH_EXYNOS5260:
|
|
- case SOC_ARCH_EXYNOS5420:
|
|
- case SOC_ARCH_EXYNOS5420_TRIMINFO:
|
|
data->tmu_set_trip_temp = exynos4412_tmu_set_trip_temp;
|
|
data->tmu_set_trip_hyst = exynos4412_tmu_set_trip_hyst;
|
|
data->tmu_initialize = exynos4412_tmu_initialize;
|
|
@@ -935,6 +933,22 @@ static int exynos_map_dt_data(struct platform_device *pdev)
|
|
data->min_efuse_value = 0;
|
|
data->max_efuse_value = 100;
|
|
break;
|
|
+ case SOC_ARCH_EXYNOS5420:
|
|
+ case SOC_ARCH_EXYNOS5420_TRIMINFO:
|
|
+ data->tmu_set_trip_temp = exynos4412_tmu_set_trip_temp;
|
|
+ data->tmu_set_trip_hyst = exynos4412_tmu_set_trip_hyst;
|
|
+ data->tmu_initialize = exynos4412_tmu_initialize;
|
|
+ data->tmu_control = exynos4210_tmu_control;
|
|
+ data->tmu_read = exynos4412_tmu_read;
|
|
+ data->tmu_set_emulation = exynos4412_tmu_set_emulation;
|
|
+ data->tmu_clear_irqs = exynos4210_tmu_clear_irqs;
|
|
+ data->ntrip = 8;
|
|
+ data->gain = 8;
|
|
+ data->reference_voltage = 16;
|
|
+ data->efuse_value = 55;
|
|
+ data->min_efuse_value = 16;
|
|
+ data->max_efuse_value = 76;
|
|
+ break;
|
|
case SOC_ARCH_EXYNOS5433:
|
|
data->tmu_set_trip_temp = exynos5433_tmu_set_trip_temp;
|
|
data->tmu_set_trip_hyst = exynos5433_tmu_set_trip_hyst;
|
|
--
|
|
2.25.1
|
|
|