diff options
author | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2015-08-03 19:23:06 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:47:01 +0900 |
commit | e0c04ea0485ee5cfd65fdebf04ae4b49afdd43d1 (patch) | |
tree | 434a63cf405dc269b7de8bcbf6475f21e6b8884b /drivers/thermal | |
parent | 160348d634389f496695541d76d3c64599fb88fc (diff) |
thermal: exynos5433: Add missing code for setting rising threshold.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/samsung/exynos_tmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 6f0a5db73660..86ed365180f2 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -585,6 +585,7 @@ static int exynos5433_tmu_initialize(struct platform_device *pdev) threshold_code = temp_to_code(data, temp); rising_threshold = readl(data->base + rising_reg_offset); + rising_threshold &= ~(0xff << j * 8); rising_threshold |= (threshold_code << j * 8); writel(rising_threshold, data->base + rising_reg_offset); |