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