linux/drivers/acpi/pmic/intel_pmic_chtdc_ti.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Dollar Cove TI PMIC operation region driver
 * Copyright (C) 2014 Intel Corporation. All rights reserved.
 *
 * Rewritten and cleaned up
 * Copyright (C) 2017 Takashi Iwai <[email protected]>
 */

#include <linux/acpi.h>
#include <linux/bits.h>
#include <linux/init.h>
#include <linux/mfd/intel_soc_pmic.h>
#include <linux/platform_device.h>
#include <asm/byteorder.h>
#include "intel_pmic.h"

/* registers stored in 16bit BE (high:low, total 10bit) */
#define PMIC_REG_MASK

#define CHTDC_TI_VBAT
#define CHTDC_TI_DIETEMP
#define CHTDC_TI_BPTHERM
#define CHTDC_TI_GPADC

static const struct pmic_table chtdc_ti_power_table[] =;

static const struct pmic_table chtdc_ti_thermal_table[] =;

static int chtdc_ti_pmic_get_power(struct regmap *regmap, int reg, int bit,
				   u64 *value)
{}

static int chtdc_ti_pmic_update_power(struct regmap *regmap, int reg, int bit,
				      bool on)
{}

static int chtdc_ti_pmic_get_raw_temp(struct regmap *regmap, int reg)
{}

static const struct intel_pmic_opregion_data chtdc_ti_pmic_opregion_data =;

static int chtdc_ti_pmic_opregion_probe(struct platform_device *pdev)
{}

static const struct platform_device_id chtdc_ti_pmic_opregion_id_table[] =;

static struct platform_driver chtdc_ti_pmic_opregion_driver =;
builtin_platform_driver();