bcm47xx compile fix for .21, thanks to noz
[openwrt.git] / target / linux / at91-2.6 / patches / 006-change-gpios.patch
1 --- linux-2.6.19.2.old/arch/arm/mach-at91rm9200/vlink_leds.c 2007-04-26 14:11:34.000000000 +0200
2 +++ linux-2.6.19.2/arch/arm/mach-at91rm9200/vlink_leds.c 2007-04-26 14:09:01.000000000 +0200
3 @@ -98,32 +98,31 @@
4 // printk("leds_init()\n");
5
6 /* Enable PIO to access the LEDs */
7 - at91_set_gpio_output(AT91_PIN_PC7, 1);
8 - at91_set_gpio_output(AT91_PIN_PC8, 1);
9 - at91_set_gpio_output(AT91_PIN_PC14, 1);
10 - at91_set_gpio_output(AT91_PIN_PC15, 1);
11 - at91_set_gpio_output(AT91_PIN_PB14, 1);
12 - at91_set_gpio_output(AT91_PIN_PB15, 1);
13 - at91_set_gpio_output(AT91_PIN_PB16, 1);
14 - at91_set_gpio_output(AT91_PIN_PB17, 1);
15 -
16 - at91_set_gpio_output(AT91_PIN_PB9, 1);
17 - at91_set_gpio_output(AT91_PIN_PB10, 1);
18 - at91_set_gpio_output(AT91_PIN_PB11, 1);
19 - at91_set_gpio_output(AT91_PIN_PB12, 1);
20 -
21 - at91_set_gpio_input(AT91_PIN_PB8, 1);
22 - at91_set_gpio_input(AT91_PIN_PB22, 1);
23 - at91_set_gpio_input(AT91_PIN_PA19, 1);
24 - at91_set_gpio_input(AT91_PIN_PA24, 1);
25 - at91_set_gpio_output(AT91_PIN_PA29, 1);
26 - at91_set_gpio_output(AT91_PIN_PB2, 1);
27 - at91_set_gpio_output(AT91_PIN_PB3, 1);
28 - at91_set_gpio_output(AT91_PIN_PB4, 1);
29 -
30 - at91_set_gpio_input(AT91_PIN_PB27, 1);
31 - at91_set_gpio_input(AT91_PIN_PB28, 1);
32 - at91_set_gpio_input(AT91_PIN_PB29, 1);
33 + at91_set_gpio_output(AT91_PIN_PC7, 1); // LED FRONT AP1
34 + at91_set_gpio_output(AT91_PIN_PC8, 1); // LED FRONT BP1
35 + at91_set_gpio_output(AT91_PIN_PC14, 1); // LED FRONT BP2
36 + at91_set_gpio_output(AT91_PIN_PC15, 1); // LED FRONT AP2
37 + at91_set_gpio_output(AT91_PIN_PB14, 1); // LED BACK AP1
38 + at91_set_gpio_output(AT91_PIN_PB15, 1); // LED BACK BP1
39 + at91_set_gpio_output(AT91_PIN_PB16, 1); // LED BACK AP2
40 + at91_set_gpio_output(AT91_PIN_PB17, 1); // LED BACK BP2
41 +
42 + at91_set_gpio_output(AT91_PIN_PB9, 1); // ENBSC3
43 + at91_set_gpio_output(AT91_PIN_PB10, 1); // ENBSC2
44 + at91_set_gpio_output(AT91_PIN_PB11, 1); // ENBSC1
45 + at91_set_gpio_output(AT91_PIN_PB12, 1); // GSMONOFF
46 +
47 + at91_set_gpio_input(AT91_PIN_PB8, 1); // JIGPRESENT
48 + at91_set_gpio_input(AT91_PIN_PB22, 1); // PWR_IND
49 + at91_set_gpio_input(AT91_PIN_PA19, 1); // P1DTR
50 + at91_set_gpio_input(AT91_PIN_PA24, 1); // P2DTR
51 + at91_set_gpio_output(AT91_PIN_PB29, 1); // P2DCD
52 + at91_set_gpio_output(AT91_PIN_PB2, 1); // P2RI
53 + at91_set_gpio_output(AT91_PIN_PB6, 1); // P1DCD
54 + at91_set_gpio_output(AT91_PIN_PB7, 1); // P1RI
55 +
56 + at91_set_gpio_input(AT91_PIN_PB27, 1); // UDB_CNX
57 + at91_set_gpio_output(AT91_PIN_PB28, 1); // UDB_PUP
58
59 leds_event = at91_leds_event;
60
This page took 0.054522 seconds and 5 git commands to generate.