projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07a8eeb
)
[brcm63xx] add infrastructure to register gpio-input reset button
author
Florian Fainelli
<florian@openwrt.org>
Sun, 6 Sep 2009 13:54:17 +0000
(13:54 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Sun, 6 Sep 2009 13:54:17 +0000
(13:54 +0000)
SVN-Revision: 17526
target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
patch
|
blob
|
history
target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h
patch
|
blob
|
history
target/linux/brcm63xx/profiles/200-GW6X00.mk
patch
|
blob
|
history
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 2c56a3cf7830fcaaa44aa171051447f7d0ed8b7b..0a8ecbd36add14d0e209104444831990a279a10c 100644
(file)
--- 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,
};
.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.
*/
/*
* third stage init callback, register all board devices.
*/
@@
-869,6
+880,11
@@
int __init board_register_devices(void)
platform_device_register(&bcm63xx_gpio_leds);
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;
}
return 0;
}
diff --git
a/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h
b/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h
index d154b2859ee2d5a83dc1b7deb41dba4a85902b6a..e07a07c88c5a39f685a2211816fee7db176944f3 100644
(file)
--- a/
target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h
+++ b/
target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h
@@
-56,6
+56,9
@@
struct board_info {
/* GPIO LEDs */
struct gpio_led leds[5];
/* GPIO LEDs */
struct gpio_led leds[5];
+
+ /* Reset button */
+ unsigned int reset_btn;
};
#endif /* ! BOARD_BCM963XX_H_ */
};
#endif /* ! BOARD_BCM963XX_H_ */
diff --git
a/target/linux/brcm63xx/profiles/200-GW6X00.mk
b/target/linux/brcm63xx/profiles/200-GW6X00.mk
index e2e8c0119162208bfffd5072e47339440ca69518..8b7695fa58061214421d27cca10e8e632d88b215 100644
(file)
--- a/
target/linux/brcm63xx/profiles/200-GW6X00.mk
+++ b/
target/linux/brcm63xx/profiles/200-GW6X00.mk
@@
-10,7
+10,7
@@
define Profile/GW6X00
PACKAGES:=kmod-b43 kmod-usb-core kmod-usb-ohci kmod-usb-storage \
kmod-fs-ext2 kmod-nls-cp437 kmod-nls-iso8859-1 kmod-fs-vfat \
kmod-loop e2fsprogs kmod-spi-bitbang kmod-bcm63xx-spi \
PACKAGES:=kmod-b43 kmod-usb-core kmod-usb-ohci kmod-usb-storage \
kmod-fs-ext2 kmod-nls-cp437 kmod-nls-iso8859-1 kmod-fs-vfat \
kmod-loop e2fsprogs kmod-spi-bitbang kmod-bcm63xx-spi \
- kmod-ipt-nathelper-extra \
+ kmod-ipt-nathelper-extra
kmod-input-gpio-buttons
\
wpa-supplicant iw
endef
wpa-supplicant iw
endef