162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ciconfig WILCO_EC 362306a36Sopenharmony_ci tristate "ChromeOS Wilco Embedded Controller" 462306a36Sopenharmony_ci depends on X86 || COMPILE_TEST 562306a36Sopenharmony_ci depends on ACPI && CROS_EC_LPC && LEDS_CLASS 662306a36Sopenharmony_ci help 762306a36Sopenharmony_ci If you say Y here, you get support for talking to the ChromeOS 862306a36Sopenharmony_ci Wilco EC over an eSPI bus. This uses a simple byte-level protocol 962306a36Sopenharmony_ci with a checksum. 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci To compile this driver as a module, choose M here: the 1262306a36Sopenharmony_ci module will be called wilco_ec. 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciconfig WILCO_EC_DEBUGFS 1562306a36Sopenharmony_ci tristate "Enable raw access to EC via debugfs" 1662306a36Sopenharmony_ci depends on WILCO_EC 1762306a36Sopenharmony_ci help 1862306a36Sopenharmony_ci If you say Y here, you get support for sending raw commands to 1962306a36Sopenharmony_ci the Wilco EC via debugfs. These commands do not do any byte 2062306a36Sopenharmony_ci manipulation and allow for testing arbitrary commands. This 2162306a36Sopenharmony_ci interface is intended for debug only and will not be present 2262306a36Sopenharmony_ci on production devices. 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ciconfig WILCO_EC_EVENTS 2562306a36Sopenharmony_ci tristate "Enable event forwarding from EC to userspace" 2662306a36Sopenharmony_ci depends on WILCO_EC 2762306a36Sopenharmony_ci help 2862306a36Sopenharmony_ci If you say Y here, you get support for the EC to send events 2962306a36Sopenharmony_ci (such as power state changes) to userspace. The EC sends the events 3062306a36Sopenharmony_ci over ACPI, and a driver queues up the events to be read by a 3162306a36Sopenharmony_ci userspace daemon from /dev/wilco_event using read() and poll(). 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ciconfig WILCO_EC_TELEMETRY 3462306a36Sopenharmony_ci tristate "Enable querying telemetry data from EC" 3562306a36Sopenharmony_ci depends on WILCO_EC 3662306a36Sopenharmony_ci help 3762306a36Sopenharmony_ci If you say Y here, you get support to query EC telemetry data from 3862306a36Sopenharmony_ci /dev/wilco_telem0 using write() and then read(). 39