linux/drivers/regulator/mpq7920.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * mpq7920.h  -  Regulator definitions for mpq7920
 *
 * Copyright 2019 Monolithic Power Systems, Inc
 *
 */

#ifndef __MPQ7920_H__
#define __MPQ7920_H__

#define MPQ7920_REG_CTL0
#define MPQ7920_REG_CTL1
#define MPQ7920_REG_CTL2
#define MPQ7920_BUCK1_REG_A
#define MPQ7920_BUCK1_REG_B
#define MPQ7920_BUCK1_REG_C
#define MPQ7920_BUCK1_REG_D
#define MPQ7920_BUCK2_REG_A
#define MPQ7920_BUCK2_REG_B
#define MPQ7920_BUCK2_REG_C
#define MPQ7920_BUCK2_REG_D
#define MPQ7920_BUCK3_REG_A
#define MPQ7920_BUCK3_REG_B
#define MPQ7920_BUCK3_REG_C
#define MPQ7920_BUCK3_REG_D
#define MPQ7920_BUCK4_REG_A
#define MPQ7920_BUCK4_REG_B
#define MPQ7920_BUCK4_REG_C
#define MPQ7920_BUCK4_REG_D
#define MPQ7920_LDO1_REG_A
#define MPQ7920_LDO1_REG_B
#define MPQ7920_LDO2_REG_A
#define MPQ7920_LDO2_REG_B
#define MPQ7920_LDO2_REG_C
#define MPQ7920_LDO3_REG_A
#define MPQ7920_LDO3_REG_B
#define MPQ7920_LDO3_REG_C
#define MPQ7920_LDO4_REG_A
#define MPQ7920_LDO4_REG_B
#define MPQ7920_LDO4_REG_C
#define MPQ7920_LDO5_REG_A
#define MPQ7920_LDO5_REG_B
#define MPQ7920_LDO5_REG_C
#define MPQ7920_REG_MODE
#define MPQ7920_REG_REGULATOR_EN

#define MPQ7920_MASK_VREF
#define MPQ7920_MASK_BUCK_ILIM
#define MPQ7920_MASK_LDO_ILIM
#define MPQ7920_MASK_DISCHARGE
#define MPQ7920_MASK_MODE
#define MPQ7920_MASK_SOFTSTART
#define MPQ7920_MASK_SWITCH_FREQ
#define MPQ7920_MASK_BUCK_PHASE_DEALY
#define MPQ7920_MASK_DVS_SLEWRATE
#define MPQ7920_MASK_OVP
#define MPQ7920_OVP_DISABLE
#define MPQ7920_DISCHARGE_ON

#define MPQ7920_REGULATOR_EN_OFFSET

/* values in mV */
#define MPQ7920_BUCK_VOLT_MIN
#define MPQ7920_LDO_VOLT_MIN
#define MPQ7920_VOLT_MAX
#define MPQ7920_VOLT_STEP

#endif /* __MPQ7920_H__ */