From: Soomin Kim Date: Tue, 12 Jul 2016 08:18:25 +0000 (+0900) Subject: [8895] thermal: samsung: Disable TMU core EN X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c171aa80d5154d574d7a2dc018242ab3b7409201;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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);