mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 12:04:46 +08:00
5306747118
Similar to HID sensor stack, the new driver sits between cros-ec-dev and the IIO device drivers: The EC based IIO device topology would be: iio:device1 -> ...0/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.6.auto/ cros-ec-sensorhub.7.auto/ cros-ec-accel.15.auto/ iio:device1 It will be expanded to control EC sensor FIFO. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> [Fix "unknown type name 'uint32_t'" type errors] Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
33 lines
1.0 KiB
Plaintext
33 lines
1.0 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.
|