xref: /openbmc/linux/drivers/hid/i2c-hid/Kconfig (revision a79a4b30)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "I2C HID support"
3	depends on I2C
4
5config I2C_HID_ACPI
6	tristate "HID over I2C transport layer ACPI driver"
7	default n
8	depends on I2C && INPUT && ACPI
9	help
10	  Say Y here if you use a keyboard, a touchpad, a touchscreen, or any
11	  other HID based devices which is connected to your computer via I2C.
12	  This driver supports ACPI-based systems.
13
14	  If unsure, say N.
15
16	  This support is also available as a module.  If so, the module
17	  will be called i2c-hid-acpi.  It will also build/depend on the
18	  module i2c-hid.
19
20config I2C_HID_OF
21	tristate "HID over I2C transport layer Open Firmware driver"
22	default n
23	depends on I2C && INPUT && OF
24	help
25	  Say Y here if you use a keyboard, a touchpad, a touchscreen, or any
26	  other HID based devices which is connected to your computer via I2C.
27	  This driver supports Open Firmware (Device Tree)-based systems.
28
29	  If unsure, say N.
30
31	  This support is also available as a module.  If so, the module
32	  will be called i2c-hid-of.  It will also build/depend on the
33	  module i2c-hid.
34
35config I2C_HID_OF_ELAN
36	tristate "Driver for Elan hid-i2c based devices on OF systems"
37	default n
38	depends on I2C && INPUT && OF
39	help
40	  Say Y here if you want support for Elan i2c devices that use
41	  the i2c-hid protocol on Open Firmware (Device Tree)-based
42	  systems.
43
44	  If unsure, say N.
45
46	  This support is also available as a module.  If so, the module
47	  will be called i2c-hid-of-elan.  It will also build/depend on
48	  the module i2c-hid.
49
50config I2C_HID_OF_GOODIX
51	tristate "Driver for Goodix hid-i2c based devices on OF systems"
52	default n
53	depends on I2C && INPUT && OF
54	help
55	  Say Y here if you want support for Goodix i2c devices that use
56	  the i2c-hid protocol on Open Firmware (Device Tree)-based
57	  systems.
58
59	  If unsure, say N.
60
61	  This support is also available as a module.  If so, the module
62	  will be called i2c-hid-of-goodix.  It will also build/depend on
63	  the module i2c-hid.
64
65endmenu
66
67config I2C_HID_CORE
68	tristate
69	default y if I2C_HID_ACPI=y || I2C_HID_OF=y || I2C_HID_OF_GOODIX=y
70	default m if I2C_HID_ACPI=m || I2C_HID_OF=m || I2C_HID_OF_GOODIX=m
71	select HID
72