exynos_tmu.c (32f9520569ed6bf75673063b8b1c4f2e46a75c48) | exynos_tmu.c (bfb2b88c79df839779586e0247456bd79882b145) |
---|---|
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 --- 281 unchanged lines hidden (view full) --- 290 unsigned int con, interrupt_en; 291 292 mutex_lock(&data->lock); 293 clk_enable(data->clk); 294 295 con = readl(data->base + reg->tmu_ctrl); 296 297 if (pdata->test_mux) | 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 --- 281 unchanged lines hidden (view full) --- 290 unsigned int con, interrupt_en; 291 292 mutex_lock(&data->lock); 293 clk_enable(data->clk); 294 295 con = readl(data->base + reg->tmu_ctrl); 296 297 if (pdata->test_mux) |
298 con |= (pdata->test_mux << reg->test_mux_addr_shift); | 298 con |= (pdata->test_mux << EXYNOS4412_MUX_ADDR_SHIFT); |
299 300 con &= ~(EXYNOS_TMU_REF_VOLTAGE_MASK << EXYNOS_TMU_REF_VOLTAGE_SHIFT); 301 con |= pdata->reference_voltage << EXYNOS_TMU_REF_VOLTAGE_SHIFT; 302 303 con &= ~(EXYNOS_TMU_BUF_SLOPE_SEL_MASK << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT); 304 con |= (pdata->gain << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT); 305 306 if (pdata->noise_cancel_mode) { --- 459 unchanged lines hidden --- | 299 300 con &= ~(EXYNOS_TMU_REF_VOLTAGE_MASK << EXYNOS_TMU_REF_VOLTAGE_SHIFT); 301 con |= pdata->reference_voltage << EXYNOS_TMU_REF_VOLTAGE_SHIFT; 302 303 con &= ~(EXYNOS_TMU_BUF_SLOPE_SEL_MASK << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT); 304 con |= (pdata->gain << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT); 305 306 if (pdata->noise_cancel_mode) { --- 459 unchanged lines hidden --- |