forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/iio/common/cros_ec_sensors/Kconfig
....@@ -1,9 +1,10 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Chrome OS Embedded Controller managed sensors library
34 #
45 config IIO_CROS_EC_SENSORS_CORE
56 tristate "ChromeOS EC Sensors Core"
6
- depends on SYSFS && MFD_CROS_EC
7
+ depends on SYSFS && CROS_EC_SENSORHUB
78 select IIO_BUFFER
89 select IIO_TRIGGERED_BUFFER
910 help
....@@ -20,3 +21,12 @@
2021 Accelerometers, Gyroscope and Magnetometer that are
2122 presented by the ChromeOS EC Sensor hub.
2223 Creates an IIO device for each functions.
24
+
25
+config IIO_CROS_EC_SENSORS_LID_ANGLE
26
+ tristate "ChromeOS EC Sensor for lid angle"
27
+ depends on IIO_CROS_EC_SENSORS_CORE
28
+ help
29
+ Module to report the angle between lid and base for some
30
+ convertible devices.
31
+ This module is loaded when the EC can calculate the angle between the base
32
+ and the lid.