bcm63xx: Add a fixup for rt2x00 devices.
[openwrt.git] / target / linux / brcm63xx / patches-3.3 / 505-board_spw500v.patch
index fff5d68..cea3730 100644 (file)
@@ -1,9 +1,10 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -187,6 +187,67 @@ static struct board_info __initdata boar
+@@ -558,6 +558,67 @@ static struct board_info __initdata boar
+               },
        },
  };
++
 +static struct board_info __initdata board_spw500v = {
 +      .name                           = "SPW500V",
 +      .expected_cpu_id                = 0x6348,
 +
 +      .leds = {
 +              {
-+                      .name           = "power:red",
++                      .name           = "SPW500V:red:power",
 +                      .gpio           = 1,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "power:green",
++                      .name           = "SPW500V:green:power",
 +                      .gpio           = 0,
 +                      .active_low     = 1,
 +                      .default_trigger = "default-on",
 +              },
 +              {
-+                      .name           = "ppp",
++                      .name           = "SPW500V:green:ppp",
 +                      .gpio           = 3,
 +                      .active_low     = 1,
 +              },
-+              {       .name           = "pstn",
++              {       .name           = "SPW500V:green:pstn",
 +                      .gpio           = 28,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "voip",
++                      .name           = "SPW500V:green:voip",
 +                      .gpio           = 32,
 +                      .active_low     = 1,
 +              },
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_RESTART,
-+                      .debounce_interval = 60,
++                      .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
 +              },
 +      },
 +};
-+
  #endif
  
  /*
-@@ -1364,6 +1425,7 @@ static const struct board_info __initdat
+@@ -1454,6 +1515,7 @@ static const struct board_info __initdat
        &board_96348gw_a,
        &board_rta1025w_16,
        &board_96348_D4PW,