exynos_tmu.c (77a37a92ca18e4385bfcca9f2762d39fe83110b9) exynos_tmu.c (9e288d6430373a679d1ee88ff90813cd6be20dd2)
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

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

378
379 if (temp) {
380 temp /= MCELSIUS;
381
382 if (TMU_SUPPORTS(pdata, EMUL_TIME)) {
383 val &= ~(EXYNOS_EMUL_TIME_MASK << reg->emul_time_shift);
384 val |= (EXYNOS_EMUL_TIME << reg->emul_time_shift);
385 }
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

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

378
379 if (temp) {
380 temp /= MCELSIUS;
381
382 if (TMU_SUPPORTS(pdata, EMUL_TIME)) {
383 val &= ~(EXYNOS_EMUL_TIME_MASK << reg->emul_time_shift);
384 val |= (EXYNOS_EMUL_TIME << reg->emul_time_shift);
385 }
386 val &= ~(EXYNOS_EMUL_DATA_MASK << reg->emul_temp_shift);
387 val |= (temp_to_code(data, temp) << reg->emul_temp_shift) |
386 val &= ~(EXYNOS_EMUL_DATA_MASK << EXYNOS_EMUL_DATA_SHIFT);
387 val |= (temp_to_code(data, temp) << EXYNOS_EMUL_DATA_SHIFT) |
388 EXYNOS_EMUL_ENABLE;
389 } else {
390 val &= ~EXYNOS_EMUL_ENABLE;
391 }
392
393 writel(val, data->base + reg->emul_con);
394
395 clk_disable(data->clk);

--- 369 unchanged lines hidden ---
388 EXYNOS_EMUL_ENABLE;
389 } else {
390 val &= ~EXYNOS_EMUL_ENABLE;
391 }
392
393 writel(val, data->base + reg->emul_con);
394
395 clk_disable(data->clk);

--- 369 unchanged lines hidden ---