Add support for european DSL-502t leds (#2880)
[openwrt.git] / target / linux / at91 / patches-2.6.21 / 006-change-gpios.patch
1 --- linux-2.6.21.1.orig/arch/arm/mach-at91/board-vlink.c 2007-05-28 15:53:31.000000000 +0200
2 +++ linux-2.6.21.1/arch/arm/mach-at91/board-vlink.c 2007-05-28 15:58:46.000000000 +0200
3 @@ -149,6 +149,33 @@
4 #endif
5 /* LEDs */
6 // at91_gpio_leds(vlink_leds, ARRAY_SIZE(vlink_leds));
7 +
8 +/* Other LED's */
9 + at91_set_gpio_output(AT91_PIN_PC7, 1); // LED FRONT AP1
10 + at91_set_gpio_output(AT91_PIN_PC8, 1); // LED FRONT BP1
11 + at91_set_gpio_output(AT91_PIN_PB14, 1); // LED BACK AP1
12 + at91_set_gpio_output(AT91_PIN_PB15, 1); // LED BACK BP1
13 + at91_set_gpio_output(AT91_PIN_PB16, 1); // LED BACK AP2
14 + at91_set_gpio_output(AT91_PIN_PB17, 1); // LED BACK BP2
15 +
16 +/* SIM Cards */
17 + at91_set_gpio_output(AT91_PIN_PB9, 1); // ENBSC3
18 + at91_set_gpio_output(AT91_PIN_PB10, 1); // ENBSC2
19 + at91_set_gpio_output(AT91_PIN_PB11, 1); // ENBSC1
20 +
21 +/* GSM Module Control */
22 + at91_set_gpio_output(AT91_PIN_PB12, 1); // GSMONOFF
23 +
24 +/* Test jig presence detection */
25 + at91_set_gpio_input(AT91_PIN_PB8, 1); // JIGPRESENT
26 +
27 +/* Power indicator */
28 + at91_set_gpio_input(AT91_PIN_PB22, 1); // PWR_IND
29 +
30 +/* USB Device control */
31 + at91_set_gpio_input(AT91_PIN_PB27, 1); // UDB_CNX
32 + at91_set_gpio_output(AT91_PIN_PB28, 1); // UDB_PUP
33 +
34 }
35
36 MACHINE_START(VLINK, "FDL VersaLink")
This page took 0.045348 seconds and 5 git commands to generate.