exynos_tmu.c (23f146296c6a166b9ba3d810a6a53cb5df6a5b4f) | exynos_tmu.c (6f02fa18fbff39919f26c228e2e7f1f5b9b211e9) |
---|---|
1/* 2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit) 3 * 4 * Copyright (C) 2011 Samsung Electronics 5 * Donggeun Kim <dg77.kim@samsung.com> 6 * Amit Daniel Kachhap <amit.kachhap@linaro.org> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 139 unchanged lines hidden (view full) --- 148 unsigned int rising_threshold = 0, falling_threshold = 0; 149 int ret = 0, threshold_code, i; 150 151 mutex_lock(&data->lock); 152 clk_enable(data->clk); 153 if (!IS_ERR(data->clk_sec)) 154 clk_enable(data->clk_sec); 155 | 1/* 2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit) 3 * 4 * Copyright (C) 2011 Samsung Electronics 5 * Donggeun Kim <dg77.kim@samsung.com> 6 * Amit Daniel Kachhap <amit.kachhap@linaro.org> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 139 unchanged lines hidden (view full) --- 148 unsigned int rising_threshold = 0, falling_threshold = 0; 149 int ret = 0, threshold_code, i; 150 151 mutex_lock(&data->lock); 152 clk_enable(data->clk); 153 if (!IS_ERR(data->clk_sec)) 154 clk_enable(data->clk_sec); 155 |
156 if (TMU_SUPPORTS(pdata, READY_STATUS)) { | 156 if (data->soc != SOC_ARCH_EXYNOS5440) { |
157 status = readb(data->base + EXYNOS_TMU_REG_STATUS); 158 if (!status) { 159 ret = -EBUSY; 160 goto out; 161 } 162 } 163 164 if (TMU_SUPPORTS(pdata, TRIM_RELOAD)) { --- 598 unchanged lines hidden --- | 157 status = readb(data->base + EXYNOS_TMU_REG_STATUS); 158 if (!status) { 159 ret = -EBUSY; 160 goto out; 161 } 162 } 163 164 if (TMU_SUPPORTS(pdata, TRIM_RELOAD)) { --- 598 unchanged lines hidden --- |