prepare 2.6.24 on ixp4xx
[openwrt.git] / target / linux / ixp4xx / patches-2.6.24 / 301-avila_led.patch
1 Index: linux-2.6.23.14/arch/arm/mach-ixp4xx/avila-setup.c
2 ===================================================================
3 --- linux-2.6.23.14.orig/arch/arm/mach-ixp4xx/avila-setup.c 2008-01-25 18:26:06.000000000 +0100
4 +++ linux-2.6.23.14/arch/arm/mach-ixp4xx/avila-setup.c 2008-01-25 18:44:02.000000000 +0100
5 @@ -165,12 +165,34 @@
6 }
7 };
8
9 +#ifdef CONFIG_LEDS_IXP4XX
10 +static struct resource avila_led_resources[] = {
11 + {
12 + .name = "user",
13 + .start = AVILA_LED_USER_GPIO,
14 + .end = AVILA_LED_USER_GPIO,
15 + .flags = IXP4XX_GPIO_LOW,
16 + },
17 +};
18 +
19 +static struct platform_device avila_leds = {
20 + .name = "IXP4XX-GPIO-LED",
21 + .id = -1,
22 + .num_resources = ARRAY_SIZE(avila_led_resources),
23 + .resource = avila_led_resources,
24 +};
25 +#endif
26 +
27 +
28 static struct platform_device *avila_devices[] __initdata = {
29 &avila_i2c_gpio,
30 &avila_flash,
31 &avila_uart,
32 &avila_eth[0],
33 &avila_eth[1],
34 +#ifdef CONFIG_LEDS_IXP4XX
35 + &avila_leds,
36 +#endif
37 };
38
39 static char avila_rtc_probe[] __initdata = "rtc-ds1672.probe=0,0x68 ";
40 Index: linux-2.6.23.14/include/asm-arm/arch-ixp4xx/avila.h
41 ===================================================================
42 --- linux-2.6.23.14.orig/include/asm-arm/arch-ixp4xx/avila.h 2008-01-25 18:26:02.000000000 +0100
43 +++ linux-2.6.23.14/include/asm-arm/arch-ixp4xx/avila.h 2008-01-25 18:26:06.000000000 +0100
44 @@ -36,4 +36,5 @@
45 #define AVILA_PCI_INTC_PIN 9
46 #define AVILA_PCI_INTD_PIN 8
47
48 -
49 +/* User LED */
50 +#define AVILA_LED_USER_GPIO 3
This page took 0.042388 seconds and 5 git commands to generate.