linux/drivers/mfd/da9052-core.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Device access for Dialog DA9052 PMICs.
 *
 * Copyright(c) 2011 Dialog Semiconductor Ltd.
 *
 * Author: David Dajun Chen <[email protected]>
 */

#include <linux/device.h>
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/mfd/core.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/property.h>

#include <linux/mfd/da9052/da9052.h>
#include <linux/mfd/da9052/pdata.h>
#include <linux/mfd/da9052/reg.h>

static bool da9052_reg_readable(struct device *dev, unsigned int reg)
{}

static bool da9052_reg_writeable(struct device *dev, unsigned int reg)
{}

static bool da9052_reg_volatile(struct device *dev, unsigned int reg)
{}

/*
 * TBAT look-up table is computed from the R90 reg (8 bit register)
 * reading as below. The battery temperature is in milliCentigrade
 * TBAT = (1/(t1+1/298) - 273) * 1000 mC
 * where t1 = (1/B)* ln(( ADCval * 2.5)/(R25*ITBAT*255))
 * Default values are R25 = 10e3, B = 3380, ITBAT = 50e-6
 * Example:
 * R25=10E3, B=3380, ITBAT=50e-6, ADCVAL=62d calculates
 * TBAT = 20015 mili degrees Centrigrade
 *
*/
static const int32_t tbat_lookup[255] =;

static const u8 chan_mux[DA9052_ADC_VBBAT + 1] =;

int da9052_adc_manual_read(struct da9052 *da9052, unsigned char channel)
{}
EXPORT_SYMBOL_GPL();

int da9052_adc_read_temp(struct da9052 *da9052)
{}
EXPORT_SYMBOL_GPL();

static const struct mfd_cell da9052_subdev_info[] =;

static const struct mfd_cell da9052_tsi_subdev_info[] =;

const struct regmap_config da9052_regmap_config =;
EXPORT_SYMBOL_GPL();

static int da9052_clear_fault_log(struct da9052 *da9052)
{}

int da9052_device_init(struct da9052 *da9052, u8 chip_id)
{}

void da9052_device_exit(struct da9052 *da9052)
{}

MODULE_AUTHOR();
MODULE_DESCRIPTION();