summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-08-17 09:46:24 -0300
committerStefano Babic <sbabic@denx.de>2016-09-06 18:22:48 +0200
commit946db0cbd01090b35eb1439fa7c4ca7e015fc18b (patch)
tree57a31c29ba239de20cce6b14e05c5cba8ab65b7e /board
parent78eed0a6d56fd5e4cdf71ffc7ab4e74aed62a5c9 (diff)
downloadu-boot-imx-946db0cbd01090b35eb1439fa7c4ca7e015fc18b.zip
u-boot-imx-946db0cbd01090b35eb1439fa7c4ca7e015fc18b.tar.gz
u-boot-imx-946db0cbd01090b35eb1439fa7c4ca7e015fc18b.tar.bz2
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: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index c213861..5938c16 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -193,9 +193,7 @@ int power_init_board(void)
reg, rev_id);
/* disable Low Power Mode during standby mode */
- pmic_reg_read(pfuze, PFUZE3000_LDOGCTL, &reg);
- reg |= 0x1;
- pmic_reg_write(pfuze, PFUZE3000_LDOGCTL, reg);
+ pmic_reg_write(pfuze, PFUZE3000_LDOGCTL, 0x1);
/* SW1B step ramp up time from 2us to 4us/25mV */
reg = 0x40;