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