[kernel] add lm92 kernel module
[openwrt/svn-archive/archive.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
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
26 define KernelPackage/input-core
27 SUBMENU:=$(INPUT_MODULES_MENU)
28 TITLE:=Input device core
29 KCONFIG:=CONFIG_INPUT
30 FILES:=$(LINUX_DIR)/drivers/input/input-core.ko
31 AUTOLOAD:=$(call AutoLoad,19,input-core)
32 endef
33
34 define KernelPackage/input-core/description
35 Kernel modules for support of input device
36 endef
37
38 $(eval $(call KernelPackage,input-core))
39
40
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)
48 endef
49
50 define KernelPackage/input-evdev/description
51 Kernel modules for support of input device events
52 endef
53
54 $(eval $(call KernelPackage,input-evdev))
55
56
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
61 KCONFIG:= \
62 CONFIG_INPUT_GPIO_BUTTONS \
63 CONFIG_INPUT_MISC=y
64 FILES:=$(LINUX_DIR)/drivers/input/misc/gpio_buttons.ko
65 AUTOLOAD:=$(call AutoLoad,62,gpio_buttons)
66 endef
67
68 define KernelPackage/input-gpio-buttons/description
69 Kernel module for support polled GPIO buttons input device
70 endef
71
72 $(eval $(call KernelPackage,input-gpio-buttons))
73
74
75 define KernelPackage/input-gpio-keys
76 SUBMENU:=$(INPUT_MODULES_MENU)
77 TITLE:=GPIO key support
78 DEPENDS:= @GPIO_SUPPORT
79 KCONFIG:= \
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)
85 endef
86
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).
90 endef
91
92 $(eval $(call KernelPackage,input-gpio-keys))
93
94
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
99 KCONFIG:= \
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)
105 endef
106
107 define KernelPackage/input-gpio-keys-polled/description
108 Kernel module for support polled GPIO keys input device
109 endef
110
111 $(eval $(call KernelPackage,input-gpio-keys-polled))
112
113
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)
121 endef
122
123 define KernelPackage/gpio-encoder/description
124 Kernel module to use rotary encoders connected to GPIO pins
125 endef
126
127 $(eval $(call KernelPackage,input-gpio-encoder))
128
129
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)
137 endef
138
139 define KernelPackage/input-joydev/description
140 Kernel module for joystick support
141 endef
142
143 $(eval $(call KernelPackage,input-joydev))
144
145
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)
153 endef
154
155 define KernelPackage/input-polldev/description
156 Kernel module for support of polled input devices
157 endef
158
159 $(eval $(call KernelPackage,input-polldev))
160
161
162 define KernelPackage/input-matrixkmap
163 SUBMENU:=$(INPUT_MODULES_MENU)
164 TITLE:=Input matrix devices support
165 KCONFIG:=CONFIG_INPUT_MATRIXKMAP
166 DEPENDS:=@!LINUX_3_3
167 FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
168 AUTOLOAD:=$(call AutoLoad,20,matrix-keymap)
169 $(call AddDepends/input)
170 endef
171
172 define KernelPackage/input-matrix/description
173 Kernel module support for input matrix devices
174 endef
175
176 $(eval $(call KernelPackage,input-matrixkmap))
177
178
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)
186 endef
187
188 define KernelPackage/acpi-button/description
189 Kernel module for ACPI Button support
190 endef
191
192 $(eval $(call KernelPackage,acpi-button))