linux/drivers/thermal/qcom/tsens-v0_1.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 */

#include <linux/bitfield.h>
#include <linux/nvmem-consumer.h>
#include <linux/platform_device.h>
#include "tsens.h"

/* ----- SROT ------ */
#define SROT_CTRL_OFF

/* ----- TM ------ */
#define TM_INT_EN_OFF
#define TM_Sn_UPPER_LOWER_STATUS_CTRL_OFF
#define TM_Sn_STATUS_OFF
#define TM_TRDY_OFF

/* extra data for 8974 */
#define BKP_SEL
#define BKP_REDUN_SEL

#define BIT_APPEND

static struct tsens_legacy_calibration_format tsens_8916_nvmem =;

static struct tsens_legacy_calibration_format tsens_8974_nvmem =;

static struct tsens_legacy_calibration_format tsens_8974_backup_nvmem =;

static int calibrate_8916(struct tsens_priv *priv)
{}

static void fixup_8974_points(int mode, u32 *p1, u32 *p2)
{}

static int calibrate_8974_nvmem(struct tsens_priv *priv)
{}

static int calibrate_8974(struct tsens_priv *priv)
{}

static int __init init_8226(struct tsens_priv *priv)
{}

static int __init init_8909(struct tsens_priv *priv)
{}

static int __init init_8939(struct tsens_priv *priv) {}

static int __init init_9607(struct tsens_priv *priv)
{}

/* v0.1: 8226, 8909, 8916, 8939, 8974, 9607 */

static struct tsens_features tsens_v0_1_feat =;

static const struct reg_field tsens_v0_1_regfields[MAX_REGFIELDS] =;

static const struct tsens_ops ops_8226 =;

struct tsens_plat_data data_8226 =;

static const struct tsens_ops ops_8909 =;

struct tsens_plat_data data_8909 =;

static const struct tsens_ops ops_8916 =;

struct tsens_plat_data data_8916 =;

static const struct tsens_ops ops_8939 =;

struct tsens_plat_data data_8939 =;

static const struct tsens_ops ops_8974 =;

struct tsens_plat_data data_8974 =;

static const struct tsens_ops ops_9607 =;

struct tsens_plat_data data_9607 =;