[ARM] pxa: Avoid pxa_gpio_mode() in gpio_direction_{in,out}put()
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 2 Oct 2007 13:28:01 +0000 (14:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 15 Oct 2007 17:53:55 +0000 (18:53 +0100)
commit3e0cc7ee045fb53e8215fed7442455c0cee0ee93
tree0fc2829d0678224f95cbece240f28a7b58231d1c
parent39cbd4896e39e2b93c33635a9abc1a4405827e14
[ARM] pxa: Avoid pxa_gpio_mode() in gpio_direction_{in,out}put()

pxa_gpio_mode() is a universal call that fiddles with the GAFR
(gpio alternate function register.)  GAFR does not exist on PXA3
CPUs, but instead the alternate functions are controlled via the
MFP support code.

Platforms are expected to configure the MFP according to their
needs in their platform support code rather than drivers.  We
extend this idea to the GAFR, and make the gpio_direction_*()
functions purely operate on the GPIO level.

This means platform support code is entirely responsible for
configuring the GPIOs alternate functions on all PXA CPU types.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/generic.c
include/asm-arm/arch-pxa/gpio.h
This page took 0.024499 seconds and 5 git commands to generate.