]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/freescale/mx6sxsabresd/mx6sxsabresd.c
imx:mx6 set normal APS and standby PFM mode
[karo-tx-uboot.git] / board / freescale / mx6sxsabresd / mx6sxsabresd.c
index a2c9aae32cd3a03bf3d68dbe3c80a0e9615f5258..2ff960e3bb784149ccc2650f5e8700b3a9ee8a4d 100644 (file)
@@ -199,12 +199,16 @@ static struct i2c_pads_info i2c_pad_info1 = {
 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;
+
        /* Enable power of VGEN5 3V3, needed for SD3 */
        pmic_reg_read(p, PFUZE100_VGEN5VOL, &reg);
        reg &= ~LDO_VOL_MASK;