exynos_tmu.c (9e288d6430373a679d1ee88ff90813cd6be20dd2) exynos_tmu.c (6070c2ca37c3b04a007541761b244afebc3e9876)
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

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

375 clk_enable(data->clk);
376
377 val = readl(data->base + reg->emul_con);
378
379 if (temp) {
380 temp /= MCELSIUS;
381
382 if (TMU_SUPPORTS(pdata, EMUL_TIME)) {
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

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

375 clk_enable(data->clk);
376
377 val = readl(data->base + reg->emul_con);
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);
383 val &= ~(EXYNOS_EMUL_TIME_MASK << EXYNOS_EMUL_TIME_SHIFT);
384 val |= (EXYNOS_EMUL_TIME << EXYNOS_EMUL_TIME_SHIFT);
385 }
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

--- 372 unchanged lines hidden ---
385 }
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

--- 372 unchanged lines hidden ---