aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/at91-2.6/patches
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2007-03-30 07:22:52 +0000
committerHamish Guthrie <hcg@openwrt.org>2007-03-30 07:22:52 +0000
commitbe334db29329ad3eccf6f2d4c49f5cff38d26652 (patch)
treec60fa82b57e8c9d656d0a4f80d7bc28f7900fcdf /target/linux/at91-2.6/patches
parent200055d3573e9704e85f46b7be17b4d29055bbdb (diff)
downloadmaster-187ad058-be334db29329ad3eccf6f2d4c49f5cff38d26652.tar.gz
master-187ad058-be334db29329ad3eccf6f2d4c49f5cff38d26652.tar.bz2
master-187ad058-be334db29329ad3eccf6f2d4c49f5cff38d26652.zip
Moved activity led to correct IO ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6761 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/at91-2.6/patches')
-rw-r--r--target/linux/at91-2.6/patches/005-activity-led.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/target/linux/at91-2.6/patches/005-activity-led.patch b/target/linux/at91-2.6/patches/005-activity-led.patch
new file mode 100644
index 0000000000..dbdc0d4cac
--- /dev/null
+++ b/target/linux/at91-2.6/patches/005-activity-led.patch
@@ -0,0 +1,61 @@
+--- linux-2.6.19.2.old/arch/arm/mach-at91rm9200/vlink_leds.c 2007-03-25 19:36:45.000000000 +0200
++++ linux-2.6.19.2/arch/arm/mach-at91rm9200/vlink_leds.c 2007-03-29 09:17:39.000000000 +0200
+@@ -37,13 +37,13 @@
+
+ static inline void at91_led_toggle(unsigned int led)
+ {
+- unsigned long is_off = at91_get_gpio_value(AT91_PIN_PC7);
++ unsigned long is_off = at91_get_gpio_value(AT91_PIN_PC14);
+ if (is_off) {
+- at91_set_gpio_value(AT91_PIN_PC7, 0);
+- at91_set_gpio_value(AT91_PIN_PC8, 1);
++ at91_set_gpio_value(AT91_PIN_PC14, 0);
++ at91_set_gpio_value(AT91_PIN_PC15, 1);
+ } else {
+- at91_set_gpio_value(AT91_PIN_PC7, 1);
+- at91_set_gpio_value(AT91_PIN_PC8, 0);
++ at91_set_gpio_value(AT91_PIN_PC14, 1);
++ at91_set_gpio_value(AT91_PIN_PC15, 0);
+ }
+ }
+
+@@ -59,20 +59,11 @@
+
+ switch(evt) {
+ case led_start: /* System startup */
+-// at91_led_on(at91_leds_cpu);
+ at91_led_toggle(at91_leds_timer);
+-/*
+- at91_set_gpio_value(AT91_PIN_PC7, 0);
+- at91_set_gpio_value(AT91_PIN_PC8, 1);
+-*/
+ break;
+
+ case led_stop: /* System stop / suspend */
+ at91_led_toggle(at91_leds_timer);
+-/*
+- at91_set_gpio_value(AT91_PIN_PC7, 1);
+- at91_set_gpio_value(AT91_PIN_PC8, 0);
+-*/
+ break;
+
+ #ifdef CONFIG_LEDS_TIMER
+@@ -84,18 +75,10 @@
+ #ifdef CONFIG_LEDS_CPU
+ case led_idle_start: /* Entering idle state */
+ at91_led_toggle(at91_leds_timer);
+-/*
+- at91_set_gpio_value(AT91_PIN_PC7, 1);
+- at91_set_gpio_value(AT91_PIN_PC8, 0);
+-*/
+ break;
+
+ case led_idle_end: /* Exit idle state */
+ at91_led_toggle(at91_leds_timer);
+-/*
+- at91_set_gpio_value(AT91_PIN_PC7, 0);
+- at91_set_gpio_value(AT91_PIN_PC8, 1);
+-*/
+ break;
+ #endif
+