summaryrefslogtreecommitdiff
path: root/target/linux/x86/alix2
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2011-08-25 09:35:45 +0000
committerFlorian Fainelli <florian@openwrt.org>2011-08-25 09:35:45 +0000
commitd2652dee9dcc907051911b8a75050277d4c22dcb (patch)
tree82ed2bd8fb7b9ba25870f794922a11d4cf654674 /target/linux/x86/alix2
parent71adaae258ad2502ddcd1db2469bc5ca09bcd1d8 (diff)
downloadmtk-20170518-d2652dee9dcc907051911b8a75050277d4c22dcb.zip
mtk-20170518-d2652dee9dcc907051911b8a75050277d4c22dcb.tar.gz
mtk-20170518-d2652dee9dcc907051911b8a75050277d4c22dcb.tar.bz2
update alix2 platform driver
Add support for Ed Wildgoose's alix platform driver plus my enhancement to add GPIO soft button support. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> SVN-Revision: 28081
Diffstat (limited to 'target/linux/x86/alix2')
-rw-r--r--target/linux/x86/alix2/base-files/etc/config/system26
-rw-r--r--target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot13
-rw-r--r--target/linux/x86/alix2/target.mk3
3 files changed, 41 insertions, 1 deletions
diff --git a/target/linux/x86/alix2/base-files/etc/config/system b/target/linux/x86/alix2/base-files/etc/config/system
new file mode 100644
index 0000000..28134b6
--- /dev/null
+++ b/target/linux/x86/alix2/base-files/etc/config/system
@@ -0,0 +1,26 @@
+config system
+ option hostname OpenWrt
+ option timezone UTC
+
+config rdate
+ option interface wan
+
+config led
+ option default 1
+ option name LAN
+ option sysfs 'alix:1'
+ option trigger netdev
+ option mode 'tx rx'
+ option dev 'br-lan'
+
+config led
+ option default 1
+ option name WiFi
+ option sysfs 'alix:2'
+ option trigger 'phy0tpt'
+
+config led
+ option default 0
+ option name Heartbeat
+ option sysfs 'alix:3'
+ option trigger 'heartbeat'
diff --git a/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot b/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot
new file mode 100644
index 0000000..bf893c1
--- /dev/null
+++ b/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+logger -t button -p daemon.info "$BUTTON/$ACTION"
+
+case "$BUTTON/$ACTION" in
+
+reset/released)
+ reboot -f
+ ;;
+
+esac
+
+exit 0
diff --git a/target/linux/x86/alix2/target.mk b/target/linux/x86/alix2/target.mk
index e8fd737..0c1c3d2 100644
--- a/target/linux/x86/alix2/target.mk
+++ b/target/linux/x86/alix2/target.mk
@@ -15,7 +15,8 @@ DEFAULT_PACKAGES += \
kmod-cfg80211 kmod-mac80211 \
kmod-mppe kmod-pppoe kmod-pppo2ltp \
kmod-ath kmod-ath5k kmod-ath9k \
- kmod-leds-gpio kmod-input-gpio-buttons \
+ kmod-leds-gpio kmod-input-gpio-keys-polled \
+ kmod-button-hotplug \
kmod-ledtrig-heartbeat kmod-ledtrig-gpio \
kmod-ledtrig-netdev kmod-ledtrig-netfilter \
kmod-cpu-msr \