]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx7dsabresd: Directly write to register LDOGCTL
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 17 Aug 2016 12:46:24 +0000 (09:46 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 6 Sep 2016 16:22:48 +0000 (18:22 +0200)
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>
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c

index c2138612a10adf00d035093455df875676836dd4..5938c160af26631cc874936c48d6678866cc8791 100644 (file)
@@ -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;