18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig WILCO_EC
38c2ecf20Sopenharmony_ci	tristate "ChromeOS Wilco Embedded Controller"
48c2ecf20Sopenharmony_ci	depends on X86 || COMPILE_TEST
58c2ecf20Sopenharmony_ci	depends on ACPI && CROS_EC_LPC && LEDS_CLASS
68c2ecf20Sopenharmony_ci	help
78c2ecf20Sopenharmony_ci	  If you say Y here, you get support for talking to the ChromeOS
88c2ecf20Sopenharmony_ci	  Wilco EC over an eSPI bus. This uses a simple byte-level protocol
98c2ecf20Sopenharmony_ci	  with a checksum.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci	  To compile this driver as a module, choose M here: the
128c2ecf20Sopenharmony_ci	  module will be called wilco_ec.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciconfig WILCO_EC_DEBUGFS
158c2ecf20Sopenharmony_ci	tristate "Enable raw access to EC via debugfs"
168c2ecf20Sopenharmony_ci	depends on WILCO_EC
178c2ecf20Sopenharmony_ci	help
188c2ecf20Sopenharmony_ci	  If you say Y here, you get support for sending raw commands to
198c2ecf20Sopenharmony_ci	  the Wilco EC via debugfs.  These commands do not do any byte
208c2ecf20Sopenharmony_ci	  manipulation and allow for testing arbitrary commands.  This
218c2ecf20Sopenharmony_ci	  interface is intended for debug only and will not be present
228c2ecf20Sopenharmony_ci	  on production devices.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciconfig WILCO_EC_EVENTS
258c2ecf20Sopenharmony_ci	tristate "Enable event forwarding from EC to userspace"
268c2ecf20Sopenharmony_ci	depends on WILCO_EC
278c2ecf20Sopenharmony_ci	help
288c2ecf20Sopenharmony_ci	  If you say Y here, you get support for the EC to send events
298c2ecf20Sopenharmony_ci	  (such as power state changes) to userspace. The EC sends the events
308c2ecf20Sopenharmony_ci	  over ACPI, and a driver queues up the events to be read by a
318c2ecf20Sopenharmony_ci	  userspace daemon from /dev/wilco_event using read() and poll().
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciconfig WILCO_EC_TELEMETRY
348c2ecf20Sopenharmony_ci	tristate "Enable querying telemetry data from EC"
358c2ecf20Sopenharmony_ci	depends on WILCO_EC
368c2ecf20Sopenharmony_ci	help
378c2ecf20Sopenharmony_ci	  If you say Y here, you get support to query EC telemetry data from
388c2ecf20Sopenharmony_ci	  /dev/wilco_telem0 using write() and then read().
39