Re: [PATCH 1/2] powerpc/5200: Export port-config
From: Grant Likely <hidden>
Date: 2010-06-10 22:11:42
On Tue, Jun 8, 2010 at 10:46 AM, Eric Millbrandt [off-list ref] wrote:
Allow device drivers to safely modify port-config. =A0This allows device =
drivers
access to gpio pins to manually bit-bang slave devices. Signed-off-by: Eric Millbrandt <redacted>
Unfortunately, still too much exposure of port-config to drivers for my liking. I'd be happier with an API that requests the mode for a specific pin group instead of directly masking & setting bits.... but of course I've also just said in my other email that I'd be happy with all of the GPIO AC97reset logic being contained in arch/powerpc/platforms/52xx which kind of makes the comment moot. :-) g.
--- =A0arch/powerpc/include/asm/mpc52xx.h =A0 =A0 =A0 =A0 =A0 | =A0 =A02 + =A0arch/powerpc/platforms/52xx/mpc52xx_common.c | =A0 61 ++++++++++++++++=
++++++++++
=A02 files changed, 63 insertions(+), 0 deletions(-)