MLK-11550-1: regulator: pfuze100: restore some registers after LPSR for pfuze3000
authorRobin Gong <b38343@freescale.com>
Tue, 15 Sep 2015 04:46:39 +0000 (12:46 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:07 +0000 (14:49 -0500)
commit3b2d96f9955a374b53d407ac8dad7281ead6d7f4
tree32444a75a66724692295fbcdf781d60f99105a84
parent2800beca5a60cafcdc716a6c2f7f38c8be22bb0c
MLK-11550-1: regulator: pfuze100: restore some registers after LPSR for pfuze3000

Some registers on pfuze3000 will lost after exit from LPSR, need restore them,
otherwise system may reboot with below command after system enter LPSR one time:

root@imx7d_all:~# echo enabled > /sys/class/tty/ttymxc0/power/wakeup
root@imx7d_all:~# echo mem > /sys/power/state

because LDOGCTL not recover as 1. Add 'fsl,lpsr-mode' property to this case,
please add this property if your board support LPSR mode as imx7d-12x12-lpddr3-arm2
board.

Signed-off-by: Robin Gong <b38343@freescale.com>
Documentation/devicetree/bindings/regulator/pfuze100.txt
drivers/regulator/pfuze100-regulator.c