powerpc/85xx: Workaround MPC8572/MPC8536 GPIO 1 errata.
authorFelix Radensky <felix@embedded-sol.com>
Wed, 12 Aug 2009 05:57:39 +0000 (08:57 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 11 Dec 2009 03:11:08 +0000 (21:11 -0600)
commitc1a676dfa2fa25fb9ec77c92ebe3ff580648b6ac
tree748ab9277c1d78cc83c27dd040722c681bcda7dc
parent78331aded913d76c7ff996a1a0747d54b057460b
powerpc/85xx: Workaround MPC8572/MPC8536 GPIO 1 errata.

On MPC8572 and MPC8536 the status of GPIO pins configured
as output cannot be determined by reading GPDAT register.
Workaround by reading the status of input pins from GPDAT
and the status of output pins from a shadow register.

Signed-off-by: Felix Radensky <felix@embedded-sol.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/mpc8xxx_gpio.c