linux/drivers/regulator/pv88090-regulator.h

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

#ifndef __PV88090_REGISTERS_H__
#define __PV88090_REGISTERS_H__

/* System Control and Event Registers */
#define PV88090_REG_EVENT_A
#define PV88090_REG_MASK_A
#define PV88090_REG_MASK_B

/* Regulator Registers */
#define PV88090_REG_BUCK1_CONF0
#define PV88090_REG_BUCK1_CONF1
#define PV88090_REG_BUCK1_CONF2
#define PV88090_REG_BUCK2_CONF0
#define PV88090_REG_BUCK2_CONF1
#define PV88090_REG_BUCK2_CONF2
#define PV88090_REG_BUCK3_CONF0
#define PV88090_REG_BUCK3_CONF1
#define PV88090_REG_BUCK3_CONF2

#define PV88090_REG_LDO1_CONT
#define PV88090_REG_LDO2_CONT
#define PV88090_REG_LDO3_CONT
#define PV88090_REG_BUCK_FOLD_RANGE

/* PV88090_REG_EVENT_A (addr=0x03) */
#define PV88090_E_VDD_FLT
#define PV88090_E_OVER_TEMP

/* PV88090_REG_MASK_A (addr=0x06) */
#define PV88090_M_VDD_FLT
#define PV88090_M_OVER_TEMP

/* PV88090_REG_BUCK1_CONF0 (addr=0x18) */
#define PV88090_BUCK1_EN
#define PV88090_VBUCK1_MASK
/* PV88090_REG_BUCK2_CONF0 (addr=0x1b) */
#define PV88090_BUCK2_EN
#define PV88090_VBUCK2_MASK
/* PV88090_REG_BUCK3_CONF0 (addr=0x1d) */
#define PV88090_BUCK3_EN
#define PV88090_VBUCK3_MASK
/* PV88090_REG_LDO1_CONT (addr=0x1f) */
#define PV88090_LDO1_EN
#define PV88090_VLDO1_MASK
/* PV88090_REG_LDO2_CONT (addr=0x20) */
#define PV88090_LDO2_EN
#define PV88090_VLDO2_MASK

/* PV88090_REG_BUCK1_CONF1 (addr=0x19) */
#define PV88090_BUCK1_ILIM_SHIFT
#define PV88090_BUCK1_ILIM_MASK
#define PV88090_BUCK1_MODE_MASK

/* PV88090_REG_BUCK2_CONF1 (addr=0x1c) */
#define PV88090_BUCK2_ILIM_SHIFT
#define PV88090_BUCK2_ILIM_MASK
#define PV88090_BUCK2_MODE_MASK

/* PV88090_REG_BUCK3_CONF1 (addr=0x1e) */
#define PV88090_BUCK3_ILIM_SHIFT
#define PV88090_BUCK3_ILIM_MASK
#define PV88090_BUCK3_MODE_MASK

#define PV88090_BUCK_MODE_SLEEP
#define PV88090_BUCK_MODE_AUTO
#define PV88090_BUCK_MODE_SYNC

/* PV88090_REG_BUCK2_CONF2 (addr=0x58) */
/* PV88090_REG_BUCK3_CONF2 (addr=0x5c) */
#define PV88090_BUCK_VDAC_RANGE_SHIFT
#define PV88090_BUCK_VDAC_RANGE_MASK

#define PV88090_BUCK_VDAC_RANGE_1
#define PV88090_BUCK_VDAC_RANGE_2

/* PV88090_REG_BUCK_FOLD_RANGE (addr=0x61) */
#define PV88090_BUCK_VRANGE_GAIN_SHIFT
#define PV88090_BUCK_VRANGE_GAIN_MASK

#define PV88090_BUCK_VRANGE_GAIN_1
#define PV88090_BUCK_VRANGE_GAIN_2

#endif	/* __PV88090_REGISTERS_H__ */