mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
imx: ventana: put PFUZ100 regulators in continuous mode
In the default 'auto' mode regulators that are very lightly loaded can be put in PFM mode and fail to regulator properly. Switching them to always use continuous PWM mode has a neglibable affect on system power and garuntees proper regulation under lightly loaded circumstances. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
committed by
Stefano Babic
parent
a32be88da0
commit
722d22813e
@@ -1596,6 +1596,32 @@ void setup_pmic(void)
|
||||
pmic_reg_write(p, PFUZE100_VGEN6VOL, reg);
|
||||
}
|
||||
}
|
||||
|
||||
/* put all switchers in continuous mode */
|
||||
pmic_reg_read(p, PFUZE100_SW1ABMODE, ®);
|
||||
reg &= ~(SW_MODE_MASK);
|
||||
reg |= PWM_PWM;
|
||||
pmic_reg_write(p, PFUZE100_SW1ABMODE, reg);
|
||||
|
||||
pmic_reg_read(p, PFUZE100_SW2MODE, ®);
|
||||
reg &= ~(SW_MODE_MASK);
|
||||
reg |= PWM_PWM;
|
||||
pmic_reg_write(p, PFUZE100_SW2MODE, reg);
|
||||
|
||||
pmic_reg_read(p, PFUZE100_SW3AMODE, ®);
|
||||
reg &= ~(SW_MODE_MASK);
|
||||
reg |= PWM_PWM;
|
||||
pmic_reg_write(p, PFUZE100_SW3AMODE, reg);
|
||||
|
||||
pmic_reg_read(p, PFUZE100_SW3BMODE, ®);
|
||||
reg &= ~(SW_MODE_MASK);
|
||||
reg |= PWM_PWM;
|
||||
pmic_reg_write(p, PFUZE100_SW3BMODE, reg);
|
||||
|
||||
pmic_reg_read(p, PFUZE100_SW4MODE, ®);
|
||||
reg &= ~(SW_MODE_MASK);
|
||||
reg |= PWM_PWM;
|
||||
pmic_reg_write(p, PFUZE100_SW4MODE, reg);
|
||||
}
|
||||
|
||||
/* configure LTC3676 PMIC */
|
||||
|
||||
Reference in New Issue
Block a user