xref: /linux/drivers/iio/common/cros_ec_sensors/Kconfig (revision c95baf12f5077419db01313ab61c2aac007d40cd)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2974e6f02SEnric Balletbo i Serra#
3974e6f02SEnric Balletbo i Serra# Chrome OS Embedded Controller managed sensors library
4974e6f02SEnric Balletbo i Serra#
5974e6f02SEnric Balletbo i Serraconfig IIO_CROS_EC_SENSORS_CORE
6974e6f02SEnric Balletbo i Serra	tristate "ChromeOS EC Sensors Core"
7*53067471SGwendal Grignou	depends on SYSFS && CROS_EC_SENSORHUB
8974e6f02SEnric Balletbo i Serra	select IIO_BUFFER
9974e6f02SEnric Balletbo i Serra	select IIO_TRIGGERED_BUFFER
10974e6f02SEnric Balletbo i Serra	help
11974e6f02SEnric Balletbo i Serra	  Base module for the ChromeOS EC Sensors module.
12974e6f02SEnric Balletbo i Serra	  Contains core functions used by other IIO CrosEC sensor
13974e6f02SEnric Balletbo i Serra	  drivers.
14974e6f02SEnric Balletbo i Serra	  Define common attributes and sysfs interrupt handler.
15974e6f02SEnric Balletbo i Serra
16c14dca07SEnric Balletbo i Serraconfig IIO_CROS_EC_SENSORS
17c14dca07SEnric Balletbo i Serra	tristate "ChromeOS EC Contiguous Sensors"
18b4d2192eSJonathan Cameron	depends on IIO_CROS_EC_SENSORS_CORE
19c14dca07SEnric Balletbo i Serra	help
20c14dca07SEnric Balletbo i Serra	  Module to handle 3d contiguous sensors like
21c14dca07SEnric Balletbo i Serra	  Accelerometers, Gyroscope and Magnetometer that are
22c14dca07SEnric Balletbo i Serra	  presented by the ChromeOS EC Sensor hub.
23c14dca07SEnric Balletbo i Serra	  Creates an IIO device for each functions.
240451cc8cSGwendal Grignou
250451cc8cSGwendal Grignouconfig IIO_CROS_EC_SENSORS_LID_ANGLE
260451cc8cSGwendal Grignou	tristate "ChromeOS EC Sensor for lid angle"
270451cc8cSGwendal Grignou	depends on IIO_CROS_EC_SENSORS_CORE
280451cc8cSGwendal Grignou	help
290451cc8cSGwendal Grignou	  Module to report the angle between lid and base for some
300451cc8cSGwendal Grignou	  convertible devices.
310451cc8cSGwendal Grignou	  This module is loaded when the EC can calculate the angle between the base
320451cc8cSGwendal Grignou	  and the lid.
33