Skip to content

Commit 4a200c3

Browse files
bentissJiri Kosina
authored andcommitted
HID: i2c-hid: introduce HID over i2c specification implementation
Microsoft published the protocol specification of HID over i2c: http://msdn.microsoft.com/en-us/library/windows/hardware/hh852380.aspx This patch introduces an implementation of this protocol. This implementation does not includes the ACPI part of the specification. This will come when ACPI 5.0 devices enumeration will be available. Once the ACPI part is done, OEM will not have to declare HID over I2C devices in their platform specific driver. Signed-off-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 1a1e8c6 commit 4a200c3

File tree

6 files changed

+1038
-0
lines changed

6 files changed

+1038
-0
lines changed

drivers/hid/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,4 +728,6 @@ endif # HID
728728

729729
source "drivers/hid/usbhid/Kconfig"
730730

731+
source "drivers/hid/i2c-hid/Kconfig"
732+
731733
endmenu

drivers/hid/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,4 @@ obj-$(CONFIG_USB_HID) += usbhid/
118118
obj-$(CONFIG_USB_MOUSE) += usbhid/
119119
obj-$(CONFIG_USB_KBD) += usbhid/
120120

121+
obj-$(CONFIG_I2C_HID) += i2c-hid/

drivers/hid/i2c-hid/Kconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
menu "I2C HID support"
2+
depends on I2C
3+
4+
config I2C_HID
5+
tristate "HID over I2C transport layer"
6+
default n
7+
depends on I2C && INPUT
8+
select HID
9+
---help---
10+
Say Y here if you want to use the HID over i2c protocol
11+
implementation.
12+
13+
If unsure, say N.
14+
15+
This support is also available as a module. If so, the module
16+
will be called i2c-hid.
17+
18+
comment "Input core support is needed for HID over I2C input layer"
19+
depends on I2C_HID && INPUT=n
20+
21+
endmenu

drivers/hid/i2c-hid/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for the I2C input drivers
3+
#
4+
5+
obj-$(CONFIG_I2C_HID) += i2c-hid.o

0 commit comments

Comments
 (0)