exynos_tmu.c (5d022061cabe5b4967d9f5b65d2ce9c121aa458a) exynos_tmu.c (6b1fbbdebae2016fa8a7505021ff2924e75d9e82)
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

--- 205 unchanged lines hidden (view full) ---

214 EXYNOS_TMU_TEMP_MASK;
215
216 rising_threshold = readl(data->base + reg->threshold_th0);
217
218 if (data->soc == SOC_ARCH_EXYNOS4210) {
219 /* Write temperature code for threshold */
220 threshold_code = temp_to_code(data, pdata->threshold);
221 writeb(threshold_code,
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

--- 205 unchanged lines hidden (view full) ---

214 EXYNOS_TMU_TEMP_MASK;
215
216 rising_threshold = readl(data->base + reg->threshold_th0);
217
218 if (data->soc == SOC_ARCH_EXYNOS4210) {
219 /* Write temperature code for threshold */
220 threshold_code = temp_to_code(data, pdata->threshold);
221 writeb(threshold_code,
222 data->base + reg->threshold_temp);
222 data->base + EXYNOS4210_TMU_REG_THRESHOLD_TEMP);
223 for (i = 0; i < pdata->non_hw_trigger_levels; i++)
224 writeb(pdata->trigger_levels[i], data->base +
225 reg->threshold_th0 + i * sizeof(reg->threshold_th0));
226
227 exynos_tmu_clear_irqs(data);
228 } else {
229 /* Write temperature code for rising and falling threshold */
230 for (i = 0; i < pdata->non_hw_trigger_levels; i++) {

--- 536 unchanged lines hidden ---
223 for (i = 0; i < pdata->non_hw_trigger_levels; i++)
224 writeb(pdata->trigger_levels[i], data->base +
225 reg->threshold_th0 + i * sizeof(reg->threshold_th0));
226
227 exynos_tmu_clear_irqs(data);
228 } else {
229 /* Write temperature code for rising and falling threshold */
230 for (i = 0; i < pdata->non_hw_trigger_levels; i++) {

--- 536 unchanged lines hidden ---