diff options
author | eric miao <eric.miao@marvell.com> | 2008-03-04 10:18:38 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-19 12:29:04 +0200 |
commit | 689c04a3904d68343a9258e2de12412e3bb89d09 (patch) | |
tree | 777b047f0a21f87296dd9e29bea06108b6e03e91 /arch/arm/mach-pxa/Makefile | |
parent | [ARM] pxa: move GPIO sysdev outside of generic.c into gpio.c (diff) | |
download | linux-689c04a3904d68343a9258e2de12412e3bb89d09.tar.xz linux-689c04a3904d68343a9258e2de12412e3bb89d09.zip |
[ARM] pxa: make pxa_gpio_irq_type() processor generic
The main issue here is that pxa3xx does not have GAFRx registers,
access directly to these registers should be avoided for pxa3xx:
1. introduce __gpio_is_occupied() to indicate the GAFRx and GPDRx
registers are already configured on pxa{25x,27x} while returns
0 always on pxa3xx
2. pxa_gpio_mode(gpio | GPIO_IN) is replaced directly with assign-
ment of GPDRx, the side effect of this change is that the pin
_must_ be configured before use, pxa_gpio_irq_type() will not
change the pin to GPIO, as this restriction is sane, esp. with
the new MFP framework
Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/Makefile')
0 files changed, 0 insertions, 0 deletions