From f511c9f6744d4c6ef9fe15214c78580fb42aa2d1 Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Sat, 7 May 2016 02:02:00 +0800 Subject: MLK-12748-1 imx: adjust i.mx7d standby voltage setting i.MX7D VDD_ARM/SOC standby voltage should be 0.95V, adding 25mV margin, so set it to 0.975V; Signed-off-by: Anson Huang --- board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c | 6 +++--- board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c | 6 +++--- board/freescale/mx7d_19x19_ddr3_arm2/mx7d_19x19_ddr3_arm2.c | 6 +++--- board/freescale/mx7d_19x19_lpddr3_arm2/mx7d_19x19_lpddr3_arm2.c | 8 ++++---- board/freescale/mx7dsabresd/mx7dsabresd.c | 6 +++--- 5 files changed, 16 insertions(+), 16 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 b43a618..f79b0b4 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 @@ -321,12 +321,12 @@ int power_init_board(void) pmic_reg_write(p, PFUZE300_SW1AMODE, reg); pmic_reg_write(p, PFUZE300_SW1BMODE, reg); - /* SW1A/1B standby voltage set to 1.025V */ - reg = 0xd; + /* SW1A/1B standby voltage set to 0.975V */ + reg = 0xb; pmic_reg_write(p, PFUZE300_SW1ASTBY, reg); pmic_reg_write(p, PFUZE300_SW1BSTBY, reg); - /* decrease SW1B normal voltage to 0.975V */ + /* set SW1B normal voltage to 0.975V */ pmic_reg_read(p, PFUZE300_SW1BVOLT, ®); reg &= ~0x1f; reg |= PFUZE300_SW1AB_SETP(975); diff --git a/board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c b/board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c index bfaf34a..2bbd7bf 100644 --- a/board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c +++ b/board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c @@ -838,8 +838,8 @@ int power_init_board(void) pmic_reg_write(p, PFUZE300_SW1AMODE, reg); pmic_reg_write(p, PFUZE300_SW1BMODE, reg); - /* SW1A/1B standby voltage set to 1.025V */ - reg = 0xd; + /* SW1A/1B standby voltage set to 0.975V */ + reg = 0xb; pmic_reg_write(p, PFUZE300_SW1ASTBY, reg); pmic_reg_write(p, PFUZE300_SW1BSTBY, reg); @@ -860,7 +860,7 @@ int power_init_board(void) reg |= 0x20; pmic_reg_write(p, PFUZE300_SW2MODE, reg); - /* decrease SW1B normal voltage to 0.975V */ + /* set SW1B normal voltage to 0.975V */ pmic_reg_read(p, PFUZE300_SW1BVOLT, ®); reg &= ~0x1f; reg |= PFUZE300_SW1AB_SETP(975); diff --git a/board/freescale/mx7d_19x19_ddr3_arm2/mx7d_19x19_ddr3_arm2.c b/board/freescale/mx7d_19x19_ddr3_arm2/mx7d_19x19_ddr3_arm2.c index 5e1e178..d5ba34e 100644 --- a/board/freescale/mx7d_19x19_ddr3_arm2/mx7d_19x19_ddr3_arm2.c +++ b/board/freescale/mx7d_19x19_ddr3_arm2/mx7d_19x19_ddr3_arm2.c @@ -625,12 +625,12 @@ int power_init_board(void) pmic_reg_write(p, PFUZE300_SW1AMODE, reg); pmic_reg_write(p, PFUZE300_SW1BMODE, reg); - /* SW1A/1B standby voltage set to 1.025V */ - reg = 0xd; + /* SW1A/1B standby voltage set to 0.975V */ + reg = 0xb; pmic_reg_write(p, PFUZE300_SW1ASTBY, reg); pmic_reg_write(p, PFUZE300_SW1BSTBY, reg); - /* decrease SW1B normal voltage to 0.975V */ + /* set SW1B normal voltage to 0.975V */ pmic_reg_read(p, PFUZE300_SW1BVOLT, ®); reg &= ~0x1f; reg |= PFUZE300_SW1AB_SETP(975); diff --git a/board/freescale/mx7d_19x19_lpddr3_arm2/mx7d_19x19_lpddr3_arm2.c b/board/freescale/mx7d_19x19_lpddr3_arm2/mx7d_19x19_lpddr3_arm2.c index 9a5bf2a..3963943 100644 --- a/board/freescale/mx7d_19x19_lpddr3_arm2/mx7d_19x19_lpddr3_arm2.c +++ b/board/freescale/mx7d_19x19_lpddr3_arm2/mx7d_19x19_lpddr3_arm2.c @@ -600,8 +600,8 @@ static int setup_pmic_voltages(void) return -1; } - /* SW1A/1B standby voltage set to 1.025V */ - value = 0xd; + /* SW1A/1B standby voltage set to 0.975V */ + value = 0xb; if (i2c_write(CONFIG_PMIC_I2C_SLAVE, PFUZE300_SW1ASTBY, 1, &value, 1)) { printf("Set PFUZE300_SW1ASTBY error!\n"); return -1; @@ -611,13 +611,13 @@ static int setup_pmic_voltages(void) return -1; } - /* decrease SW1B normal voltage to 0.975V */ + /* set SW1B normal voltage to 0.975V */ if (i2c_read(CONFIG_PMIC_I2C_SLAVE, PFUZE300_SW1BVOLT, 1, &value, 1)) { printf("Read SW1BVOLT error!\n"); return -1; } value &= ~0x1f; - value |= 0x0b; + value |= 0xb; if (i2c_write(CONFIG_PMIC_I2C_SLAVE, PFUZE300_SW1BVOLT, 1, &value, 1)) { printf("Set SW1BVOLT error!\n"); return -1; diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c index b6123b9..42ca8c5 100644 --- a/board/freescale/mx7dsabresd/mx7dsabresd.c +++ b/board/freescale/mx7dsabresd/mx7dsabresd.c @@ -1049,12 +1049,12 @@ int power_init_board(void) pmic_reg_write(p, PFUZE300_SW1AMODE, reg); pmic_reg_write(p, PFUZE300_SW1BMODE, reg); - /* SW1A/1B standby voltage set to 1.025V */ - reg = 0xd; + /* SW1A/1B standby voltage set to 0.975V */ + reg = 0xb; pmic_reg_write(p, PFUZE300_SW1ASTBY, reg); pmic_reg_write(p, PFUZE300_SW1BSTBY, reg); - /* decrease SW1B normal voltage to 0.975V */ + /* set SW1B normal voltage to 0.975V */ pmic_reg_read(p, PFUZE300_SW1BVOLT, ®); reg &= ~0x1f; reg |= PFUZE300_SW1AB_SETP(975); -- cgit v1.1