hisi_thermal.c (50501936288d6a29d7ef78f25d00e33240fad45f) hisi_thermal.c (f6a756e8fb12923f0e3996a575e935e94f3594eb)
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>
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/of.h>
16#include <linux/platform_device.h>
17#include <linux/io.h>
17#include <linux/platform_device.h>
18#include <linux/io.h>
18#include <linux/of_device.h>
19#include <linux/thermal.h>
20
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)

--- 629 unchanged lines hidden ---
19#include <linux/thermal.h>
20
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)

--- 629 unchanged lines hidden ---