[brcm63xx] add WPS button support for nb4 boards
[openwrt.git] / target / linux / brcm63xx / patches-2.6.33 / 221-board-NB4.patch
index 57ce7fc..bbd0c62 100644 (file)
@@ -21,7 +21,7 @@
  static struct bcm963xx_nvram nvram;
  static unsigned int mac_addr_used;
  static struct board_info board;
-@@ -713,6 +720,441 @@ static struct board_info __initdata boar
+@@ -713,6 +720,471 @@ static struct board_info __initdata boar
  
        .has_ohci0 = 1,
  };
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
-+                      .active_low     = 1,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
++              {
++                      .desc           = "wps",
++                      .gpio           = 37,
++                      .type           = EV_KEY,
++                      .code           = KEY_WPS_BUTTON,
++                      .threshold      = 3,
++              },
 +      },
 +      .devs = neufbox4_devices,
 +      .num_devs = ARRAY_SIZE(neufbox4_devices),
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
-+                      .active_low     = 1,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
++              {
++                      .desc           = "wps",
++                      .gpio           = 37,
++                      .type           = EV_KEY,
++                      .code           = KEY_WPS_BUTTON,
++                      .threshold      = 3,
++              },
 +      },
 +      .devs = neufbox4_devices,
 +      .num_devs = ARRAY_SIZE(neufbox4_devices),
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
-+                      .active_low     = 1,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
++              {
++                      .desc           = "wps",
++                      .gpio           = 37,
++                      .type           = EV_KEY,
++                      .code           = KEY_WPS_BUTTON,
++                      .threshold      = 3,
++              },
 +      },
 +      .devs = neufbox4_devices,
 +      .num_devs = ARRAY_SIZE(neufbox4_devices),
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
-+                      .active_low     = 1,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
++              {
++                      .desc           = "wps",
++                      .gpio           = 37,
++                      .type           = EV_KEY,
++                      .code           = KEY_WPS_BUTTON,
++                      .threshold      = 3,
++              },
 +      },
 +      .devs = neufbox4_devices,
 +      .num_devs = ARRAY_SIZE(neufbox4_devices),
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
-+                      .active_low     = 1,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
++              {
++                      .desc           = "wps",
++                      .gpio           = 37,
++                      .type           = EV_KEY,
++                      .code           = KEY_WPS_BUTTON,
++                      .threshold      = 3,
++              },
 +      },
 +      .devs = neufbox4_devices,
 +      .num_devs = ARRAY_SIZE(neufbox4_devices),
  #endif
  
  /*
-@@ -743,9 +1185,30 @@ static const struct board_info __initdat
+@@ -743,9 +1215,30 @@ static const struct board_info __initdat
        &board_96358vw2,
        &board_AGPFS0,
        &board_DWVS0,
  /*
   * early init callback, read nvram data from flash and checksum it
   */
-@@ -793,6 +1256,9 @@ void __init board_prom_init(void)
+@@ -793,6 +1286,9 @@ void __init board_prom_init(void)
                return;
        }
  
 +      struct gpio_led leds[9];
  
        /* Reset button */
-       struct gpio_button reset_buttons[1];
+       struct gpio_button reset_buttons[2];
This page took 0.026348 seconds and 4 git commands to generate.