modules: make all led and button modules used during boot priority 1
[openwrt.git] / package / kernel / 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 AutoLoad,62,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   AUTOLOAD:=$(call AutoLoad,19,input-core,1)
46 endef
47
48 define KernelPackage/input-core/description
49  Kernel modules for support of input device
50 endef
51
52 $(eval $(call KernelPackage,input-core))
53
54
55 define KernelPackage/input-evdev
56   SUBMENU:=$(INPUT_MODULES_MENU)
57   TITLE:=Input event device
58   KCONFIG:=CONFIG_INPUT_EVDEV
59   FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
60   AUTOLOAD:=$(call AutoLoad,60,evdev)
61   $(call AddDepends/input)
62 endef
63
64 define KernelPackage/input-evdev/description
65  Kernel modules for support of input device events
66 endef
67
68 $(eval $(call KernelPackage,input-evdev))
69
70
71 define KernelPackage/input-gpio-buttons
72   SUBMENU:=$(INPUT_MODULES_MENU)
73   TITLE:=Polled GPIO buttons input device
74   DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
75   KCONFIG:= \
76         CONFIG_INPUT_GPIO_BUTTONS \
77         CONFIG_INPUT_MISC=y
78   FILES:=$(LINUX_DIR)/drivers/input/misc/gpio_buttons.ko
79   AUTOLOAD:=$(call AutoLoad,62,gpio_buttons,1)
80 endef
81
82 define KernelPackage/input-gpio-buttons/description
83  Kernel module for support polled GPIO buttons input device
84 endef
85
86 $(eval $(call KernelPackage,input-gpio-buttons))
87
88
89 define KernelPackage/input-gpio-keys
90   SUBMENU:=$(INPUT_MODULES_MENU)
91   TITLE:=GPIO key support
92   DEPENDS:= @GPIO_SUPPORT
93   KCONFIG:= \
94         CONFIG_KEYBOARD_GPIO \
95         CONFIG_INPUT_KEYBOARD=y
96   FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
97   AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
98   $(call AddDepends/input)
99 endef
100
101 define KernelPackage/input-gpio-keys/description
102  This driver implements support for buttons connected
103  to GPIO pins of various CPUs (and some other chips).
104 endef
105
106 $(eval $(call KernelPackage,input-gpio-keys))
107
108
109 define KernelPackage/input-gpio-keys-polled
110   SUBMENU:=$(INPUT_MODULES_MENU)
111   TITLE:=Polled GPIO key support
112   DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
113   KCONFIG:= \
114         CONFIG_KEYBOARD_GPIO_POLLED \
115         CONFIG_INPUT_KEYBOARD=y
116   FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
117   AUTOLOAD:=$(call AutoLoad,62,gpio_keys_polled,1)
118   $(call AddDepends/input)
119 endef
120
121 define KernelPackage/input-gpio-keys-polled/description
122  Kernel module for support polled GPIO keys input device
123 endef
124
125 $(eval $(call KernelPackage,input-gpio-keys-polled))
126
127
128 define KernelPackage/input-gpio-encoder
129   SUBMENU:=$(INPUT_MODULES_MENU)
130   TITLE:=GPIO rotay encoder
131   KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
132   FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
133   AUTOLOAD:=$(call AutoLoad,62,rotary_encoder)
134   $(call AddDepends/input,@GPIO_SUPPORT)
135 endef
136
137 define KernelPackage/gpio-encoder/description
138  Kernel module to use rotary encoders connected to GPIO pins
139 endef
140
141 $(eval $(call KernelPackage,input-gpio-encoder))
142
143
144 define KernelPackage/input-joydev
145   SUBMENU:=$(INPUT_MODULES_MENU)
146   TITLE:=Joystick device support
147   KCONFIG:=CONFIG_INPUT_JOYDEV
148   FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
149   AUTOLOAD:=$(call AutoLoad,62,joydev)
150   $(call AddDepends/input)
151 endef
152
153 define KernelPackage/input-joydev/description
154   Kernel module for joystick support
155 endef
156
157 $(eval $(call KernelPackage,input-joydev))
158
159
160 define KernelPackage/input-polldev
161   SUBMENU:=$(INPUT_MODULES_MENU)
162   TITLE:=Polled Input device support
163   KCONFIG:=CONFIG_INPUT_POLLDEV
164   FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
165   AUTOLOAD:=$(call AutoLoad,20,input-polldev,1)
166   $(call AddDepends/input)
167 endef
168
169 define KernelPackage/input-polldev/description
170  Kernel module for support of polled input devices
171 endef
172
173 $(eval $(call KernelPackage,input-polldev))
174
175
176 define KernelPackage/input-matrixkmap
177    SUBMENU:=$(INPUT_MODULES_MENU)
178    TITLE:=Input matrix devices support
179    KCONFIG:=CONFIG_INPUT_MATRIXKMAP
180    DEPENDS:=@!LINUX_3_3
181    FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
182    AUTOLOAD:=$(call AutoLoad,20,matrix-keymap)
183    $(call AddDepends/input)
184 endef
185
186 define KernelPackage/input-matrix/description
187   Kernel module support for input matrix devices
188 endef
189
190 $(eval $(call KernelPackage,input-matrixkmap))
191
192
193 define KernelPackage/acpi-button
194   SUBMENU:=$(INPUT_MODULES_MENU)
195   TITLE:=ACPI Button Support
196   DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
197   KCONFIG:=CONFIG_ACPI_BUTTON
198   FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
199   AUTOLOAD:=$(call AutoLoad,06,button)
200 endef
201
202 define KernelPackage/acpi-button/description
203  Kernel module for ACPI Button support
204 endef
205
206 $(eval $(call KernelPackage,acpi-button))