mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[brcm63xx] add infrastructure to register gpio-input reset button
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17526 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user