iwinfo: don't use the txpower value from debugfs for now, it does not match the value...
[librecmc/librecmc.git] / target / linux / brcm63xx / patches-3.3 / 503-board-CPVA642.patch
index 3d00133b6f4be341882d688263b6b77623e57bc5..1b88865aa77f27e36254584922cfa1b5a8c72843 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -663,6 +663,98 @@ static struct board_info __initdata boar
+@@ -664,6 +664,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,
-@@ -1226,6 +1318,7 @@ static const struct board_info __initdat
+@@ -1317,6 +1407,7 @@ static const struct board_info __initdat
        &board_96358vw,
        &board_96358vw2,
        &board_AGPFS0,
        &board_DWVS0,
        &board_nb4_ser_r0,
        &board_nb4_ser_r1,
---- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
-+++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
-@@ -52,7 +52,7 @@ struct board_info {
-       struct bcm63xx_dsp_platform_data dsp;
-       /* GPIO LEDs */
--      struct gpio_led leds[9];
-+      struct gpio_led leds[10];
-       /* Buttons */
-       struct gpio_keys_button buttons[4];