diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-08-17 15:46:24 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-09-06 19:22:48 +0300 |
commit | 946db0cbd01090b35eb1439fa7c4ca7e015fc18b (patch) | |
tree | 57a31c29ba239de20cce6b14e05c5cba8ab65b7e /board/freescale/mx6ul_14x14_evk | |
parent | 78eed0a6d56fd5e4cdf71ffc7ab4e74aed62a5c9 (diff) | |
download | u-boot-946db0cbd01090b35eb1439fa7c4ca7e015fc18b.tar.xz |
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/freescale/mx6ul_14x14_evk')
-rw-r--r-- | board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 4 |
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 c2138612a1..5938c160af 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 |= 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; |