1 Index: linux-2.6.25.1/arch/arm/mach-ixp4xx/avila-setup.c
2 ===================================================================
3 --- linux-2.6.25.1.orig/arch/arm/mach-ixp4xx/avila-setup.c
4 +++ linux-2.6.25.1/arch/arm/mach-ixp4xx/avila-setup.c
5 @@ -192,10 +192,28 @@ static struct platform_device avila_leds
6 .dev.platform_data = &avila_leds_data,
9 +static struct resource avila_gpio_resources[] = {
12 + /* FIXME: gpio mask should be model specific */
13 + .start = AVILA_GPIO_MASK,
14 + .end = AVILA_GPIO_MASK,
19 +static struct platform_device avila_gpio = {
22 + .num_resources = ARRAY_SIZE(avila_gpio_resources),
23 + .resource = avila_gpio_resources,
26 static struct platform_device *avila_devices[] __initdata = {
34 static void __init avila_gw23xx_setup(void)
35 Index: linux-2.6.25.1/include/asm-arm/arch-ixp4xx/avila.h
36 ===================================================================
37 --- linux-2.6.25.1.orig/include/asm-arm/arch-ixp4xx/avila.h
38 +++ linux-2.6.25.1/include/asm-arm/arch-ixp4xx/avila.h
41 #define AVILA_GW23XX_LED_USER_GPIO 3
42 #define AVILA_GW23X7_LED_USER_GPIO 4
44 +/* gpio mask used by platform device */
45 +#define AVILA_GPIO_MASK (1 << 1) | (1 << 3) | (1 << 5) | (1 << 7) | (1 << 9)