0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __MPQ7920_H__
0010 #define __MPQ7920_H__
0011
0012 #define MPQ7920_REG_CTL0 0x00
0013 #define MPQ7920_REG_CTL1 0x01
0014 #define MPQ7920_REG_CTL2 0x02
0015 #define MPQ7920_BUCK1_REG_A 0x03
0016 #define MPQ7920_BUCK1_REG_B 0x04
0017 #define MPQ7920_BUCK1_REG_C 0x05
0018 #define MPQ7920_BUCK1_REG_D 0x06
0019 #define MPQ7920_BUCK2_REG_A 0x07
0020 #define MPQ7920_BUCK2_REG_B 0x08
0021 #define MPQ7920_BUCK2_REG_C 0x09
0022 #define MPQ7920_BUCK2_REG_D 0x0a
0023 #define MPQ7920_BUCK3_REG_A 0x0b
0024 #define MPQ7920_BUCK3_REG_B 0x0c
0025 #define MPQ7920_BUCK3_REG_C 0x0d
0026 #define MPQ7920_BUCK3_REG_D 0x0e
0027 #define MPQ7920_BUCK4_REG_A 0x0f
0028 #define MPQ7920_BUCK4_REG_B 0x10
0029 #define MPQ7920_BUCK4_REG_C 0x11
0030 #define MPQ7920_BUCK4_REG_D 0x12
0031 #define MPQ7920_LDO1_REG_A 0x13
0032 #define MPQ7920_LDO1_REG_B 0x0
0033 #define MPQ7920_LDO2_REG_A 0x14
0034 #define MPQ7920_LDO2_REG_B 0x15
0035 #define MPQ7920_LDO2_REG_C 0x16
0036 #define MPQ7920_LDO3_REG_A 0x17
0037 #define MPQ7920_LDO3_REG_B 0x18
0038 #define MPQ7920_LDO3_REG_C 0x19
0039 #define MPQ7920_LDO4_REG_A 0x1a
0040 #define MPQ7920_LDO4_REG_B 0x1b
0041 #define MPQ7920_LDO4_REG_C 0x1c
0042 #define MPQ7920_LDO5_REG_A 0x1d
0043 #define MPQ7920_LDO5_REG_B 0x1e
0044 #define MPQ7920_LDO5_REG_C 0x1f
0045 #define MPQ7920_REG_MODE 0x20
0046 #define MPQ7920_REG_REGULATOR_EN 0x22
0047
0048 #define MPQ7920_MASK_VREF 0x7f
0049 #define MPQ7920_MASK_BUCK_ILIM 0xc0
0050 #define MPQ7920_MASK_LDO_ILIM BIT(6)
0051 #define MPQ7920_MASK_DISCHARGE BIT(5)
0052 #define MPQ7920_MASK_MODE 0xc0
0053 #define MPQ7920_MASK_SOFTSTART 0x0c
0054 #define MPQ7920_MASK_SWITCH_FREQ 0x30
0055 #define MPQ7920_MASK_BUCK_PHASE_DEALY 0x30
0056 #define MPQ7920_MASK_DVS_SLEWRATE 0xc0
0057 #define MPQ7920_MASK_OVP 0x40
0058 #define MPQ7920_OVP_DISABLE ~(0x40)
0059 #define MPQ7920_DISCHARGE_ON BIT(5)
0060
0061 #define MPQ7920_REGULATOR_EN_OFFSET 7
0062
0063
0064 #define MPQ7920_BUCK_VOLT_MIN 400000
0065 #define MPQ7920_LDO_VOLT_MIN 650000
0066 #define MPQ7920_VOLT_MAX 3587500
0067 #define MPQ7920_VOLT_STEP 12500
0068
0069 #endif