diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-09-06 13:54:17 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-09-06 13:54:17 +0000 |
commit | d303e45f4bbad9c4fff934cf8f63f33538af8cee (patch) | |
tree | a158dbfb66db345f2bf73c27abca592d52d24a75 /target/linux/brcm63xx/files/arch/mips/bcm63xx/boards | |
parent | cf96a9f7271021d375c42ffcae7290f161a91191 (diff) |
[brcm63xx] add infrastructure to register gpio-input reset button
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17526 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files/arch/mips/bcm63xx/boards')
-rw-r--r-- | target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c index 2c56a3cf7..0a8ecbd36 100644 --- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c @@ -802,6 +802,17 @@ static struct platform_device bcm63xx_gpio_leds = { .dev.platform_data = &bcm63xx_led_data, }; +struct gpio_buttons_platform_data bcm63xx_gpio_buttons_data = { + .poll_interval = 20, +}; + +struct platform_device bcm63xx_gpio_buttons_device = { + .name = "gpio-buttons", + .id = 0, + .dev.platform_data = &bcm63xx_gpio_buttons_data, +}; + + /* * third stage init callback, register all board devices. */ @@ -869,6 +880,11 @@ int __init board_register_devices(void) platform_device_register(&bcm63xx_gpio_leds); + bcm63xx_gpio_buttons_data.nbuttons = 1, + bcm63xx_gpio_buttons_data.buttons = board.reset_btm; + + platform_device_register(&bcm63xx_gpio_buttons); + return 0; } |