[PATCH] pxa: fix gpio_to_irq() for GPIOs on expander chips

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Dec 23 08:37:39 EST 2009


On Wed, Dec 23, 2009 at 08:48:21PM +0800, Eric Miao wrote:
> On Wed, Dec 23, 2009 at 6:23 PM, Marc Zyngier <maz at misterjones.org> wrote:

> > We could mimic what s3c2410 does to provide some extra GPIO space for
> > platforms that require it (arch/arm/mach-s3c2410/include/mach/gpio.h):

> > #define ARCH_NR_GPIOS ?? (256 + CONFIG_S3C24XX_GPIO_EXTRA)

> That's going to be making it impossible for mach-* to be built into a
> single kernel (call me ambitious :-).

The S3C stuff does try to support this - S3C24XX_GPIO_EXTRA isn't
selected directly but instead boards select other symbols with
particular values and then "default if ..." is used in Kconfig to set
the largest value that was asked for.



More information about the linux-arm-kernel mailing list