aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/at91-2.6
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2007-05-03 05:11:34 +0000
committerHamish Guthrie <hcg@openwrt.org>2007-05-03 05:11:34 +0000
commitd1c6fb0d65fa2b59e0e33897b2b4aed54c1211fb (patch)
tree46c7d727a773655c89e70d1ccc63cc0a677ba1b5 /target/linux/at91-2.6
parent73494b473e77083f2184be294d75cdaec8c75b7d (diff)
downloadupstream-d1c6fb0d65fa2b59e0e33897b2b4aed54c1211fb.tar.gz
upstream-d1c6fb0d65fa2b59e0e33897b2b4aed54c1211fb.tar.bz2
upstream-d1c6fb0d65fa2b59e0e33897b2b4aed54c1211fb.zip
Modified GPIO allocation per rev1.02 board
SVN-Revision: 7083
Diffstat (limited to 'target/linux/at91-2.6')
-rw-r--r--target/linux/at91-2.6/patches/006-change-gpios.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/target/linux/at91-2.6/patches/006-change-gpios.patch b/target/linux/at91-2.6/patches/006-change-gpios.patch
new file mode 100644
index 0000000000..357d1fc0db
--- /dev/null
+++ b/target/linux/at91-2.6/patches/006-change-gpios.patch
@@ -0,0 +1,60 @@
+--- linux-2.6.19.2.old/arch/arm/mach-at91rm9200/vlink_leds.c 2007-04-26 14:11:34.000000000 +0200
++++ linux-2.6.19.2/arch/arm/mach-at91rm9200/vlink_leds.c 2007-04-26 14:09:01.000000000 +0200
+@@ -98,32 +98,31 @@
+ // printk("leds_init()\n");
+
+ /* Enable PIO to access the LEDs */
+- at91_set_gpio_output(AT91_PIN_PC7, 1);
+- at91_set_gpio_output(AT91_PIN_PC8, 1);
+- at91_set_gpio_output(AT91_PIN_PC14, 1);
+- at91_set_gpio_output(AT91_PIN_PC15, 1);
+- at91_set_gpio_output(AT91_PIN_PB14, 1);
+- at91_set_gpio_output(AT91_PIN_PB15, 1);
+- at91_set_gpio_output(AT91_PIN_PB16, 1);
+- at91_set_gpio_output(AT91_PIN_PB17, 1);
+-
+- at91_set_gpio_output(AT91_PIN_PB9, 1);
+- at91_set_gpio_output(AT91_PIN_PB10, 1);
+- at91_set_gpio_output(AT91_PIN_PB11, 1);
+- at91_set_gpio_output(AT91_PIN_PB12, 1);
+-
+- at91_set_gpio_input(AT91_PIN_PB8, 1);
+- at91_set_gpio_input(AT91_PIN_PB22, 1);
+- at91_set_gpio_input(AT91_PIN_PA19, 1);
+- at91_set_gpio_input(AT91_PIN_PA24, 1);
+- at91_set_gpio_output(AT91_PIN_PA29, 1);
+- at91_set_gpio_output(AT91_PIN_PB2, 1);
+- at91_set_gpio_output(AT91_PIN_PB3, 1);
+- at91_set_gpio_output(AT91_PIN_PB4, 1);
+-
+- at91_set_gpio_input(AT91_PIN_PB27, 1);
+- at91_set_gpio_input(AT91_PIN_PB28, 1);
+- at91_set_gpio_input(AT91_PIN_PB29, 1);
++ at91_set_gpio_output(AT91_PIN_PC7, 1); // LED FRONT AP1
++ at91_set_gpio_output(AT91_PIN_PC8, 1); // LED FRONT BP1
++ at91_set_gpio_output(AT91_PIN_PC14, 1); // LED FRONT BP2
++ at91_set_gpio_output(AT91_PIN_PC15, 1); // LED FRONT AP2
++ at91_set_gpio_output(AT91_PIN_PB14, 1); // LED BACK AP1
++ at91_set_gpio_output(AT91_PIN_PB15, 1); // LED BACK BP1
++ at91_set_gpio_output(AT91_PIN_PB16, 1); // LED BACK AP2
++ at91_set_gpio_output(AT91_PIN_PB17, 1); // LED BACK BP2
++
++ at91_set_gpio_output(AT91_PIN_PB9, 1); // ENBSC3
++ at91_set_gpio_output(AT91_PIN_PB10, 1); // ENBSC2
++ at91_set_gpio_output(AT91_PIN_PB11, 1); // ENBSC1
++ at91_set_gpio_output(AT91_PIN_PB12, 1); // GSMONOFF
++
++ at91_set_gpio_input(AT91_PIN_PB8, 1); // JIGPRESENT
++ at91_set_gpio_input(AT91_PIN_PB22, 1); // PWR_IND
++ at91_set_gpio_input(AT91_PIN_PA19, 1); // P1DTR
++ at91_set_gpio_input(AT91_PIN_PA24, 1); // P2DTR
++ at91_set_gpio_output(AT91_PIN_PB29, 1); // P2DCD
++ at91_set_gpio_output(AT91_PIN_PB2, 1); // P2RI
++ at91_set_gpio_output(AT91_PIN_PB6, 1); // P1DCD
++ at91_set_gpio_output(AT91_PIN_PB7, 1); // P1RI
++
++ at91_set_gpio_input(AT91_PIN_PB27, 1); // UDB_CNX
++ at91_set_gpio_output(AT91_PIN_PB28, 1); // UDB_PUP
+
+ leds_event = at91_leds_event;
+