zero-gravitas: 3.1v operation
Set SW4 and SW2 to 3.1v Set VGEN5 and VGEN6 to 3.1vlars/power_fixes
parent
51944d05a8
commit
0388c64a1a
|
@ -800,16 +800,48 @@ int power_init_board(void)
|
|||
reg |= SW1xCONF_DVSSPEED_4US;
|
||||
pmic_reg_write(p, PFUZE100_SW1CCONF, reg);
|
||||
|
||||
/* Set 3V3_SW4 voltage to 3.3V */
|
||||
/* Set 3V3_SW2 voltage to 3.1V */
|
||||
pmic_reg_read(p, PFUZE100_SW2VOL, ®);
|
||||
reg &= ~SW2_VOL_MASK;
|
||||
reg |= SW2_3_10V;
|
||||
pmic_reg_write(p, PFUZE100_SW2VOL, reg);
|
||||
|
||||
pmic_reg_read(p, PFUZE100_SW2STBY, ®);
|
||||
reg &= ~SW2_VOL_MASK;
|
||||
reg |= SW2_3_10V;
|
||||
pmic_reg_write(p, PFUZE100_SW2STBY, reg);
|
||||
|
||||
pmic_reg_read(p, PFUZE100_SW2OFF, ®);
|
||||
reg &= ~SW2_VOL_MASK;
|
||||
reg |= SW2_3_10V;
|
||||
pmic_reg_write(p, PFUZE100_SW2OFF, reg);
|
||||
|
||||
/* Set 3V3_SW4 voltage to 3.1V */
|
||||
pmic_reg_read(p, PFUZE100_SW4VOL, ®);
|
||||
reg &= ~SW4_VOL_MASK;
|
||||
reg |= SW4_3_300V;
|
||||
reg |= SW4_3_10V;
|
||||
pmic_reg_write(p, PFUZE100_SW4VOL, reg);
|
||||
|
||||
/* Set 3V3_VGEN6 voltage to 3.3V */
|
||||
pmic_reg_read(p, PFUZE100_SW4STBY, ®);
|
||||
reg &= ~SW4_VOL_MASK;
|
||||
reg |= SW4_3_10V;
|
||||
pmic_reg_write(p, PFUZE100_SW4STBY, reg);
|
||||
|
||||
pmic_reg_read(p, PFUZE100_SW4OFF, ®);
|
||||
reg &= ~SW4_VOL_MASK;
|
||||
reg |= SW4_3_10V;
|
||||
pmic_reg_write(p, PFUZE100_SW4OFF, reg);
|
||||
|
||||
/* Set 3V3_VGEN5 voltage to 3.1V */
|
||||
pmic_reg_read(p, PFUZE100_VGEN5VOL, ®);
|
||||
reg &= ~LDO_VOL_MASK;
|
||||
reg |= LDOB_3_10V;
|
||||
pmic_reg_write(p, PFUZE100_VGEN5VOL, reg);
|
||||
|
||||
/* Set 3V3_VGEN6 voltage to 3.1V */
|
||||
pmic_reg_read(p, PFUZE100_VGEN6VOL, ®);
|
||||
reg &= ~LDO_VOL_MASK;
|
||||
reg |= LDOB_3_30V;
|
||||
reg |= LDOB_3_10V;
|
||||
pmic_reg_write(p, PFUZE100_VGEN6VOL, reg);
|
||||
|
||||
/* Set modes */
|
||||
|
|
|
@ -107,8 +107,13 @@ enum {
|
|||
|
||||
#define PFUZE100_SW1ABC_SETP(x) ((x - 3000) / 250)
|
||||
|
||||
/* SW2 Output Voltage Configuration */
|
||||
#define SW2_3_10V 110
|
||||
#define SW2_VOL_MASK 0x7F
|
||||
|
||||
/* SW4 Output Voltage Configuration */
|
||||
#define SW4_1_800V 56
|
||||
#define SW4_3_10V 110
|
||||
#define SW4_3_300V 114
|
||||
#define SW4_VOL_MASK 0x7F
|
||||
|
||||
|
|
Loading…
Reference in New Issue