exynos_tmu.c (d564b55a81e720430f50e301ff330b1c9ec3944c) exynos_tmu.c (ef3f80fc7f79c32a1b015afcbffce2a2630011a4)
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

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

471}
472
473static int exynos_tmu_set_emulation(void *drv_data, unsigned long temp)
474{
475 struct exynos_tmu_data *data = drv_data;
476 struct exynos_tmu_platform_data *pdata = data->pdata;
477 int ret = -EINVAL;
478
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

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

471}
472
473static int exynos_tmu_set_emulation(void *drv_data, unsigned long temp)
474{
475 struct exynos_tmu_data *data = drv_data;
476 struct exynos_tmu_platform_data *pdata = data->pdata;
477 int ret = -EINVAL;
478
479 if (!TMU_SUPPORTS(pdata, EMULATION))
479 if (data->soc == SOC_ARCH_EXYNOS4210)
480 goto out;
481
482 if (temp && temp < MCELSIUS)
483 goto out;
484
485 mutex_lock(&data->lock);
486 clk_enable(data->clk);
487 data->tmu_set_emulation(data, temp);

--- 442 unchanged lines hidden ---
480 goto out;
481
482 if (temp && temp < MCELSIUS)
483 goto out;
484
485 mutex_lock(&data->lock);
486 clk_enable(data->clk);
487 data->tmu_set_emulation(data, temp);

--- 442 unchanged lines hidden ---