[9610] thermal : Modify tmu sensor value.
authorChungwoo Park <cww.park@samsung.com>
Thu, 4 Jan 2018 05:26:01 +0000 (14:26 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:22:31 +0000 (17:22 +0900)
This patch modified tmu sensor value to 1002X sensor.

Change-Id: Id8b0bc69342de23fdfe5e59849cc01ae26483474
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index 3b569ec66935c7e3c465c9423a17a95a9235b47c..5af713d836491121ec1d51f7e62179b27dece8dc 100644 (file)
 #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 */