linux/drivers/regulator/pv88060-regulator.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * pv88060-regulator.h - Regulator definitions for PV88060
 * Copyright (C) 2015 Powerventure Semiconductor Ltd.
 */

#ifndef __PV88060_REGISTERS_H__
#define __PV88060_REGISTERS_H__

/* System Control and Event Registers */
#define PV88060_REG_EVENT_A
#define PV88060_REG_MASK_A
#define PV88060_REG_MASK_B
#define PV88060_REG_MASK_C

/* Regulator Registers */
#define PV88060_REG_BUCK1_CONF0
#define PV88060_REG_BUCK1_CONF1
#define PV88060_REG_LDO1_CONF
#define PV88060_REG_LDO2_CONF
#define PV88060_REG_LDO3_CONF
#define PV88060_REG_LDO4_CONF
#define PV88060_REG_LDO5_CONF
#define PV88060_REG_LDO6_CONF
#define PV88060_REG_LDO7_CONF

#define PV88060_REG_SW1_CONF
#define PV88060_REG_SW2_CONF
#define PV88060_REG_SW3_CONF
#define PV88060_REG_SW4_CONF
#define PV88060_REG_SW5_CONF
#define PV88060_REG_SW6_CONF

/* PV88060_REG_EVENT_A (addr=0x04) */
#define PV88060_E_VDD_FLT
#define PV88060_E_OVER_TEMP

/* PV88060_REG_MASK_A (addr=0x08) */
#define PV88060_M_VDD_FLT
#define PV88060_M_OVER_TEMP

/* PV88060_REG_BUCK1_CONF0 (addr=0x1B) */
#define PV88060_BUCK_EN
#define PV88060_VBUCK_MASK
/* PV88060_REG_LDO1/2/3/4/5/6/7_CONT */
#define PV88060_LDO_EN
#define PV88060_VLDO_MASK
/* PV88060_REG_SW1/2/3/4/5_CONF */
#define PV88060_SW_EN

/* PV88060_REG_BUCK1_CONF1 (addr=0x1C) */
#define PV88060_BUCK_ILIM_SHIFT
#define PV88060_BUCK_ILIM_MASK
#define PV88060_BUCK_MODE_SHIFT
#define PV88060_BUCK_MODE_MASK
#define PV88060_BUCK_MODE_SLEEP
#define PV88060_BUCK_MODE_AUTO
#define PV88060_BUCK_MODE_SYNC

#endif	/* __PV88060_REGISTERS_H__ */