1 Index: linux-2.6.32.9/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 ===================================================================
3 --- linux-2.6.32.9.orig/arch/mips/bcm63xx/boards/board_bcm963xx.c 2010-02-28 18:37:27.000000000 +0100
4 +++ linux-2.6.32.9/arch/mips/bcm63xx/boards/board_bcm963xx.c 2010-02-28 18:41:36.000000000 +0100
6 #include <linux/mtd/partitions.h>
7 #include <linux/mtd/physmap.h>
8 #include <linux/ssb/ssb.h>
9 +#include <linux/gpio_buttons.h>
10 +#include <linux/input.h>
11 #include <asm/addrspace.h>
12 #include <bcm63xx_board.h>
13 #include <bcm63xx_cpu.h>
30 static struct board_info __initdata board_96348gw = {
47 static struct board_info __initdata board_FAST2404 = {
49 .dev.platform_data = &bcm63xx_led_data,
52 +static struct gpio_buttons_platform_data bcm63xx_gpio_buttons_data = {
53 + .poll_interval = 20,
56 +static struct platform_device bcm63xx_gpio_buttons_device = {
57 + .name = "gpio-buttons",
59 + .dev.platform_data = &bcm63xx_gpio_buttons_data,
63 * third stage init callback, register all board devices.
67 platform_device_register(&bcm63xx_gpio_leds);
69 + if (board.reset_buttons) {
70 + bcm63xx_gpio_buttons_data.nbuttons = ARRAY_SIZE(board.reset_buttons);
71 + bcm63xx_gpio_buttons_data.buttons = board.reset_buttons;
73 + platform_device_register(&bcm63xx_gpio_buttons_device);
79 Index: linux-2.6.32.9/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
80 ===================================================================
81 --- linux-2.6.32.9.orig/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h 2010-02-28 18:36:33.000000000 +0100
82 +++ linux-2.6.32.9/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h 2010-02-28 18:36:58.000000000 +0100
86 struct gpio_led leds[5];
89 + struct gpio_button reset_buttons[1];
92 #endif /* ! BOARD_BCM963XX_H_ */