summaryrefslogtreecommitdiff
path: root/drivers/hid/i2c-hid/Kconfig
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2021-01-15 09:06:40 -0800
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2021-01-18 16:56:22 +0100
commitc1ed18c11bdb80eced208a61d40b1988f36a014f (patch)
treed0c52d008aa3c6aca4b555e852277c9a34e0ea75 /drivers/hid/i2c-hid/Kconfig
parentf9a056e002a2eaab1b3e86f9855047a06c89ec14 (diff)
HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core
Goodix i2c-hid touchscreens are mostly i2c-hid compliant but have some special power sequencing requirements, including the need to drive a reset line during the sequencing. Let's use the new rejiggering of i2c-hid to support this with a thin wrapper driver to support the first Goodix i2c-hid touchscreen: GT7375P Signed-off-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'drivers/hid/i2c-hid/Kconfig')
-rw-r--r--drivers/hid/i2c-hid/Kconfig19
1 files changed, 17 insertions, 2 deletions
diff --git a/drivers/hid/i2c-hid/Kconfig b/drivers/hid/i2c-hid/Kconfig
index 819b7521c182..a16c6a69680b 100644
--- a/drivers/hid/i2c-hid/Kconfig
+++ b/drivers/hid/i2c-hid/Kconfig
@@ -32,10 +32,25 @@ config I2C_HID_OF
will be called i2c-hid-of. It will also build/depend on the
module i2c-hid.
+config I2C_HID_OF_GOODIX
+ tristate "Driver for Goodix hid-i2c based devices on OF systems"
+ default n
+ depends on I2C && INPUT && OF
+ help
+ Say Y here if you want support for Goodix i2c devices that use
+ the i2c-hid protocol on Open Firmware (Device Tree)-based
+ systems.
+
+ If unsure, say N.
+
+ This support is also available as a module. If so, the module
+ will be called i2c-hid-of-goodix. It will also build/depend on
+ the module i2c-hid.
+
endmenu
config I2C_HID_CORE
tristate
- default y if I2C_HID_ACPI=y || I2C_HID_OF=y
- default m if I2C_HID_ACPI=m || I2C_HID_OF=m
+ default y if I2C_HID_ACPI=y || I2C_HID_OF=y || I2C_HID_OF_GOODIX=y
+ default m if I2C_HID_ACPI=m || I2C_HID_OF=m || I2C_HID_OF_GOODIX=m
select HID