exynos_tmu.c (199b3e3c860cdf3f092e7cbb2bf08b8a96ed4beb) exynos_tmu.c (7efd18a2a18155184c2100fee0beb8cb1a9a57e0)
1/*
2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3 *
4 * Copyright (C) 2014 Samsung Electronics
5 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
6 * Lukasz Majewski <l.majewski@samsung.com>
7 *
8 * Copyright (C) 2011 Samsung Electronics

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

30#include <linux/interrupt.h>
31#include <linux/module.h>
32#include <linux/of_device.h>
33#include <linux/of_address.h>
34#include <linux/of_irq.h>
35#include <linux/platform_device.h>
36#include <linux/regulator/consumer.h>
37
1/*
2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3 *
4 * Copyright (C) 2014 Samsung Electronics
5 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
6 * Lukasz Majewski <l.majewski@samsung.com>
7 *
8 * Copyright (C) 2011 Samsung Electronics

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

30#include <linux/interrupt.h>
31#include <linux/module.h>
32#include <linux/of_device.h>
33#include <linux/of_address.h>
34#include <linux/of_irq.h>
35#include <linux/platform_device.h>
36#include <linux/regulator/consumer.h>
37
38#include "exynos_tmu.h"
38#include <dt-bindings/thermal/thermal_exynos.h>
39
39#include "../thermal_core.h"
40
41/* Exynos generic registers */
42#define EXYNOS_TMU_REG_TRIMINFO 0x0
43#define EXYNOS_TMU_REG_CONTROL 0x20
44#define EXYNOS_TMU_REG_STATUS 0x28
45#define EXYNOS_TMU_REG_CURRENT_TEMP 0x40
46#define EXYNOS_TMU_REG_INTEN 0x70

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

168#define EXYNOS7_EMUL_DATA_MASK 0x1ff
169
170#define EXYNOS_FIRST_POINT_TRIM 25
171#define EXYNOS_SECOND_POINT_TRIM 85
172
173#define EXYNOS_NOISE_CANCEL_MODE 4
174
175#define MCELSIUS 1000
40#include "../thermal_core.h"
41
42/* Exynos generic registers */
43#define EXYNOS_TMU_REG_TRIMINFO 0x0
44#define EXYNOS_TMU_REG_CONTROL 0x20
45#define EXYNOS_TMU_REG_STATUS 0x28
46#define EXYNOS_TMU_REG_CURRENT_TEMP 0x40
47#define EXYNOS_TMU_REG_INTEN 0x70

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

169#define EXYNOS7_EMUL_DATA_MASK 0x1ff
170
171#define EXYNOS_FIRST_POINT_TRIM 25
172#define EXYNOS_SECOND_POINT_TRIM 85
173
174#define EXYNOS_NOISE_CANCEL_MODE 4
175
176#define MCELSIUS 1000
177
178enum soc_type {
179 SOC_ARCH_EXYNOS3250 = 1,
180 SOC_ARCH_EXYNOS4210,
181 SOC_ARCH_EXYNOS4412,
182 SOC_ARCH_EXYNOS5250,
183 SOC_ARCH_EXYNOS5260,
184 SOC_ARCH_EXYNOS5420,
185 SOC_ARCH_EXYNOS5420_TRIMINFO,
186 SOC_ARCH_EXYNOS5433,
187 SOC_ARCH_EXYNOS5440,
188 SOC_ARCH_EXYNOS7,
189};
190
176/**
177 * struct exynos_tmu_data : A structure to hold the private data of the TMU
178 driver
179 * @id: identifier of the one instance of the TMU controller.
180 * @base: base address of the single instance of the TMU controller.
181 * @base_second: base address of the common registers of the TMU controller.
182 * @irq: irq number of the TMU controller.
183 * @soc: id of the SOC type.

--- 1276 unchanged lines hidden ---
191/**
192 * struct exynos_tmu_data : A structure to hold the private data of the TMU
193 driver
194 * @id: identifier of the one instance of the TMU controller.
195 * @base: base address of the single instance of the TMU controller.
196 * @base_second: base address of the common registers of the TMU controller.
197 * @irq: irq number of the TMU controller.
198 * @soc: id of the SOC type.

--- 1276 unchanged lines hidden ---