Skip to content
Snippets Groups Projects
Commit 258c98f8 authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

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: default avatarPeng Fan <Peng.Fan@freescale.com>
Acked-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
parent a4f7d098
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <asm/arch/crm_regs.h> #include <asm/arch/crm_regs.h>
#include <pca953x.h> #include <pca953x.h>
#include <power/pmic.h> #include <power/pmic.h>
#include <power/pfuze100_pmic.h>
#include "../common/pfuze.h" #include "../common/pfuze.h"
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -494,11 +495,16 @@ int board_spi_cs_gpio(unsigned bus, unsigned cs) ...@@ -494,11 +495,16 @@ int board_spi_cs_gpio(unsigned bus, unsigned cs)
int power_init_board(void) int power_init_board(void)
{ {
struct pmic *p; struct pmic *p;
unsigned int ret;
p = pfuze_common_init(I2C_PMIC); p = pfuze_common_init(I2C_PMIC);
if (!p) if (!p)
return -ENODEV; return -ENODEV;
ret = pfuze_mode_init(p, APS_PFM);
if (ret < 0)
return ret;
return 0; return 0;
} }
......
...@@ -631,12 +631,16 @@ int board_init(void) ...@@ -631,12 +631,16 @@ int board_init(void)
int power_init_board(void) int power_init_board(void)
{ {
struct pmic *p; struct pmic *p;
unsigned int reg; unsigned int reg, ret;
p = pfuze_common_init(I2C_PMIC); p = pfuze_common_init(I2C_PMIC);
if (!p) if (!p)
return -ENODEV; return -ENODEV;
ret = pfuze_mode_init(p, APS_PFM);
if (ret < 0)
return ret;
/* Increase VGEN3 from 2.5 to 2.8V */ /* Increase VGEN3 from 2.5 to 2.8V */
pmic_reg_read(p, PFUZE100_VGEN3VOL, &reg); pmic_reg_read(p, PFUZE100_VGEN3VOL, &reg);
reg &= ~LDO_VOL_MASK; reg &= ~LDO_VOL_MASK;
......
...@@ -199,12 +199,16 @@ static struct i2c_pads_info i2c_pad_info1 = { ...@@ -199,12 +199,16 @@ static struct i2c_pads_info i2c_pad_info1 = {
int power_init_board(void) int power_init_board(void)
{ {
struct pmic *p; struct pmic *p;
unsigned int reg; unsigned int reg, ret;
p = pfuze_common_init(I2C_PMIC); p = pfuze_common_init(I2C_PMIC);
if (!p) if (!p)
return -ENODEV; return -ENODEV;
ret = pfuze_mode_init(p, APS_PFM);
if (ret < 0)
return ret;
/* Enable power of VGEN5 3V3, needed for SD3 */ /* Enable power of VGEN5 3V3, needed for SD3 */
pmic_reg_read(p, PFUZE100_VGEN5VOL, &reg); pmic_reg_read(p, PFUZE100_VGEN5VOL, &reg);
reg &= ~LDO_VOL_MASK; reg &= ~LDO_VOL_MASK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment