diff options
author | eric miao <eric.y.miao@gmail.com> | 2007-08-29 11:18:47 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-10-12 22:15:32 +0200 |
commit | 30f0b40844e5add7ad879e2f5939ff498f72f3e6 (patch) | |
tree | c899a6cc6b9e3a0d998b6b5e15d3208eae51dcfb /arch/arm/mach-pxa/generic.h | |
parent | [ARM] 4558/1: pxa: remove MACH_TYPE_LUBBOCK assignment and leave it to boot l... (diff) | |
download | linux-30f0b40844e5add7ad879e2f5939ff498f72f3e6.tar.xz linux-30f0b40844e5add7ad879e2f5939ff498f72f3e6.zip |
[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>
Diffstat (limited to 'arch/arm/mach-pxa/generic.h')
-rw-r--r-- | arch/arm/mach-pxa/generic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/generic.h b/arch/arm/mach-pxa/generic.h index 5b11741cccff..25bd9bf727b6 100644 --- a/arch/arm/mach-pxa/generic.h +++ b/arch/arm/mach-pxa/generic.h @@ -20,6 +20,7 @@ extern void __init pxa27x_init_irq(void); extern void __init pxa_map_io(void); extern unsigned int get_clk_frequency_khz(int info); +extern int pxa_last_gpio; #define SET_BANK(__nr,__start,__size) \ mi->bank[__nr].start = (__start), \ |