summaryrefslogtreecommitdiff
path: root/package/kernel/gpio-button-hotplug/src
AgeCommit message (Collapse)Author
2013-08-05gpio-button-hotplug: debounce the initial button state, the first reads at ↵nbd
boot time might be wrong Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37702 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-03gpio-button-hotplug: cleanup, fix compiler warningnbd
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37665 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-03gpio-button-hotplug: fix active_low handling, possibly broken in r37643nbd
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37664 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-01gpio-button-hotplug: use gpio_button_get_value() to initialize last_state.blogic
TL-WR720N-v3 has a slider switch composed of 2 GPIO buttons which can be used to swtich between 3 positions. At leat 1 button is in pressed state in any of those positions. Initialize 'last_state' as 0 (released) will cause the device to automatically enter failsafe mode on every bootup. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37643 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-01gpio-button-hotplug: use gpio_button_get_value() to fetch state.blogic
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37642 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-01gpio-button-hotplug: add inline function gpio_button_get_value().blogic
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37641 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-02gpio-button-hotplug: add support for EV_SWluka
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37130 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-29gpio-button-hotplug: improve gpio button debouncing, verify state changes ↵nbd
over multiple polls. fixes spurious failsafe triggers (#13784) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37090 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-21packages: clean up the package folderblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37007 3c298f89-4303-0410-b956-a3cf2f4a3e73