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
)
13 DEPENDS
:=+kmod-input-core
+kmod-input-evdev
14 KCONFIG
:=CONFIG_HID CONFIG_HID_SUPPORT
=y CONFIG_HIDRAW
=y CONFIG_HID_BATTERY_STRENGTH
=y
15 FILES
:=$(LINUX_DIR
)/drivers
/hid
/hid.ko
16 AUTOLOAD
:=$(call AutoLoad
,61,hid
)
19 define KernelPackage
/hid
/description
20 Kernel modules for HID devices
23 $(eval
$(call KernelPackage
,hid
))
25 define KernelPackage
/hid-generic
26 SUBMENU
:=$(INPUT_MODULES_MENU
)
27 TITLE
:=Generic HID device support
29 KCONFIG
:=CONFIG_HID_GENERIC
30 FILES
:=$(LINUX_DIR
)/drivers
/hid
/hid-generic.ko
31 AUTOLOAD
:=$(call AutoProbe
,hid-generic
)
34 define KernelPackage
/hid
/description
35 Kernel modules for generic HID device
(e.g. keyboards and mice
) support
38 $(eval
$(call KernelPackage
,hid-generic
))
40 define KernelPackage
/input-core
41 SUBMENU
:=$(INPUT_MODULES_MENU
)
42 TITLE
:=Input device core
44 FILES
:=$(LINUX_DIR
)/drivers
/input
/input-core.ko
47 define KernelPackage
/input-core
/description
48 Kernel modules for support of input device
51 $(eval
$(call KernelPackage
,input-core
))
54 define KernelPackage
/input-evdev
55 SUBMENU
:=$(INPUT_MODULES_MENU
)
56 TITLE
:=Input event device
57 DEPENDS
:=+kmod-input-core
58 KCONFIG
:=CONFIG_INPUT_EVDEV
59 FILES
:=$(LINUX_DIR
)/drivers
/input
/evdev.ko
60 AUTOLOAD
:=$(call AutoLoad
,60,evdev
)
63 define KernelPackage
/input-evdev
/description
64 Kernel modules for support of input device events
67 $(eval
$(call KernelPackage
,input-evdev
))
70 define KernelPackage
/input-gpio-keys
71 SUBMENU
:=$(INPUT_MODULES_MENU
)
72 TITLE
:=GPIO key support
73 DEPENDS
:= @GPIO_SUPPORT
+kmod-input-core
75 CONFIG_KEYBOARD_GPIO \
76 CONFIG_INPUT_KEYBOARD
=y
77 FILES
:=$(LINUX_DIR
)/drivers
/input
/keyboard
/gpio_keys.ko
78 AUTOLOAD
:=$(call AutoProbe
,gpio_keys
,1)
81 define KernelPackage
/input-gpio-keys
/description
82 This driver implements support for buttons connected
83 to GPIO pins of various CPUs
(and some other chips
).
85 See also gpio-button-hotplug which is an alternative
, lower overhead
86 implementation that generates uevents instead of kernel input events.
89 $(eval
$(call KernelPackage
,input-gpio-keys
))
92 define KernelPackage
/input-gpio-keys-polled
93 SUBMENU
:=$(INPUT_MODULES_MENU
)
94 TITLE
:=Polled GPIO key support
95 DEPENDS
:=@GPIO_SUPPORT
+kmod-input-core
97 CONFIG_KEYBOARD_GPIO_POLLED \
98 CONFIG_INPUT_KEYBOARD
=y
99 FILES
:=$(LINUX_DIR
)/drivers
/input
/keyboard
/gpio_keys_polled.ko
100 AUTOLOAD
:=$(call AutoProbe
,gpio_keys_polled
,1)
103 define KernelPackage
/input-gpio-keys-polled
/description
104 Kernel module for support polled GPIO keys input device
106 See also gpio-button-hotplug which is an alternative
, lower overhead
107 implementation that generates uevents instead of kernel input events.
110 $(eval
$(call KernelPackage
,input-gpio-keys-polled
))
113 define KernelPackage
/input-gpio-encoder
114 SUBMENU
:=$(INPUT_MODULES_MENU
)
115 TITLE
:=GPIO rotary encoder
116 DEPENDS
:=@GPIO_SUPPORT
+kmod-input-core
117 KCONFIG
:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
118 FILES
:=$(LINUX_DIR
)/drivers
/input
/misc
/rotary_encoder.ko
119 AUTOLOAD
:=$(call AutoProbe
,rotary_encoder
)
122 define KernelPackage
/input-gpio-encoder
/description
123 Kernel module to use rotary encoders connected to GPIO pins
126 $(eval
$(call KernelPackage
,input-gpio-encoder
))
129 define KernelPackage
/input-joydev
130 SUBMENU
:=$(INPUT_MODULES_MENU
)
131 TITLE
:=Joystick device support
132 DEPENDS
:=+kmod-input-core
133 KCONFIG
:=CONFIG_INPUT_JOYDEV
134 FILES
:=$(LINUX_DIR
)/drivers
/input
/joydev.ko
135 AUTOLOAD
:=$(call AutoProbe
,joydev
)
138 define KernelPackage
/input-joydev
/description
139 Kernel module for joystick support
142 $(eval
$(call KernelPackage
,input-joydev
))
145 define KernelPackage
/input-matrixkmap
146 SUBMENU
:=$(INPUT_MODULES_MENU
)
147 TITLE
:=Input matrix devices support
148 DEPENDS
:=+kmod-input-core
149 KCONFIG
:=CONFIG_INPUT_MATRIXKMAP
150 FILES
:=$(LINUX_DIR
)/drivers
/input
/matrix-keymap.ko
151 AUTOLOAD
:=$(call AutoProbe
,matrix-keymap
)
154 define KernelPackage
/input-matrixkmap
/description
155 Kernel module support for input matrix devices
158 $(eval
$(call KernelPackage
,input-matrixkmap
))
161 define KernelPackage
/input-touchscreen-ads7846
162 SUBMENU
:=$(INPUT_MODULES_MENU
)
163 TITLE
:=ADS7846
/TSC2046
/AD7873 and AD
(S
)7843 based touchscreens
164 DEPENDS
:=+kmod-hwmon-core
+kmod-input-core
+kmod-spi-bitbang
166 CONFIG_INPUT_TOUCHSCREEN
=y \
167 CONFIG_TOUCHSCREEN_ADS7846
168 FILES
:=$(LINUX_DIR
)/drivers
/input
/touchscreen
/ads7846.ko
169 AUTOLOAD
:=$(call AutoProbe
,ads7846
)
172 define KernelPackage
/input-touchscreen-ads7846
/description
173 Kernel module for ADS7846
/TSC2046
/AD7873 and AD
(S
)7843 based touchscreens
176 $(eval
$(call KernelPackage
,input-touchscreen-ads7846
))
179 define KernelPackage
/input-touchscreen-edt-ft5x06
180 SUBMENU
:=$(INPUT_MODULES_MENU
)
181 TITLE
:=EDT FT5x06 and Focaltech FT6236 based touchscreens
182 DEPENDS
:=+kmod-i2c-core
+kmod-input-core
+LINUX_6_6
:kmod-regmap-i2c
184 CONFIG_INPUT_TOUCHSCREEN
=y \
185 CONFIG_TOUCHSCREEN_EDT_FT5X06
186 FILES
:=$(LINUX_DIR
)/drivers
/input
/touchscreen
/edt-ft5x06.ko
187 AUTOLOAD
:=$(call AutoProbe
,edt-ft5x06
)
190 define KernelPackage
/input-touchscreen-edt-ft5x06
/description
191 Kernel module for EDT FT5206
, FT5306
, FT5406
, FT5506
, Evervision FT5726 \
192 and Focaltech FT6236 based touchscreens
195 $(eval
$(call KernelPackage
,input-touchscreen-edt-ft5x06
))
198 define KernelPackage
/keyboard-imx
199 SUBMENU
:=$(INPUT_MODULES_MENU
)
200 TITLE
:=IMX keypad support
201 DEPENDS
:=@
(TARGET_mxs||TARGET_imx
) +kmod-input-matrixkmap
203 CONFIG_KEYBOARD_IMX \
204 CONFIG_INPUT_KEYBOARD
=y
205 FILES
:=$(LINUX_DIR
)/drivers
/input
/keyboard
/imx_keypad.ko
206 AUTOLOAD
:=$(call AutoProbe
,imx_keypad
)
209 define KernelPackage
/keyboard-imx
/description
210 Enable support for IMX keypad port.
213 $(eval
$(call KernelPackage
,keyboard-imx
))
216 define KernelPackage
/input-uinput
217 SUBMENU
:=$(INPUT_MODULES_MENU
)
218 TITLE
:=user input module
219 DEPENDS
:=+kmod-input-core
221 CONFIG_INPUT_MISC
=y \
223 FILES
:=$(LINUX_DIR
)/drivers
/input
/misc
/uinput.ko
224 AUTOLOAD
:=$(call AutoProbe
,uinput
)
227 define KernelPackage
/input-uinput
/description
228 user input modules needed for bluez
231 $(eval
$(call KernelPackage
,input-uinput
))