kernel: remove gpio_buttons
[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 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-keys
72 SUBMENU:=$(INPUT_MODULES_MENU)
73 TITLE:=GPIO key support
74 DEPENDS:= @GPIO_SUPPORT
75 KCONFIG:= \
76 CONFIG_KEYBOARD_GPIO \
77 CONFIG_INPUT_KEYBOARD=y
78 FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
79 AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
80 $(call AddDepends/input)
81 endef
82
83 define KernelPackage/input-gpio-keys/description
84 This driver implements support for buttons connected
85 to GPIO pins of various CPUs (and some other chips).
86 endef
87
88 $(eval $(call KernelPackage,input-gpio-keys))
89
90
91 define KernelPackage/input-gpio-keys-polled
92 SUBMENU:=$(INPUT_MODULES_MENU)
93 TITLE:=Polled GPIO key support
94 DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
95 KCONFIG:= \
96 CONFIG_KEYBOARD_GPIO_POLLED \
97 CONFIG_INPUT_KEYBOARD=y
98 FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
99 AUTOLOAD:=$(call AutoLoad,62,gpio_keys_polled,1)
100 $(call AddDepends/input)
101 endef
102
103 define KernelPackage/input-gpio-keys-polled/description
104 Kernel module for support polled GPIO keys input device
105 endef
106
107 $(eval $(call KernelPackage,input-gpio-keys-polled))
108
109
110 define KernelPackage/input-gpio-encoder
111 SUBMENU:=$(INPUT_MODULES_MENU)
112 TITLE:=GPIO rotay encoder
113 KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
114 FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
115 AUTOLOAD:=$(call AutoLoad,62,rotary_encoder)
116 $(call AddDepends/input,@GPIO_SUPPORT)
117 endef
118
119 define KernelPackage/gpio-encoder/description
120 Kernel module to use rotary encoders connected to GPIO pins
121 endef
122
123 $(eval $(call KernelPackage,input-gpio-encoder))
124
125
126 define KernelPackage/input-joydev
127 SUBMENU:=$(INPUT_MODULES_MENU)
128 TITLE:=Joystick device support
129 KCONFIG:=CONFIG_INPUT_JOYDEV
130 FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
131 AUTOLOAD:=$(call AutoLoad,62,joydev)
132 $(call AddDepends/input)
133 endef
134
135 define KernelPackage/input-joydev/description
136 Kernel module for joystick support
137 endef
138
139 $(eval $(call KernelPackage,input-joydev))
140
141
142 define KernelPackage/input-polldev
143 SUBMENU:=$(INPUT_MODULES_MENU)
144 TITLE:=Polled Input device support
145 KCONFIG:=CONFIG_INPUT_POLLDEV
146 FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
147 AUTOLOAD:=$(call AutoLoad,20,input-polldev,1)
148 $(call AddDepends/input)
149 endef
150
151 define KernelPackage/input-polldev/description
152 Kernel module for support of polled input devices
153 endef
154
155 $(eval $(call KernelPackage,input-polldev))
156
157
158 define KernelPackage/input-matrixkmap
159 SUBMENU:=$(INPUT_MODULES_MENU)
160 TITLE:=Input matrix devices support
161 KCONFIG:=CONFIG_INPUT_MATRIXKMAP
162 DEPENDS:=@!LINUX_3_3
163 FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
164 AUTOLOAD:=$(call AutoLoad,20,matrix-keymap)
165 $(call AddDepends/input)
166 endef
167
168 define KernelPackage/input-matrix/description
169 Kernel module support for input matrix devices
170 endef
171
172 $(eval $(call KernelPackage,input-matrixkmap))
173
174
175 define KernelPackage/acpi-button
176 SUBMENU:=$(INPUT_MODULES_MENU)
177 TITLE:=ACPI Button Support
178 DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
179 KCONFIG:=CONFIG_ACPI_BUTTON
180 FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
181 AUTOLOAD:=$(call AutoLoad,06,button)
182 endef
183
184 define KernelPackage/acpi-button/description
185 Kernel module for ACPI Button support
186 endef
187
188 $(eval $(call KernelPackage,acpi-button))