2 # Copyright (C) 2006-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 INPUT_MODULES_MENU:=Input modules
10 define KernelPackage/hid
11 SUBMENU:=$(INPUT_MODULES_MENU)
14 FILES:=$(LINUX_DIR)/drivers/hid/hid.ko
15 AUTOLOAD:=$(call AutoLoad,61,hid)
16 $(call AddDepends/input,+kmod-input-evdev)
19 define KernelPackage/hid/description
20 Kernel modules for HID devices
23 $(eval $(call KernelPackage,hid))
26 define KernelPackage/input-core
27 SUBMENU:=$(INPUT_MODULES_MENU)
28 TITLE:=Input device core
30 FILES:=$(LINUX_DIR)/drivers/input/input-core.ko
31 AUTOLOAD:=$(call AutoLoad,19,input-core)
34 define KernelPackage/input-core/description
35 Kernel modules for support of input device
38 $(eval $(call KernelPackage,input-core))
41 define KernelPackage/input-evdev
42 SUBMENU:=$(INPUT_MODULES_MENU)
43 TITLE:=Input event device
44 KCONFIG:=CONFIG_INPUT_EVDEV
45 FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
46 AUTOLOAD:=$(call AutoLoad,60,evdev)
47 $(call AddDepends/input)
50 define KernelPackage/input-evdev/description
51 Kernel modules for support of input device events
54 $(eval $(call KernelPackage,input-evdev))
57 define KernelPackage/input-gpio-buttons
58 SUBMENU:=$(INPUT_MODULES_MENU)
59 TITLE:=Polled GPIO buttons input device
60 DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
62 CONFIG_INPUT_GPIO_BUTTONS \
64 FILES:=$(LINUX_DIR)/drivers/input/misc/gpio_buttons.ko
65 AUTOLOAD:=$(call AutoLoad,62,gpio_buttons)
68 define KernelPackage/input-gpio-buttons/description
69 Kernel module for support polled GPIO buttons input device
72 $(eval $(call KernelPackage,input-gpio-buttons))
75 define KernelPackage/input-gpio-keys
76 SUBMENU:=$(INPUT_MODULES_MENU)
77 TITLE:=GPIO key support
78 DEPENDS:= @GPIO_SUPPORT
80 CONFIG_KEYBOARD_GPIO \
81 CONFIG_INPUT_KEYBOARD=y
82 FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
83 AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
84 $(call AddDepends/input)
87 define KernelPackage/input-gpio-keys/description
88 This driver implements support for buttons connected
89 to GPIO pins of various CPUs (and some other chips).
92 $(eval $(call KernelPackage,input-gpio-keys))
95 define KernelPackage/input-gpio-keys-polled
96 SUBMENU:=$(INPUT_MODULES_MENU)
97 TITLE:=Polled GPIO key support
98 DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
100 CONFIG_KEYBOARD_GPIO_POLLED \
101 CONFIG_INPUT_KEYBOARD=y
102 FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
103 AUTOLOAD:=$(call AutoLoad,62,gpio_keys_polled)
104 $(call AddDepends/input)
107 define KernelPackage/input-gpio-keys-polled/description
108 Kernel module for support polled GPIO keys input device
111 $(eval $(call KernelPackage,input-gpio-keys-polled))
114 define KernelPackage/input-gpio-encoder
115 SUBMENU:=$(INPUT_MODULES_MENU)
116 TITLE:=GPIO rotay encoder
117 KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
118 FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
119 AUTOLOAD:=$(call AutoLoad,62,rotary_encoder)
120 $(call AddDepends/input,@GPIO_SUPPORT)
123 define KernelPackage/gpio-encoder/description
124 Kernel module to use rotary encoders connected to GPIO pins
127 $(eval $(call KernelPackage,input-gpio-encoder))
130 define KernelPackage/input-joydev
131 SUBMENU:=$(INPUT_MODULES_MENU)
132 TITLE:=Joystick device support
133 KCONFIG:=CONFIG_INPUT_JOYDEV
134 FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
135 AUTOLOAD:=$(call AutoLoad,62,joydev)
136 $(call AddDepends/input)
139 define KernelPackage/input-joydev/description
140 Kernel module for joystick support
143 $(eval $(call KernelPackage,input-joydev))
146 define KernelPackage/input-polldev
147 SUBMENU:=$(INPUT_MODULES_MENU)
148 TITLE:=Polled Input device support
149 KCONFIG:=CONFIG_INPUT_POLLDEV
150 FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
151 AUTOLOAD:=$(call AutoLoad,20,input-polldev)
152 $(call AddDepends/input)
155 define KernelPackage/input-polldev/description
156 Kernel module for support of polled input devices
159 $(eval $(call KernelPackage,input-polldev))
162 define KernelPackage/input-matrixkmap
163 SUBMENU:=$(INPUT_MODULES_MENU)
164 TITLE:=Input matrix devices support
165 KCONFIG:=CONFIG_INPUT_MATRIXKMAP
167 FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
168 AUTOLOAD:=$(call AutoLoad,20,matrix-keymap)
169 $(call AddDepends/input)
172 define KernelPackage/input-matrix/description
173 Kernel module support for input matrix devices
176 $(eval $(call KernelPackage,input-matrixkmap))
179 define KernelPackage/acpi-button
180 SUBMENU:=$(INPUT_MODULES_MENU)
181 TITLE:=ACPI Button Support
182 DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
183 KCONFIG:=CONFIG_ACPI_BUTTON
184 FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
185 AUTOLOAD:=$(call AutoLoad,06,button)
188 define KernelPackage/acpi-button/description
189 Kernel module for ACPI Button support
192 $(eval $(call KernelPackage,acpi-button))