~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/ABI/testing/debugfs-wilco-ec

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 What:           /sys/kernel/debug/wilco_ec/h1_gpio
  2 Date:           April 2019
  3 KernelVersion:  5.2
  4 Description:
  5                 As part of Chrome OS's FAFT (Fully Automated Firmware Testing)
  6                 tests, we need to ensure that the H1 chip is properly setting
  7                 some GPIO lines. The h1_gpio attribute exposes the state
  8                 of the lines:
  9                 - ENTRY_TO_FACT_MODE in BIT(0)
 10                 - SPI_CHROME_SEL in BIT(1)
 11 
 12                 Output will formatted with "0x%02x\n".
 13 
 14 What:           /sys/kernel/debug/wilco_ec/raw
 15 Date:           January 2019
 16 KernelVersion:  5.1
 17 Description:
 18                 Write and read raw mailbox commands to the EC.
 19 
 20                 You can write a hexadecimal sentence to raw, and that series of
 21                 bytes will be sent to the EC. Then, you can read the bytes of
 22                 response by reading from raw.
 23 
 24                 For writing, bytes 0-1 indicate the message type, one of enum
 25                 wilco_ec_msg_type. Byte 2+ consist of the data passed in the
 26                 request, starting at MBOX[0]. At least three bytes are required
 27                 for writing, two for the type and at least a single byte of
 28                 data.
 29 
 30                 Example::
 31 
 32                     // Request EC info type 3 (EC firmware build date)
 33                     // Corresponds with sending type 0x00f0 with
 34                     // MBOX = [38, 00, 03, 00]
 35                     $ echo 00 f0 38 00 03 00 > /sys/kernel/debug/wilco_ec/raw
 36                     // View the result. The decoded ASCII result "12/21/18" is
 37                     // included after the raw hex.
 38                     // Corresponds with MBOX = [00, 00, 31, 32, 2f, 32, 31, 38, ...]
 39                     $ cat /sys/kernel/debug/wilco_ec/raw
 40                     00 00 31 32 2f 32 31 2f 31 38 00 38 00 01 00 2f 00  ..12/21/18.8...
 41 
 42                 Note that the first 16 bytes of the received MBOX[] will be
 43                 printed, even if some of the data is junk, and skipping bytes
 44                 17 to 32. It is up to you to know how many of the first bytes of
 45                 data are the actual response.

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php