]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/freescale/mx6qsabreauto/mx6qsabreauto.c
imx:mx6 set normal APS and standby PFM mode
[karo-tx-uboot.git] / board / freescale / mx6qsabreauto / mx6qsabreauto.c
index 02539e1721e1ae974c66743b33cbc56e533f621a..594214c246c54f627be546fd4c67878ebb433b6b 100644 (file)
@@ -29,6 +29,7 @@
 #include <asm/arch/crm_regs.h>
 #include <pca953x.h>
 #include <power/pmic.h>
+#include <power/pfuze100_pmic.h>
 #include "../common/pfuze.h"
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -494,11 +495,16 @@ int board_spi_cs_gpio(unsigned bus, unsigned cs)
 int power_init_board(void)
 {
        struct pmic *p;
+       unsigned int ret;
 
        p = pfuze_common_init(I2C_PMIC);
        if (!p)
                return -ENODEV;
 
+       ret = pfuze_mode_init(p, APS_PFM);
+       if (ret < 0)
+               return ret;
+
        return 0;
 }