aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2010-05-30 01:33:09 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2010-05-30 01:33:09 +0000
commit82edb6eafa67daa92624a9042a5d646e3bac88b5 (patch)
tree783337c7cd16efdfeea4c337917b0f5c9040410f
parentcc8fba84418b680cc4c5f042fcdaddc7d790ed2c (diff)
downloadupstream-82edb6eafa67daa92624a9042a5d646e3bac88b5.tar.gz
upstream-82edb6eafa67daa92624a9042a5d646e3bac88b5.tar.bz2
upstream-82edb6eafa67daa92624a9042a5d646e3bac88b5.zip
brcm63xx: Added preinit reset button module loading for devices known to support it and for which /lib/brcm63xx.sh has the definitions (currently only 96348GW - Tecom 6x00)
SVN-Revision: 21628
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx
new file mode 100644
index 0000000000..f33825f965
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+. /lib/brcm63xx.sh
+
+enable_reset_button() {
+ if [ "$brcm63xx_has_reset_button" = "true" ]; then
+ insmod input-core
+ insmod input-polldev
+ insmod gpio_buttons
+ insmod button-hotplug
+ fi
+}
+
+boot_hook_add preinit_main enable_reset_button
+
+