From 258c98f8d36ef35d7cb7604847ba73e64d702c2a Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Tue, 27 Jan 2015 10:14:04 +0800 Subject: imx:mx6 set normal APS and standby PFM mode To normal mode, use APS switching mode. To standy mode, use PFM switching mode. Signed-off-by: Peng Fan Acked-by: Przemyslaw Marczak --- board/freescale/mx6sabresd/mx6sabresd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'board/freescale/mx6sabresd') diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 2f7198d3bf..bb2dd9624b 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -631,12 +631,16 @@ int board_init(void) int power_init_board(void) { struct pmic *p; - unsigned int reg; + unsigned int reg, ret; p = pfuze_common_init(I2C_PMIC); if (!p) return -ENODEV; + ret = pfuze_mode_init(p, APS_PFM); + if (ret < 0) + return ret; + /* Increase VGEN3 from 2.5 to 2.8V */ pmic_reg_read(p, PFUZE100_VGEN3VOL, ®); reg &= ~LDO_VOL_MASK; -- cgit