From c171aa80d5154d574d7a2dc018242ab3b7409201 Mon Sep 17 00:00:00 2001 From: Soomin Kim Date: Tue, 12 Jul 2016 17:18:25 +0900 Subject: [PATCH] [8895] thermal: samsung: Disable TMU core EN Before set the TMU control register, disable enable bit to abnormal operation. Change-Id: Ic2979d3149581a5020c21c593e207ed9ef1fe972 Signed-off-by: Soomin Kim --- drivers/thermal/samsung/exynos_tmu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index c19b3180ce60..593d61927b68 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -582,6 +582,12 @@ static void exynos8895_tmu_control(struct platform_device *pdev, bool on) int i; u32 avg_con, avg_sel; + con = readl(data->base + EXYNOS_TMU_REG_CONTROL); + con &= ~(1 << EXYNOS_TMU_CORE_EN_SHIFT); + con &= ~(1 << EXYNOS_TMU_THERM_TRIP_EN_SHIFT); + writel(con, data->base + EXYNOS_TMU_REG_CONTROL); + con = 0; + trim_info = readl(data->base + EXYNOS_TMU_REG_TRIMINFO); trim_info1 = readl(data->base + EXYNOS_TMU_REG_TRIMINFO1); trim_info2 = readl(data->base + EXYNOS_TMU_REG_TRIMINFO2); -- 2.20.1