linux/drivers/mfd/tps65219.c

// SPDX-License-Identifier: GPL-2.0
//
// Driver for TPS65219 Integrated Power Management Integrated Chips (PMIC)
//
// Copyright (C) 2022 BayLibre Incorporated - https://www.baylibre.com/

#include <linux/i2c.h>
#include <linux/reboot.h>
#include <linux/regmap.h>

#include <linux/mfd/core.h>
#include <linux/mfd/tps65219.h>

static int tps65219_warm_reset(struct tps65219 *tps)
{}

static int tps65219_cold_reset(struct tps65219 *tps)
{}

static int tps65219_soft_shutdown(struct tps65219 *tps)
{}

static int tps65219_power_off_handler(struct sys_off_data *data)
{}

static int tps65219_restart(struct tps65219 *tps, unsigned long reboot_mode)
{}

static int tps65219_restart_handler(struct sys_off_data *data)
{}

static const struct resource tps65219_pwrbutton_resources[] =;

static const struct resource tps65219_regulator_resources[] =;

static const struct mfd_cell tps65219_cells[] =;

static const struct mfd_cell tps65219_pwrbutton_cell =;

static const struct regmap_config tps65219_regmap_config =;

/*
 * Mapping of main IRQ register bits to sub-IRQ register offsets so that we can
 * access corect sub-IRQ registers based on bits that are set in main IRQ
 * register.
 */
/* Timeout Residual Voltage Shutdown */
static unsigned int bit0_offsets[] =;
static unsigned int bit1_offsets[] =;	/* Residual Voltage */
static unsigned int bit2_offsets[] =;	/* System */
static unsigned int bit3_offsets[] =;	/* Buck 1-2 */
static unsigned int bit4_offsets[] =;	/* Buck 3 */
static unsigned int bit5_offsets[] =;	/* LDO 1-2 */
static unsigned int bit6_offsets[] =;	/* LDO 3-4 */
static unsigned int bit7_offsets[] =;	/* Power Button */

static struct regmap_irq_sub_irq_map tps65219_sub_irq_offsets[] =;

#define TPS65219_REGMAP_IRQ_REG(int_name, register_position)

static const struct regmap_irq tps65219_irqs[] =;

static const struct regmap_irq_chip tps65219_irq_chip =;

static int tps65219_probe(struct i2c_client *client)
{}

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

static struct i2c_driver tps65219_driver =;
module_i2c_driver();

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