mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 15:36:48 +00:00

ChromeOS EC can report activity information derived from the accelerometer: - Reports on-body/off-body as a proximity event. - Reports significant motion as an activity event. This new sensor is a virtual sensor, included only when the EC firmware is compiled with the appropriate module. Signed-off-by: Gwendal Grignou <gwendal@google.com> Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://patch.msgid.link/20250604053903.1376465-1-gwendal@google.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Chrome OS Embedded Controller managed sensors library
|
|
#
|
|
config IIO_CROS_EC_SENSORS_CORE
|
|
tristate "ChromeOS EC Sensors Core"
|
|
depends on SYSFS && CROS_EC_SENSORHUB
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
help
|
|
Base module for the ChromeOS EC Sensors module.
|
|
Contains core functions used by other IIO CrosEC sensor
|
|
drivers.
|
|
Define common attributes and sysfs interrupt handler.
|
|
|
|
config IIO_CROS_EC_SENSORS
|
|
tristate "ChromeOS EC Contiguous Sensors"
|
|
depends on IIO_CROS_EC_SENSORS_CORE
|
|
help
|
|
Module to handle 3d contiguous sensors like
|
|
Accelerometers, Gyroscope and Magnetometer that are
|
|
presented by the ChromeOS EC Sensor hub.
|
|
Creates an IIO device for each functions.
|
|
|
|
config IIO_CROS_EC_SENSORS_LID_ANGLE
|
|
tristate "ChromeOS EC Sensor for lid angle"
|
|
depends on IIO_CROS_EC_SENSORS_CORE
|
|
help
|
|
Module to report the angle between lid and base for some
|
|
convertible devices.
|
|
This module is loaded when the EC can calculate the angle between the base
|
|
and the lid.
|
|
|
|
config IIO_CROS_EC_ACTIVITY
|
|
tristate "ChromeOS EC Activity Sensors"
|
|
depends on IIO_CROS_EC_SENSORS_CORE
|
|
help
|
|
Module to handle activity events presented by the ChromeOS EC sensor hub.
|
|
Activities can be a proximity detector (on body/off body detection)
|
|
or a significant motion detector.
|
|
Creates an IIO device to manage all activities.
|