]> git.baikalelectronics.ru Git - uboot.git/commit
warp7: Fix the write to the LDOGCTL PMIC register
authorFabio Estevam <festevam@gmail.com>
Thu, 14 Feb 2019 13:37:51 +0000 (11:37 -0200)
committerStefano Babic <sbabic@denx.de>
Wed, 13 Mar 2019 08:14:35 +0000 (09:14 +0100)
commit3ec353ee2ae9f4fab776f3c9f75c53d887346b0b
tree59a5030dec165578b28938569444595fb94254a7
parentbac124e6869864413c57d82f9107ab7902aa219e
warp7: Fix the write to the LDOGCTL PMIC register

The third parameter of the pmic_clrsetbits() function is the mask
to the register and the correct mask is 1 not 0.

Since the LDOGCTL only contains a single valid bit (bit 0),
we can use pmic_reg_write() and write 1 directly, which fixes
the problem in a simpler way and use the original pmic function
that was used prior to the DM PMIC conversion.

Fixes: 5b7fa75466a3 ("arm: imx7s-warp: Convert to DM PMIC")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
board/warp7/warp7.c