hisi_thermal.c (15cc25829a97c3957e520e971868aacc84341317) | hisi_thermal.c (9272d2d43b6e532d0c0b6d3a597cf75c9ca1e183) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * HiSilicon thermal sensor driver 4 * 5 * Copyright (c) 2014-2015 HiSilicon Limited. 6 * Copyright (c) 2014-2015 Linaro Limited. 7 * 8 * Xinwei Kong <kong.kongxinwei@hisilicon.com> 9 * Leo Yan <leo.yan@linaro.org> 10 */ 11 12#include <linux/cpufreq.h> 13#include <linux/delay.h> 14#include <linux/interrupt.h> 15#include <linux/module.h> 16#include <linux/platform_device.h> 17#include <linux/io.h> 18#include <linux/of_device.h> | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * HiSilicon thermal sensor driver 4 * 5 * Copyright (c) 2014-2015 HiSilicon Limited. 6 * Copyright (c) 2014-2015 Linaro Limited. 7 * 8 * Xinwei Kong <kong.kongxinwei@hisilicon.com> 9 * Leo Yan <leo.yan@linaro.org> 10 */ 11 12#include <linux/cpufreq.h> 13#include <linux/delay.h> 14#include <linux/interrupt.h> 15#include <linux/module.h> 16#include <linux/platform_device.h> 17#include <linux/io.h> 18#include <linux/of_device.h> |
19#include <linux/thermal.h> |
|
19 | 20 |
20#include "thermal_core.h" 21 | |
22#define HI6220_TEMP0_LAG (0x0) 23#define HI6220_TEMP0_TH (0x4) 24#define HI6220_TEMP0_RST_TH (0x8) 25#define HI6220_TEMP0_CFG (0xC) 26#define HI6220_TEMP0_CFG_SS_MSK (0xF000) 27#define HI6220_TEMP0_CFG_HDAK_MSK (0x30) 28#define HI6220_TEMP0_EN (0x10) 29#define HI6220_TEMP0_INT_EN (0x14) --- 632 unchanged lines hidden --- | 21#define HI6220_TEMP0_LAG (0x0) 22#define HI6220_TEMP0_TH (0x4) 23#define HI6220_TEMP0_RST_TH (0x8) 24#define HI6220_TEMP0_CFG (0xC) 25#define HI6220_TEMP0_CFG_SS_MSK (0xF000) 26#define HI6220_TEMP0_CFG_HDAK_MSK (0x30) 27#define HI6220_TEMP0_EN (0x10) 28#define HI6220_TEMP0_INT_EN (0x14) --- 632 unchanged lines hidden --- |