linux/drivers/thermal/broadcom/bcm2711_thermal.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Broadcom AVS RO thermal sensor driver
 *
 * based on brcmstb_thermal
 *
 * Copyright (C) 2020 Stefan Wahren
 */

#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/thermal.h>

#include "../thermal_hwmon.h"

#define AVS_RO_TEMP_STATUS
#define AVS_RO_TEMP_STATUS_VALID_MSK
#define AVS_RO_TEMP_STATUS_DATA_MSK

struct bcm2711_thermal_priv {};

static int bcm2711_get_temp(struct thermal_zone_device *tz, int *temp)
{}

static const struct thermal_zone_device_ops bcm2711_thermal_of_ops =;

static const struct of_device_id bcm2711_thermal_id_table[] =;
MODULE_DEVICE_TABLE(of, bcm2711_thermal_id_table);

static int bcm2711_thermal_probe(struct platform_device *pdev)
{}

static struct platform_driver bcm2711_thermal_driver =;
module_platform_driver();

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();