aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Mignanti <c.mignanti@gmail.com>2010-01-15 13:30:46 +0000
committerClaudio Mignanti <c.mignanti@gmail.com>2010-01-15 13:30:46 +0000
commite17e2be08e63b3735e2e16c07638477129fce527 (patch)
tree292bc9c05579e2cd3ec78b60dc6d72c575401daa
parentf3fce22b2f68562da556731871ac7586bdae82e6 (diff)
downloadupstream-e17e2be08e63b3735e2e16c07638477129fce527.tar.gz
upstream-e17e2be08e63b3735e2e16c07638477129fce527.tar.bz2
upstream-e17e2be08e63b3735e2e16c07638477129fce527.zip
bcm63xx: add gpio leds to alice gate
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19152 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c49
-rw-r--r--target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h2
2 files changed, 50 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
index d9c4a20c60..ba5719045e 100644
--- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -559,6 +559,55 @@ static struct board_info __initdata board_AGPFS0 = {
.has_ohci0 = 1,
.has_ehci0 = 1,
+
+ .leds = {
+ /*Each led on alice gate is bi-color so final char */
+ /* is r for red and g for green leds */
+ {
+ .name = "pwrr",
+ .gpio = 5,
+ .active_low = 1,
+ },
+ {
+ .name = "pwrg",
+ .gpio = 4,
+ .active_low = 1,
+ .default_trigger = "default-on",
+ },
+ {
+ .name = "wifir",
+ .gpio = 23,
+ .active_low = 1,
+ },
+ {
+ .name = "wifig",
+ .gpio = 22,
+ .active_low = 1,
+ },
+ {
+ .name = "usr1r",
+ .gpio = 27,
+ .active_low = 1,
+ },
+ {
+ .name = "usr1g",
+ .gpio = 26,
+ .active_low = 1,
+ },
+ {
+ .name = "usr2r",
+ .gpio = 30,
+ .active_low = 1,
+ },
+ {
+ .name = "usr2g",
+ .gpio = 29,
+ .active_low = 1,
+ },
+ },
+
+ .reset_btn = 37; /* sw2 */
+ /* sw1 is connected to gpio34*/
};
static struct board_info __initdata board_DWVS0 = {
diff --git a/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h b/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h
index e07a07c88c..0482c69548 100644
--- a/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h
+++ b/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h
@@ -55,7 +55,7 @@ struct board_info {
struct bcm63xx_dsp_platform_data dsp;
/* GPIO LEDs */
- struct gpio_led leds[5];
+ struct gpio_led leds[8];
/* Reset button */
unsigned int reset_btn;