bcm2711_thermal.c (50501936288d6a29d7ef78f25d00e33240fad45f) | bcm2711_thermal.c (f6a756e8fb12923f0e3996a575e935e94f3594eb) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Broadcom AVS RO thermal sensor driver 4 * 5 * based on brcmstb_thermal 6 * 7 * Copyright (C) 2020 Stefan Wahren 8 */ 9 10#include <linux/bitops.h> 11#include <linux/clk.h> 12#include <linux/device.h> 13#include <linux/err.h> 14#include <linux/io.h> 15#include <linux/kernel.h> 16#include <linux/mfd/syscon.h> 17#include <linux/module.h> | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Broadcom AVS RO thermal sensor driver 4 * 5 * based on brcmstb_thermal 6 * 7 * Copyright (C) 2020 Stefan Wahren 8 */ 9 10#include <linux/bitops.h> 11#include <linux/clk.h> 12#include <linux/device.h> 13#include <linux/err.h> 14#include <linux/io.h> 15#include <linux/kernel.h> 16#include <linux/mfd/syscon.h> 17#include <linux/module.h> |
18#include <linux/of.h> |
|
18#include <linux/platform_device.h> | 19#include <linux/platform_device.h> |
19#include <linux/of_device.h> | |
20#include <linux/regmap.h> 21#include <linux/thermal.h> 22 23#include "../thermal_hwmon.h" 24 25#define AVS_RO_TEMP_STATUS 0x200 26#define AVS_RO_TEMP_STATUS_VALID_MSK (BIT(16) | BIT(10)) 27#define AVS_RO_TEMP_STATUS_DATA_MSK GENMASK(9, 0) --- 88 unchanged lines hidden --- | 20#include <linux/regmap.h> 21#include <linux/thermal.h> 22 23#include "../thermal_hwmon.h" 24 25#define AVS_RO_TEMP_STATUS 0x200 26#define AVS_RO_TEMP_STATUS_VALID_MSK (BIT(16) | BIT(10)) 27#define AVS_RO_TEMP_STATUS_DATA_MSK GENMASK(9, 0) --- 88 unchanged lines hidden --- |