Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 37624b58542fb9f2d9a70e6ea006ef8a5f66c30b authored by Linus Torvalds on 29 April 2019, 00:04:13 UTC
Linux 5.1-rc7
Tip revision: 37624b5
debugfs-wilco-ec
What:		/sys/kernel/debug/wilco_ec/raw
Date:		January 2019
KernelVersion:	5.1
Description:
		Write and read raw mailbox commands to the EC.

		For writing:
		Bytes 0-1 indicate the message type:
			00 F0 = Execute Legacy Command
			00 F2 = Read/Write NVRAM Property
		Byte 2 provides the command code
		Bytes 3+ consist of the data passed in the request

		At least three bytes are required, for the msg type and command,
		with additional bytes optional for additional data.

		Example:
		// Request EC info type 3 (EC firmware build date)
		$ echo 00 f0 38 00 03 00 > raw
		// View the result. The decoded ASCII result "12/21/18" is
		// included after the raw hex.
		$ cat raw
		00 31 32 2f 32 31 2f 31 38 00 38 00 01 00 2f 00  .12/21/18.8...
back to top