X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/923b2ef28bf79a33b06000900a9fc521b7373641..347c600521d2864d728e192cff1c1124d54b23ea:/target/linux/brcm63xx/patches-2.6.33/221-board-NB4.patch diff --git a/target/linux/brcm63xx/patches-2.6.33/221-board-NB4.patch b/target/linux/brcm63xx/patches-2.6.33/221-board-NB4.patch index 6e58b5f72..7c17b887d 100644 --- a/target/linux/brcm63xx/patches-2.6.33/221-board-NB4.patch +++ b/target/linux/brcm63xx/patches-2.6.33/221-board-NB4.patch @@ -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, }; @@ -117,13 +117,19 @@ + .active_low = 1, + }, + }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 34, -+ .active_low = 1, + .type = EV_KEY, -+ .code = BTN_0, ++ .code = KEY_RESTART, ++ .threshold = 3, ++ }, ++ { ++ .desc = "wps", ++ .gpio = 37, ++ .type = EV_KEY, ++ .code = KEY_WPS_BUTTON, + .threshold = 3, + }, + }, @@ -203,13 +209,19 @@ + .active_low = 1, + }, + }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 34, -+ .active_low = 1, + .type = EV_KEY, -+ .code = BTN_0, ++ .code = KEY_RESTART, ++ .threshold = 3, ++ }, ++ { ++ .desc = "wps", ++ .gpio = 37, ++ .type = EV_KEY, ++ .code = KEY_WPS_BUTTON, + .threshold = 3, + }, + }, @@ -287,13 +299,19 @@ + .active_low = 1, + }, + }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 34, -+ .active_low = 1, + .type = EV_KEY, -+ .code = BTN_0, ++ .code = KEY_RESTART, ++ .threshold = 3, ++ }, ++ { ++ .desc = "wps", ++ .gpio = 37, ++ .type = EV_KEY, ++ .code = KEY_WPS_BUTTON, + .threshold = 3, + }, + }, @@ -368,13 +386,19 @@ + .gpio = 4, + }, + }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 34, -+ .active_low = 1, + .type = EV_KEY, -+ .code = BTN_0, ++ .code = KEY_RESTART, ++ .threshold = 3, ++ }, ++ { ++ .desc = "wps", ++ .gpio = 37, ++ .type = EV_KEY, ++ .code = KEY_WPS_BUTTON, + .threshold = 3, + }, + }, @@ -447,13 +471,19 @@ + .gpio = 4, + }, + }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 34, -+ .active_low = 1, + .type = EV_KEY, -+ .code = BTN_0, ++ .code = KEY_RESTART, ++ .threshold = 3, ++ }, ++ { ++ .desc = "wps", ++ .gpio = 37, ++ .type = EV_KEY, ++ .code = KEY_WPS_BUTTON, + .threshold = 3, + }, + }, @@ -463,7 +493,7 @@ #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, @@ -494,7 +524,7 @@ /* * 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; } @@ -513,5 +543,5 @@ - struct gpio_led leds[8]; + struct gpio_led leds[9]; - /* Reset button */ - struct gpio_button reset_buttons[1]; + /* Buttons */ + struct gpio_button buttons[2];