[ARM] 4559/1: pxa: make PXA_LAST_GPIO a run-time variable
authoreric miao <eric.y.miao@gmail.com>
Wed, 29 Aug 2007 09:18:47 +0000 (10:18 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 12 Oct 2007 20:15:32 +0000 (21:15 +0100)
commit30f0b40844e5add7ad879e2f5939ff498f72f3e6
treec899a6cc6b9e3a0d998b6b5e15d3208eae51dcfb
parent37c2f779a4eabf7c6a39e6f9ded0ec3471ed5995
[ARM] 4559/1: pxa: make PXA_LAST_GPIO a run-time variable

This definition produces processor specific code in generic function
pxa_gpio_mode(), thus creating inconsistencies for support of pxa25x
and pxa27x in a single zImage.

As David Brownell suggests, make it a run-time variable and initialize
at run-time according to the number of GPIOs on the processor. For now
the initialization happens in pxa_init_irq_gpio(),  since there is
already a parameter for that, besides, this is and MUST be earlier
than any subsequent calls to pxa_gpio_mode().

Signed-off-by: eric miao <eric.y.miao@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/generic.c
arch/arm/mach-pxa/generic.h
arch/arm/mach-pxa/irq.c
include/asm-arm/arch-pxa/irqs.h