pwm support can't be compiled as a module
[openwrt/openwrt.git] / package / kernel / linux / modules / input.mk
1 #
2 # Copyright (C) 2006-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 INPUT_MODULES_MENU:=Input modules
9
10 define KernelPackage/hid
11 SUBMENU:=$(INPUT_MODULES_MENU)
12 TITLE:=HID Devices
13 KCONFIG:=CONFIG_HID CONFIG_HIDRAW=y
14 FILES:=$(LINUX_DIR)/drivers/hid/hid.ko
15 AUTOLOAD:=$(call AutoLoad,61,hid)
16 $(call AddDepends/input,+kmod-input-evdev)
17 endef
18
19 define KernelPackage/hid/description
20 Kernel modules for HID devices
21 endef
22
23 $(eval $(call KernelPackage,hid))
24
25 define KernelPackage/hid-generic
26 SUBMENU:=$(INPUT_MODULES_MENU)
27 TITLE:=Generic HID device support
28 KCONFIG:=CONFIG_HID_GENERIC
29 FILES:=$(LINUX_DIR)/drivers/hid/hid-generic.ko
30 AUTOLOAD:=$(call AutoProbe,hid-generic)
31 $(call AddDepends/hid)
32 endef
33
34 define KernelPackage/hid/description
35 Kernel modules for generic HID device (e.g. keyboards and mice) support
36 endef
37
38 $(eval $(call KernelPackage,hid-generic))
39
40 define KernelPackage/input-core
41 SUBMENU:=$(INPUT_MODULES_MENU)
42 TITLE:=Input device core
43 KCONFIG:=CONFIG_INPUT
44 FILES:=$(LINUX_DIR)/drivers/input/input-core.ko
45 endef
46
47 define KernelPackage/input-core/description
48 Kernel modules for support of input device
49 endef
50
51 $(eval $(call KernelPackage,input-core))
52
53
54 define KernelPackage/input-evdev
55 SUBMENU:=$(INPUT_MODULES_MENU)
56 TITLE:=Input event device
57 KCONFIG:=CONFIG_INPUT_EVDEV
58 FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
59 AUTOLOAD:=$(call AutoLoad,60,evdev)
60 $(call AddDepends/input)
61 endef
62
63 define KernelPackage/input-evdev/description
64 Kernel modules for support of input device events
65 endef
66
67 $(eval $(call KernelPackage,input-evdev))
68
69
70 define KernelPackage/input-gpio-keys
71 SUBMENU:=$(INPUT_MODULES_MENU)
72 TITLE:=GPIO key support
73 DEPENDS:= @GPIO_SUPPORT
74 KCONFIG:= \
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)
79 $(call AddDepends/input)
80 endef
81
82 define KernelPackage/input-gpio-keys/description
83 This driver implements support for buttons connected
84 to GPIO pins of various CPUs (and some other chips).
85 endef
86
87 $(eval $(call KernelPackage,input-gpio-keys))
88
89
90 define KernelPackage/input-gpio-keys-polled
91 SUBMENU:=$(INPUT_MODULES_MENU)
92 TITLE:=Polled GPIO key support
93 DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
94 KCONFIG:= \
95 CONFIG_KEYBOARD_GPIO_POLLED \
96 CONFIG_INPUT_KEYBOARD=y
97 FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
98 AUTOLOAD:=$(call AutoProbe,gpio_keys_polled,1)
99 $(call AddDepends/input)
100 endef
101
102 define KernelPackage/input-gpio-keys-polled/description
103 Kernel module for support polled GPIO keys input device
104 endef
105
106 $(eval $(call KernelPackage,input-gpio-keys-polled))
107
108
109 define KernelPackage/input-gpio-encoder
110 SUBMENU:=$(INPUT_MODULES_MENU)
111 TITLE:=GPIO rotay encoder
112 KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
113 FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
114 AUTOLOAD:=$(call AutoProbe,rotary_encoder)
115 $(call AddDepends/input,@GPIO_SUPPORT)
116 endef
117
118 define KernelPackage/gpio-encoder/description
119 Kernel module to use rotary encoders connected to GPIO pins
120 endef
121
122 $(eval $(call KernelPackage,input-gpio-encoder))
123
124
125 define KernelPackage/input-joydev
126 SUBMENU:=$(INPUT_MODULES_MENU)
127 TITLE:=Joystick device support
128 KCONFIG:=CONFIG_INPUT_JOYDEV
129 FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
130 AUTOLOAD:=$(call AutoProbe,joydev)
131 $(call AddDepends/input)
132 endef
133
134 define KernelPackage/input-joydev/description
135 Kernel module for joystick support
136 endef
137
138 $(eval $(call KernelPackage,input-joydev))
139
140
141 define KernelPackage/input-polldev
142 SUBMENU:=$(INPUT_MODULES_MENU)
143 TITLE:=Polled Input device support
144 KCONFIG:=CONFIG_INPUT_POLLDEV
145 FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
146 $(call AddDepends/input)
147 endef
148
149 define KernelPackage/input-polldev/description
150 Kernel module for support of polled input devices
151 endef
152
153 $(eval $(call KernelPackage,input-polldev))
154
155
156 define KernelPackage/input-matrixkmap
157 SUBMENU:=$(INPUT_MODULES_MENU)
158 TITLE:=Input matrix devices support
159 KCONFIG:=CONFIG_INPUT_MATRIXKMAP
160 DEPENDS:=@!LINUX_3_3
161 FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
162 AUTOLOAD:=$(call AutoProbe,matrix-keymap)
163 $(call AddDepends/input)
164 endef
165
166 define KernelPackage/input-matrix/description
167 Kernel module support for input matrix devices
168 endef
169
170 $(eval $(call KernelPackage,input-matrixkmap))
171
172
173 define KernelPackage/acpi-button
174 SUBMENU:=$(INPUT_MODULES_MENU)
175 TITLE:=ACPI Button Support
176 DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
177 KCONFIG:=CONFIG_ACPI_BUTTON
178 FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
179 AUTOLOAD:=$(call AutoLoad,06,button)
180 endef
181
182 define KernelPackage/acpi-button/description
183 Kernel module for ACPI Button support
184 endef
185
186 $(eval $(call KernelPackage,acpi-button))
187
188
189 define KernelPackage/keyboard-imx
190 SUBMENU:=$(INPUT_MODULES_MENU)
191 TITLE:=IMX keypad support
192 DEPENDS:=@(TARGET_mxs||TARGET_imx6) +kmod-input-matrixkmap
193 KCONFIG:= \
194 CONFIG_KEYBOARD_IMX \
195 CONFIG_INPUT_KEYBOARD=y
196 FILES:=$(LINUX_DIR)/drivers/input/keyboard/imx_keypad.ko
197 AUTOLOAD:=$(call AutoProbe,imx_keypad)
198 endef
199
200 define KernelPackage/keyboard-imx/description
201 Enable support for IMX keypad port.
202 endef
203
204 $(eval $(call KernelPackage,keyboard-imx))