summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoia Prant2025-03-21 16:13:57 +0000
committerHauke Mehrtens2025-09-19 22:54:41 +0000
commitf38abc02482d810b54a0e9e53ace0720d2a11f20 (patch)
tree9899ce2ed4a459827599d99c558d6a3274180257
parentae7fc18cf2686fbafffb5f8b78948f9e411fe907 (diff)
downloadopenwrt-f38abc02482d810b54a0e9e53ace0720d2a11f20.tar.gz
kernel: add kmod-input-matrix-keypad package
This module contains driver for GPIO driven matrix keypad. Signed-off-by: Coia Prant <coiaprant@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17471 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/kernel/linux/modules/input.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/input.mk b/package/kernel/linux/modules/input.mk
index 717f8d469d..b780c1c4b2 100644
--- a/package/kernel/linux/modules/input.mk
+++ b/package/kernel/linux/modules/input.mk
@@ -143,6 +143,23 @@ endef
$(eval $(call KernelPackage,input-gpio-encoder))
+define KernelPackage/input-matrix-keypad
+ SUBMENU:=$(INPUT_MODULES_MENU)
+ TITLE:=GPIO matrix keypad support
+ DEPENDS:= @GPIO_SUPPORT +kmod-input-core +kmod-input-matrixkmap
+ KCONFIG:= \
+ CONFIG_KEYBOARD_MATRIX \
+ CONFIG_INPUT_KEYBOARD=y
+ FILES:=$(LINUX_DIR)/drivers/input/keyboard/matrix_keypad.ko
+ AUTOLOAD:=$(call AutoProbe,matrix_keypad,1)
+endef
+
+define KernelPackage/input-matrix-keypad/description
+ Enable support for GPIO driven matrix keypad.
+endef
+
+$(eval $(call KernelPackage,input-matrix-keypad))
+
define KernelPackage/input-joydev
SUBMENU:=$(INPUT_MODULES_MENU)
TITLE:=Joystick device support