提交 946db0cb 编写于 作者: F Fabio Estevam 提交者: Stefano Babic

mx7dsabresd: Directly write to register LDOGCTL

Register LDOGCTL contains only bit 0 as a valid bit, so there is no need
to do a read-modify-write operation.

Simplify the code by writing directly to this register.
Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
上级 78eed0a6
...@@ -193,9 +193,7 @@ int power_init_board(void) ...@@ -193,9 +193,7 @@ int power_init_board(void)
reg, rev_id); reg, rev_id);
/* disable Low Power Mode during standby mode */ /* disable Low Power Mode during standby mode */
pmic_reg_read(pfuze, PFUZE3000_LDOGCTL, &reg); pmic_reg_write(pfuze, PFUZE3000_LDOGCTL, 0x1);
reg |= 0x1;
pmic_reg_write(pfuze, PFUZE3000_LDOGCTL, reg);
/* SW1B step ramp up time from 2us to 4us/25mV */ /* SW1B step ramp up time from 2us to 4us/25mV */
reg = 0x40; reg = 0x40;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册