xref: /openbmc/linux/drivers/hid/i2c-hid/Kconfig (revision 2cf1c348)
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_GOODIX
36	tristate "Driver for Goodix 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 Goodix 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-goodix.  It will also build/depend on
48	  the module i2c-hid.
49
50endmenu
51
52config I2C_HID_CORE
53	tristate
54	default y if I2C_HID_ACPI=y || I2C_HID_OF=y || I2C_HID_OF_GOODIX=y
55	default m if I2C_HID_ACPI=m || I2C_HID_OF=m || I2C_HID_OF_GOODIX=m
56	select HID
57