ARM: PXA2xx: MFP: fix bug with MFP_LPM_KEEP_OUTPUT
authorIgor Grinberg <grinberg@compulab.co.il>
Thu, 12 Apr 2012 12:43:28 +0000 (15:43 +0300)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Fri, 27 Apr 2012 03:11:50 +0000 (11:11 +0800)
commita13b878780ea98d8415203c4502a8fc5bc614656
tree2ffed2d5b92cca357fec94a15d3427783693a9ab
parent9f9d27e3f3317f39c91c286b6184f1ca05452968
ARM: PXA2xx: MFP: fix bug with MFP_LPM_KEEP_OUTPUT

Pins that have MFP_LPM_KEEP_OUTPUT set and are configured for output
must retain the output state in low power mode.
Currently, the pin direction configuration is overrided with values
in gpdr_lpm[] array and do not obey the MFP_LPM_KEEP_OUTPUT setting.

Fix the above bug and add some documentation to clarify the
MFP_LPM_KEEP_OUTPUT setting purpose.

Reported-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Tested-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-pxa/include/mach/mfp-pxa2xx.h
arch/arm/mach-pxa/mfp-pxa2xx.c