brcmstb_thermal.c (50501936288d6a29d7ef78f25d00e33240fad45f) brcmstb_thermal.c (f6a756e8fb12923f0e3996a575e935e94f3594eb)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Broadcom STB AVS TMON thermal sensor driver
4 *
5 * Copyright (c) 2015-2017 Broadcom
6 */
7
8#define DRV_NAME "brcmstb_thermal"
9
10#define pr_fmt(fmt) DRV_NAME ": " fmt
11
12#include <linux/bitops.h>
13#include <linux/device.h>
14#include <linux/err.h>
15#include <linux/io.h>
16#include <linux/irqreturn.h>
17#include <linux/interrupt.h>
18#include <linux/kernel.h>
19#include <linux/module.h>
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Broadcom STB AVS TMON thermal sensor driver
4 *
5 * Copyright (c) 2015-2017 Broadcom
6 */
7
8#define DRV_NAME "brcmstb_thermal"
9
10#define pr_fmt(fmt) DRV_NAME ": " fmt
11
12#include <linux/bitops.h>
13#include <linux/device.h>
14#include <linux/err.h>
15#include <linux/io.h>
16#include <linux/irqreturn.h>
17#include <linux/interrupt.h>
18#include <linux/kernel.h>
19#include <linux/module.h>
20#include <linux/of.h>
20#include <linux/platform_device.h>
21#include <linux/platform_device.h>
21#include <linux/of_device.h>
22#include <linux/thermal.h>
23
24#define AVS_TMON_STATUS 0x00
25 #define AVS_TMON_STATUS_valid_msk BIT(11)
26 #define AVS_TMON_STATUS_data_msk GENMASK(10, 1)
27 #define AVS_TMON_STATUS_data_shift 1
28
29#define AVS_TMON_EN_OVERTEMP_RESET 0x04

--- 349 unchanged lines hidden ---
22#include <linux/thermal.h>
23
24#define AVS_TMON_STATUS 0x00
25 #define AVS_TMON_STATUS_valid_msk BIT(11)
26 #define AVS_TMON_STATUS_data_msk GENMASK(10, 1)
27 #define AVS_TMON_STATUS_data_shift 1
28
29#define AVS_TMON_EN_OVERTEMP_RESET 0x04

--- 349 unchanged lines hidden ---