Before set the TMU control register, disable
enable bit to abnormal operation.
Change-Id: Ic2979d3149581a5020c21c593e207ed9ef1fe972
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
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);