summaryrefslogtreecommitdiff
path: root/board/freescale/mx7d_12x12_ddr3_arm2
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2015-07-30 11:27:22 +0800
committerAnson Huang <b20788@freescale.com>2015-08-03 09:29:58 +0800
commit1eb44fca8789cc1aa605cbfcc7691829b188629e (patch)
tree0b914d8899de75607ec37f0dc620e7de5ba9bfed /board/freescale/mx7d_12x12_ddr3_arm2
parent8f48bb71889fa1380cece2034242d182097b6e9d (diff)
downloadu-boot-imx-1eb44fca8789cc1aa605cbfcc7691829b188629e.zip
u-boot-imx-1eb44fca8789cc1aa605cbfcc7691829b188629e.tar.gz
u-boot-imx-1eb44fca8789cc1aa605cbfcc7691829b188629e.tar.bz2
MLK-11299 ARM: imx7d: initialize PMIC standby mode and voltage
Datasheet Rev-B defines standby voltage as 1V for i.MX7D, we add 25mV for board level IR drop. Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'board/freescale/mx7d_12x12_ddr3_arm2')
-rw-r--r--board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c b/board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c
index 0c1b4ce..19d1ebb 100644
--- a/board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c
+++ b/board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c
@@ -316,6 +316,16 @@ int power_init_board(void)
reg |= 0x1;
pmic_reg_write(p, PFUZE300_LDOGCTL, reg);
+ /* SW1A/1B mode set to APS/APS */
+ reg = 0x8;
+ pmic_reg_write(p, PFUZE300_SW1AMODE, reg);
+ pmic_reg_write(p, PFUZE300_SW1BMODE, reg);
+
+ /* SW1A/1B standby voltage set to 1.025V */
+ reg = 0xd;
+ pmic_reg_write(p, PFUZE300_SW1ASTBY, reg);
+ pmic_reg_write(p, PFUZE300_SW1BSTBY, reg);
+
return 0;
}
#endif