linux/drivers/thermal/qoriq_thermal.c

// SPDX-License-Identifier: GPL-2.0
//
// Copyright 2016 Freescale Semiconductor, Inc.

#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/sizes.h>
#include <linux/thermal.h>
#include <linux/units.h>

#include "thermal_hwmon.h"

#define SITES_MAX
#define TMR_DISABLE
#define TMR_ME
#define TMR_ALPF
#define TMR_ALPF_V2
#define TMTMIR_DEFAULT
#define TIER_DISABLE
#define TEUMR0_V2
#define TMSARA_V2
#define TMU_VER1
#define TMU_VER2

#define REGS_TMR
#define TMR_DISABLE
#define TMR_ME
#define TMR_ALPF

#define REGS_TMTMIR
#define TMTMIR_DEFAULT

#define REGS_V2_TMSR

#define REGS_V2_TMTMIR

#define REGS_TIER
#define TIER_DISABLE


#define REGS_TTCFGR
#define REGS_TSCFGR

#define REGS_TRITSR(n)
#define TRITSR_V
#define TRITSR_TP5
#define REGS_V2_TMSAR(n)
#define REGS_TTRnCR(n)
#define NUM_TTRCR_V1
#define NUM_TTRCR_MAX

#define REGS_IPBRR(n)
#define REGS_V2_TEUMR(n)

/*
 * Thermal zone data
 */
struct qoriq_sensor {};

struct qoriq_tmu_data {};

static struct qoriq_tmu_data *qoriq_sensor_to_data(struct qoriq_sensor *s)
{}

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

static const struct thermal_zone_device_ops tmu_tz_ops =;

static int qoriq_tmu_register_tmu_zone(struct device *dev,
				       struct qoriq_tmu_data *qdata)
{}

static int qoriq_tmu_calibration(struct device *dev,
				 struct qoriq_tmu_data *data)
{}

static void qoriq_tmu_init_device(struct qoriq_tmu_data *data)
{}

static const struct regmap_range qoriq_yes_ranges[] =;

static const struct regmap_access_table qoriq_wr_table =;

static const struct regmap_access_table qoriq_rd_table =;

static void qoriq_tmu_action(void *p)
{}

static int qoriq_tmu_probe(struct platform_device *pdev)
{}

static int __maybe_unused qoriq_tmu_suspend(struct device *dev)
{}

static int __maybe_unused qoriq_tmu_resume(struct device *dev)
{}

static SIMPLE_DEV_PM_OPS(qoriq_tmu_pm_ops,
			 qoriq_tmu_suspend, qoriq_tmu_resume);

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

static struct platform_driver qoriq_tmu =;
module_platform_driver();

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