From 1972fa967d2830dcf56ae301bb57c59a9c4fe645 Mon Sep 17 00:00:00 2001 From: Chungwoo Park Date: Thu, 4 Jan 2018 14:26:01 +0900 Subject: [PATCH] [9610] thermal : Modify tmu sensor value. This patch modified tmu sensor value to 1002X sensor. Change-Id: Id8b0bc69342de23fdfe5e59849cc01ae26483474 Signed-off-by: Chungwoo Park --- drivers/thermal/samsung/exynos_tmu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 3b569ec66935..5af713d83649 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -174,6 +174,7 @@ #define EXYNOS_TMU_CLK_SENSE_ON_MASK (0xffff) #define EXYNOS_TMU_TEM1456X_SENSE_VALUE (0x0A28) #define EXYNOS_TMU_TEM1051X_SENSE_VALUE (0x028A) +#define EXYNOS_TMU_TEM1002X_SENSE_VALUE (0x0514) #define EXYNOS_TMU_NUM_PROBE_SHIFT (16) #define EXYNOS_TMU_NUM_PROBE_MASK (0xf) @@ -744,12 +745,12 @@ static void exynos9610_tmu_control(struct platform_device *pdev, bool on) /* set COUNTER_VALUE */ counter_value = readl(data->base + EXYNOS_TMU_REG_COUNTER_VALUE0); counter_value &= ~(EXYNOS_TMU_EN_TEMP_SEN_OFF_MASK << EXYNOS_TMU_EN_TEMP_SEN_OFF_SHIFT); - counter_value |= EXYNOS_TMU_TEM1051X_SENSE_VALUE << EXYNOS_TMU_EN_TEMP_SEN_OFF_SHIFT; + counter_value |= EXYNOS_TMU_TEM1002X_SENSE_VALUE << EXYNOS_TMU_EN_TEMP_SEN_OFF_SHIFT; writel(counter_value, data->base + EXYNOS_TMU_REG_COUNTER_VALUE0); counter_value = readl(data->base + EXYNOS_TMU_REG_COUNTER_VALUE1); counter_value &= ~(EXYNOS_TMU_CLK_SENSE_ON_MASK << EXYNOS_TMU_CLK_SENSE_ON_SHIFT); - counter_value |= EXYNOS_TMU_TEM1051X_SENSE_VALUE << EXYNOS_TMU_CLK_SENSE_ON_SHIFT; + counter_value |= EXYNOS_TMU_TEM1002X_SENSE_VALUE << EXYNOS_TMU_CLK_SENSE_ON_SHIFT; writel(counter_value, data->base + EXYNOS_TMU_REG_COUNTER_VALUE1); /* set TRIM0 BGR_I/VREF/VBE_I */ -- 2.20.1