diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-08-17 12:46:23 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-09-06 16:22:48 (GMT) |
commit | 78eed0a6d56fd5e4cdf71ffc7ab4e74aed62a5c9 (patch) | |
tree | dfcbda181500e01220e8bb72bc69698e15b407ae /board | |
parent | 938076efa99be181eb3e8e64eee5c298d24663c5 (diff) | |
download | u-boot-fsl-qoriq-78eed0a6d56fd5e4cdf71ffc7ab4e74aed62a5c9.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')
-rw-r--r-- | board/freescale/mx7dsabresd/mx7dsabresd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c index 3098e1a..b936544 100644 --- a/board/freescale/mx7dsabresd/mx7dsabresd.c +++ b/board/freescale/mx7dsabresd/mx7dsabresd.c @@ -578,9 +578,7 @@ int power_init_board(void) printf("PMIC: PFUZE3000 DEV_ID=0x%x REV_ID=0x%x\n", reg, rev_id); /* disable Low Power Mode during standby mode */ - pmic_reg_read(p, PFUZE3000_LDOGCTL, ®); - reg |= 0x1; - pmic_reg_write(p, PFUZE3000_LDOGCTL, reg); + pmic_reg_write(p, PFUZE3000_LDOGCTL, 0x1); return 0; } |