linux/include/linux/mfd/tps65090.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Core driver interface for TI TPS65090 PMIC family
 *
 * Copyright (C) 2012 NVIDIA Corporation
 */

#ifndef __LINUX_MFD_TPS65090_H
#define __LINUX_MFD_TPS65090_H

#include <linux/irq.h>
#include <linux/regmap.h>

/* TPS65090 IRQs */
enum {};

/* TPS65090 Regulator ID */
enum {};

/* Register addresses */
#define TPS65090_REG_INTR_STS
#define TPS65090_REG_INTR_STS2
#define TPS65090_REG_INTR_MASK
#define TPS65090_REG_INTR_MASK2
#define TPS65090_REG_CG_CTRL0
#define TPS65090_REG_CG_CTRL1
#define TPS65090_REG_CG_CTRL2
#define TPS65090_REG_CG_CTRL3
#define TPS65090_REG_CG_CTRL4
#define TPS65090_REG_CG_CTRL5
#define TPS65090_REG_CG_STATUS1
#define TPS65090_REG_CG_STATUS2
#define TPS65090_REG_AD_OUT1
#define TPS65090_REG_AD_OUT2

#define TPS65090_MAX_REG
#define TPS65090_NUM_REGS

struct gpio_desc;

struct tps65090 {};

/*
 * struct tps65090_regulator_plat_data
 *
 * @reg_init_data: The regulator init data.
 * @enable_ext_control: Enable extrenal control or not. Only available for
 *     DCDC1, DCDC2 and DCDC3.
 * @gpiod: Gpio descriptor if external control is enabled and controlled through
 *     gpio
 * @overcurrent_wait_valid: True if the overcurrent_wait should be applied.
 * @overcurrent_wait: Value to set as the overcurrent wait time.  This is the
 *     actual bitfield value, not a time in ms (valid value are 0 - 3).
 */
struct tps65090_regulator_plat_data {};

struct tps65090_platform_data {};

/*
 * NOTE: the functions below are not intended for use outside
 * of the TPS65090 sub-device drivers
 */
static inline int tps65090_write(struct device *dev, int reg, uint8_t val)
{}

static inline int tps65090_read(struct device *dev, int reg, uint8_t *val)
{}

static inline int tps65090_set_bits(struct device *dev, int reg,
		uint8_t bit_num)
{}

static inline int tps65090_clr_bits(struct device *dev, int reg,
		uint8_t bit_num)
{}

#endif /*__LINUX_MFD_TPS65090_H */