reset: max77620: add support to configure GPIO before power reset
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 18 May 2015 15:56:08 +0000 (20:56 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Wed, 20 May 2015 18:32:10 +0000 (11:32 -0700)
commit7ab9bb0cae77d361d4166391c252a447cf785737
tree6d638643b80de5c77f0207475d311fb2b7d8923d
parent5ede3059342fbf7809c78028cb831af89fdb81a1
reset: max77620: add support to configure GPIO before power reset

Add support on MAX77620 power off driver to configure
device's GPIOs to desired state just before system power
OFF or reset. The GPIOs and desired state will be provided
through DT. If desired property is not available then it
will not configure the GPIOs.

bug 1643199

Change-Id: Ibe5d7417e3f98a47f8e56c1ecb8805fc2e371e4d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/744404
Reviewed-on: http://git-master/r/744892
Documentation/devicetree/bindings/mfd/max77620.txt
drivers/power/reset/max77620-poweroff.c