First patches to get to .21 kernel
[openwrt/svn-archive/archive.git] / target / linux / at91-2.6 / patches / 005-activity-led.patch
1 --- linux-2.6.19.2.old/arch/arm/mach-at91rm9200/vlink_leds.c 2007-03-25 19:36:45.000000000 +0200
2 +++ linux-2.6.19.2/arch/arm/mach-at91rm9200/vlink_leds.c 2007-03-29 09:17:39.000000000 +0200
3 @@ -37,13 +37,13 @@
4
5 static inline void at91_led_toggle(unsigned int led)
6 {
7 - unsigned long is_off = at91_get_gpio_value(AT91_PIN_PC7);
8 + unsigned long is_off = at91_get_gpio_value(AT91_PIN_PC14);
9 if (is_off) {
10 - at91_set_gpio_value(AT91_PIN_PC7, 0);
11 - at91_set_gpio_value(AT91_PIN_PC8, 1);
12 + at91_set_gpio_value(AT91_PIN_PC14, 0);
13 + at91_set_gpio_value(AT91_PIN_PC15, 1);
14 } else {
15 - at91_set_gpio_value(AT91_PIN_PC7, 1);
16 - at91_set_gpio_value(AT91_PIN_PC8, 0);
17 + at91_set_gpio_value(AT91_PIN_PC14, 1);
18 + at91_set_gpio_value(AT91_PIN_PC15, 0);
19 }
20 }
21
22 @@ -59,20 +59,11 @@
23
24 switch(evt) {
25 case led_start: /* System startup */
26 -// at91_led_on(at91_leds_cpu);
27 at91_led_toggle(at91_leds_timer);
28 -/*
29 - at91_set_gpio_value(AT91_PIN_PC7, 0);
30 - at91_set_gpio_value(AT91_PIN_PC8, 1);
31 -*/
32 break;
33
34 case led_stop: /* System stop / suspend */
35 at91_led_toggle(at91_leds_timer);
36 -/*
37 - at91_set_gpio_value(AT91_PIN_PC7, 1);
38 - at91_set_gpio_value(AT91_PIN_PC8, 0);
39 -*/
40 break;
41
42 #ifdef CONFIG_LEDS_TIMER
43 @@ -84,18 +75,10 @@
44 #ifdef CONFIG_LEDS_CPU
45 case led_idle_start: /* Entering idle state */
46 at91_led_toggle(at91_leds_timer);
47 -/*
48 - at91_set_gpio_value(AT91_PIN_PC7, 1);
49 - at91_set_gpio_value(AT91_PIN_PC8, 0);
50 -*/
51 break;
52
53 case led_idle_end: /* Exit idle state */
54 at91_led_toggle(at91_leds_timer);
55 -/*
56 - at91_set_gpio_value(AT91_PIN_PC7, 0);
57 - at91_set_gpio_value(AT91_PIN_PC8, 1);
58 -*/
59 break;
60 #endif
61