diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/Kconfig | 2 | ||||
-rw-r--r-- | drivers/Makefile | 1 | ||||
-rw-r--r-- | drivers/hid/Kconfig | 18 | ||||
-rw-r--r-- | drivers/hid/Makefile | 15 | ||||
-rw-r--r-- | drivers/input/Makefile | 1 | ||||
-rw-r--r-- | drivers/usb/input/Kconfig | 21 | ||||
-rw-r--r-- | drivers/usb/input/Makefile | 3 |
7 files changed, 43 insertions, 18 deletions
diff --git a/drivers/Kconfig b/drivers/Kconfig index f39463418904..4929e923b5c6 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig | |||
@@ -64,6 +64,8 @@ source "drivers/video/Kconfig" | |||
64 | 64 | ||
65 | source "sound/Kconfig" | 65 | source "sound/Kconfig" |
66 | 66 | ||
67 | source "drivers/hid/Kconfig" | ||
68 | |||
67 | source "drivers/usb/Kconfig" | 69 | source "drivers/usb/Kconfig" |
68 | 70 | ||
69 | source "drivers/mmc/Kconfig" | 71 | source "drivers/mmc/Kconfig" |
diff --git a/drivers/Makefile b/drivers/Makefile index 67711770b1d9..50f76da598c9 100644 --- a/drivers/Makefile +++ b/drivers/Makefile | |||
@@ -77,4 +77,5 @@ obj-$(CONFIG_CRYPTO) += crypto/ | |||
77 | obj-$(CONFIG_SUPERH) += sh/ | 77 | obj-$(CONFIG_SUPERH) += sh/ |
78 | obj-$(CONFIG_GENERIC_TIME) += clocksource/ | 78 | obj-$(CONFIG_GENERIC_TIME) += clocksource/ |
79 | obj-$(CONFIG_DMA_ENGINE) += dma/ | 79 | obj-$(CONFIG_DMA_ENGINE) += dma/ |
80 | obj-$(CONFIG_HID) += hid/ | ||
80 | obj-$(CONFIG_PPC_PS3) += ps3/ | 81 | obj-$(CONFIG_PPC_PS3) += ps3/ |
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig new file mode 100644 index 000000000000..96d4a0bb2203 --- /dev/null +++ b/drivers/hid/Kconfig | |||
@@ -0,0 +1,18 @@ | |||
1 | # | ||
2 | # HID driver configuration | ||
3 | # | ||
4 | menu "HID Devices" | ||
5 | depends on INPUT | ||
6 | |||
7 | config HID | ||
8 | tristate "Generic HID support" | ||
9 | default y | ||
10 | ---help--- | ||
11 | Say Y here if you want generic HID support to connect keyboards, | ||
12 | mice, joysticks, graphic tablets, or any other HID based devices | ||
13 | to your computer. You also need to select particular types of | ||
14 | HID devices you want to compile support for, in the particular | ||
15 | driver menu (USB, Bluetooth) | ||
16 | |||
17 | endmenu | ||
18 | |||
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile new file mode 100644 index 000000000000..6432392110bf --- /dev/null +++ b/drivers/hid/Makefile | |||
@@ -0,0 +1,15 @@ | |||
1 | # | ||
2 | # Makefile for the HID driver | ||
3 | # | ||
4 | |||
5 | # Multipart objects. | ||
6 | hid-objs := hid-core.o hid-input.o | ||
7 | |||
8 | # Optional parts of multipart objects. | ||
9 | |||
10 | obj-$(CONFIG_HID) += hid.o | ||
11 | |||
12 | ifeq ($(CONFIG_INPUT_DEBUG),y) | ||
13 | EXTRA_CFLAGS += -DDEBUG | ||
14 | endif | ||
15 | |||
diff --git a/drivers/input/Makefile b/drivers/input/Makefile index a005b1df5f1a..da575deb3c7a 100644 --- a/drivers/input/Makefile +++ b/drivers/input/Makefile | |||
@@ -21,3 +21,4 @@ obj-$(CONFIG_INPUT_MOUSE) += mouse/ | |||
21 | obj-$(CONFIG_INPUT_JOYSTICK) += joystick/ | 21 | obj-$(CONFIG_INPUT_JOYSTICK) += joystick/ |
22 | obj-$(CONFIG_INPUT_TOUCHSCREEN) += touchscreen/ | 22 | obj-$(CONFIG_INPUT_TOUCHSCREEN) += touchscreen/ |
23 | obj-$(CONFIG_INPUT_MISC) += misc/ | 23 | obj-$(CONFIG_INPUT_MISC) += misc/ |
24 | |||
diff --git a/drivers/usb/input/Kconfig b/drivers/usb/input/Kconfig index 9b075319ed5e..8a62d4785755 100644 --- a/drivers/usb/input/Kconfig +++ b/drivers/usb/input/Kconfig | |||
@@ -6,9 +6,10 @@ comment "USB Input Devices" | |||
6 | 6 | ||
7 | config USB_HID | 7 | config USB_HID |
8 | tristate "USB Human Interface Device (full HID) support" | 8 | tristate "USB Human Interface Device (full HID) support" |
9 | depends on USB && BROKEN | 9 | default y |
10 | depends on USB && HID | ||
10 | ---help--- | 11 | ---help--- |
11 | Say Y here if you want full HID support to connect keyboards, | 12 | Say Y here if you want full HID support to connect USB keyboards, |
12 | mice, joysticks, graphic tablets, or any other HID based devices | 13 | mice, joysticks, graphic tablets, or any other HID based devices |
13 | to your computer via USB. You also need to select HID Input layer | 14 | to your computer via USB. You also need to select HID Input layer |
14 | support (below) if you want to use keyboards, mice, joysticks and | 15 | support (below) if you want to use keyboards, mice, joysticks and |
@@ -27,20 +28,10 @@ config USB_HID | |||
27 | comment "Input core support is needed for USB HID input layer or HIDBP support" | 28 | comment "Input core support is needed for USB HID input layer or HIDBP support" |
28 | depends on USB_HID && INPUT=n | 29 | depends on USB_HID && INPUT=n |
29 | 30 | ||
30 | config USB_HIDINPUT | 31 | config USB_HID_POWERBOOK |
31 | bool "HID input layer support" | ||
32 | default y | ||
33 | depends on INPUT && USB_HID | ||
34 | help | ||
35 | Say Y here if you want to use a USB keyboard, mouse or joystick, | ||
36 | or any other HID input device. | ||
37 | |||
38 | If unsure, say Y. | ||
39 | |||
40 | config USB_HIDINPUT_POWERBOOK | ||
41 | bool "Enable support for iBook/PowerBook special keys" | 32 | bool "Enable support for iBook/PowerBook special keys" |
42 | default n | 33 | default n |
43 | depends on USB_HIDINPUT | 34 | depends on USB_HID |
44 | help | 35 | help |
45 | Say Y here if you want support for the special keys (Fn, Numlock) on | 36 | Say Y here if you want support for the special keys (Fn, Numlock) on |
46 | Apple iBooks and PowerBooks. | 37 | Apple iBooks and PowerBooks. |
@@ -49,7 +40,7 @@ config USB_HIDINPUT_POWERBOOK | |||
49 | 40 | ||
50 | config HID_FF | 41 | config HID_FF |
51 | bool "Force feedback support (EXPERIMENTAL)" | 42 | bool "Force feedback support (EXPERIMENTAL)" |
52 | depends on USB_HIDINPUT && EXPERIMENTAL | 43 | depends on USB_HID && EXPERIMENTAL |
53 | help | 44 | help |
54 | Say Y here is you want force feedback support for a few HID devices. | 45 | Say Y here is you want force feedback support for a few HID devices. |
55 | See below for a list of supported devices. | 46 | See below for a list of supported devices. |
diff --git a/drivers/usb/input/Makefile b/drivers/usb/input/Makefile index d946d5213b30..1a24b5bfa05f 100644 --- a/drivers/usb/input/Makefile +++ b/drivers/usb/input/Makefile | |||
@@ -11,9 +11,6 @@ usbhid-objs := hid-core.o | |||
11 | ifeq ($(CONFIG_USB_HIDDEV),y) | 11 | ifeq ($(CONFIG_USB_HIDDEV),y) |
12 | usbhid-objs += hiddev.o | 12 | usbhid-objs += hiddev.o |
13 | endif | 13 | endif |
14 | ifeq ($(CONFIG_USB_HIDINPUT),y) | ||
15 | usbhid-objs += hid-input.o | ||
16 | endif | ||
17 | ifeq ($(CONFIG_HID_PID),y) | 14 | ifeq ($(CONFIG_HID_PID),y) |
18 | usbhid-objs += hid-pidff.o | 15 | usbhid-objs += hid-pidff.o |
19 | endif | 16 | endif |