.active_low = 1,
},
},
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 32,
.active_low = 1,
},
},
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 36,
platform_device_register(&bcm63xx_gpio_leds);
+ /* count number of BUTTONs defined by this device */
-+ while (button_count < ARRAY_SIZE(board.reset_buttons) && board.reset_buttons[button_count].desc)
++ while (button_count < ARRAY_SIZE(board.buttons) && board.buttons[button_count].desc)
+ button_count++;
+
+ if (button_count) {
+ bcm63xx_gpio_buttons_data.nbuttons = button_count;
-+ bcm63xx_gpio_buttons_data.buttons = board.reset_buttons;
++ bcm63xx_gpio_buttons_data.buttons = board.buttons;
+
+ platform_device_register(&bcm63xx_gpio_buttons_device);
+ }
/* GPIO LEDs */
struct gpio_led leds[5];
+
-+ /* Reset button */
-+ struct gpio_button reset_buttons[2];
++ /* Buttons */
++ struct gpio_button buttons[2];
};
#endif /* ! BOARD_BCM963XX_H_ */
- struct gpio_led leds[5];
+ struct gpio_led leds[8];
- /* Reset button */
- struct gpio_button reset_buttons[1];
+ /* Buttons */
+ struct gpio_button buttons[1];
+ },
+ },
+
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "sw2",
+ .gpio = 37,
+++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
@@ -59,6 +59,10 @@ struct board_info {
- /* Reset button */
- struct gpio_button reset_buttons[2];
+ /* Buttons */
+ struct gpio_button buttons[2];
+
+ /* Additional platform devices */
+ struct platform_device **devs;
+ .active_low = 1,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
+ .active_low = 1,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
+ .active_low = 1,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
+ .gpio = 4,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
+ .gpio = 4,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
- struct gpio_led leds[8];
+ struct gpio_led leds[9];
- /* Reset button */
- struct gpio_button reset_buttons[2];
+ /* Buttons */
+ struct gpio_button buttons[2];
.active_low = 1,
},
},
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 32,
.active_low = 1,
},
},
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 36,
platform_device_register(&bcm63xx_gpio_leds);
+ /* count number of BUTTONs defined by this device */
-+ while (button_count < ARRAY_SIZE(board.reset_buttons) && board.reset_buttons[button_count].desc)
++ while (button_count < ARRAY_SIZE(board.buttons) && board.buttons[button_count].desc)
+ button_count++;
+
+ if (button_count) {
+ bcm63xx_gpio_buttons_data.nbuttons = button_count;
-+ bcm63xx_gpio_buttons_data.buttons = board.reset_buttons;
++ bcm63xx_gpio_buttons_data.buttons = board.buttons;
+
+ platform_device_register(&bcm63xx_gpio_buttons_device);
+ }
/* GPIO LEDs */
struct gpio_led leds[5];
+
-+ /* Reset button */
-+ struct gpio_button reset_buttons[2];
++ /* Buttons */
++ struct gpio_button buttons[2];
};
#endif /* ! BOARD_BCM963XX_H_ */
- struct gpio_led leds[5];
+ struct gpio_led leds[8];
- /* Reset button */
- struct gpio_button reset_buttons[1];
+ /* Buttons */
+ struct gpio_button buttons[1];
+ },
+ },
+
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "sw2",
+ .gpio = 37,
+++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
@@ -59,6 +59,10 @@ struct board_info {
- /* Reset button */
- struct gpio_button reset_buttons[2];
+ /* Buttons */
+ struct gpio_button buttons[2];
+
+ /* Additional platform devices */
+ struct platform_device **devs;
+ .active_low = 1,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
+ .active_low = 1,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
+ .active_low = 1,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
+ .gpio = 4,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
+ .gpio = 4,
+ },
+ },
-+ .reset_buttons = {
++ .buttons = {
+ {
+ .desc = "reset",
+ .gpio = 34,
- struct gpio_led leds[8];
+ struct gpio_led leds[9];
- /* Reset button */
- struct gpio_button reset_buttons[2];
+ /* Buttons */
+ struct gpio_button buttons[2];