[brcm63xx] fix leds naming for all bcm63xx boards
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 503-board-CPVA642.patch
index 23b6268afd585023aa803779c5623862e0498e17..2edadfdcc1347cea9cda650b7bc48287aeff5d47 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -664,6 +664,98 @@ static struct board_info __initdata boar
+@@ -663,6 +663,96 @@ static struct board_info __initdata boar
        },
  };
  
 +      .has_ehci0 = 1,
 +
 +      .leds = {
-+          /* bi-color */
 +              {
-+                      .name           = "power:red",
++                      .name           = "CPVA642:red:power",
 +                      .gpio           = 14,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "power:green",
++                      .name           = "CPVA642:green:power",
 +                      .gpio           = 11,
 +                      .active_low     = 1,
 +                      .default_trigger = "default-on",
 +              },
 +              {
-+                      .name           = "wifi:red",
++                      .name           = "CPVA642:red:wifi",
 +                      .gpio           = 6,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "wifi:green",
++                      .name           = "CPVA642:green:wifi",
 +                      .gpio           = 28,
 +                      .active_low     = 0,
 +              },
 +              {
-+                      .name           = "link:red",
++                      .name           = "CPVA642:red:link",
 +                      .gpio           = 9,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "link:green",
++                      .name           = "CPVA642:green:link",
 +                      .gpio           = 10,
 +                      .active_low     = 1,
 +              },
-+              /* green only */
 +              {
-+                      .name           = "ether",
++                      .name           = "CPVA642:green:ether",
 +                      .gpio           = 1,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "phone1",
++                      .name           = "CPVA642:green:phone1",
 +                      .gpio           = 4,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "phone2",
++                      .name           = "CPVA642:green:phone2",
 +                      .gpio           = 2,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "usb",
++                      .name           = "CPVA642:green:usb",
 +                      .gpio           = 3,
 +                      .active_low     = 1,
 +              },
@@ -99,7 +97,7 @@
  static struct board_info __initdata board_AGPFS0 = {
        .name                           = "AGPF-S0",
        .expected_cpu_id                = 0x6358,
-@@ -1227,6 +1319,7 @@ static const struct board_info __initdat
+@@ -1226,6 +1316,7 @@ static const struct board_info __initdat
        &board_96358vw,
        &board_96358vw2,
        &board_AGPFS0,