xref: /linux/drivers/platform/chrome/wilco_ec/Kconfig (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
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
6*d33d2255SNiklas Schnelle	depends on HAS_IOPORT
77b3d4f44SNick Crews	help
87b3d4f44SNick Crews	  If you say Y here, you get support for talking to the ChromeOS
97b3d4f44SNick Crews	  Wilco EC over an eSPI bus. This uses a simple byte-level protocol
107b3d4f44SNick Crews	  with a checksum.
117b3d4f44SNick Crews
127b3d4f44SNick Crews	  To compile this driver as a module, choose M here: the
137b3d4f44SNick Crews	  module will be called wilco_ec.
14b787bb12SNick Crews
15b787bb12SNick Crewsconfig WILCO_EC_DEBUGFS
16b787bb12SNick Crews	tristate "Enable raw access to EC via debugfs"
17b787bb12SNick Crews	depends on WILCO_EC
18b787bb12SNick Crews	help
19b787bb12SNick Crews	  If you say Y here, you get support for sending raw commands to
20b787bb12SNick Crews	  the Wilco EC via debugfs.  These commands do not do any byte
21b787bb12SNick Crews	  manipulation and allow for testing arbitrary commands.  This
22b787bb12SNick Crews	  interface is intended for debug only and will not be present
23b787bb12SNick Crews	  on production devices.
24f7b0bc5eSNick Crews
25f7b0bc5eSNick Crewsconfig WILCO_EC_EVENTS
26f7b0bc5eSNick Crews	tristate "Enable event forwarding from EC to userspace"
27f7b0bc5eSNick Crews	depends on WILCO_EC
28f7b0bc5eSNick Crews	help
29f7b0bc5eSNick Crews	  If you say Y here, you get support for the EC to send events
30f7b0bc5eSNick Crews	  (such as power state changes) to userspace. The EC sends the events
31f7b0bc5eSNick Crews	  over ACPI, and a driver queues up the events to be read by a
32f7b0bc5eSNick Crews	  userspace daemon from /dev/wilco_event using read() and poll().
331210d1e6SNick Crews
341210d1e6SNick Crewsconfig WILCO_EC_TELEMETRY
351210d1e6SNick Crews	tristate "Enable querying telemetry data from EC"
361210d1e6SNick Crews	depends on WILCO_EC
371210d1e6SNick Crews	help
381210d1e6SNick Crews	  If you say Y here, you get support to query EC telemetry data from
391210d1e6SNick Crews	  /dev/wilco_telem0 using write() and then read().
40