1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 27b3d4f44SNick Crewsconfig WILCO_EC 37b3d4f44SNick Crews tristate "ChromeOS Wilco Embedded Controller" 460fb8a8eSStephen Boyd depends on X86 || COMPILE_TEST 560fb8a8eSStephen Boyd depends on ACPI && CROS_EC_LPC && LEDS_CLASS 67b3d4f44SNick Crews help 77b3d4f44SNick Crews If you say Y here, you get support for talking to the ChromeOS 87b3d4f44SNick Crews Wilco EC over an eSPI bus. This uses a simple byte-level protocol 97b3d4f44SNick Crews with a checksum. 107b3d4f44SNick Crews 117b3d4f44SNick Crews To compile this driver as a module, choose M here: the 127b3d4f44SNick Crews module will be called wilco_ec. 13b787bb12SNick Crews 14b787bb12SNick Crewsconfig WILCO_EC_DEBUGFS 15b787bb12SNick Crews tristate "Enable raw access to EC via debugfs" 16b787bb12SNick Crews depends on WILCO_EC 17b787bb12SNick Crews help 18b787bb12SNick Crews If you say Y here, you get support for sending raw commands to 19b787bb12SNick Crews the Wilco EC via debugfs. These commands do not do any byte 20b787bb12SNick Crews manipulation and allow for testing arbitrary commands. This 21b787bb12SNick Crews interface is intended for debug only and will not be present 22b787bb12SNick Crews on production devices. 23f7b0bc5eSNick Crews 24f7b0bc5eSNick Crewsconfig WILCO_EC_EVENTS 25f7b0bc5eSNick Crews tristate "Enable event forwarding from EC to userspace" 26f7b0bc5eSNick Crews depends on WILCO_EC 27f7b0bc5eSNick Crews help 28f7b0bc5eSNick Crews If you say Y here, you get support for the EC to send events 29f7b0bc5eSNick Crews (such as power state changes) to userspace. The EC sends the events 30f7b0bc5eSNick Crews over ACPI, and a driver queues up the events to be read by a 31f7b0bc5eSNick Crews userspace daemon from /dev/wilco_event using read() and poll(). 321210d1e6SNick Crews 331210d1e6SNick Crewsconfig WILCO_EC_TELEMETRY 341210d1e6SNick Crews tristate "Enable querying telemetry data from EC" 351210d1e6SNick Crews depends on WILCO_EC 361210d1e6SNick Crews help 371210d1e6SNick Crews If you say Y here, you get support to query EC telemetry data from 381210d1e6SNick Crews /dev/wilco_telem0 using write() and then read(). 39