xref: /linux/Documentation/ABI/testing/debugfs-ec (revision 82c944d05b1a24c76948ee9d6bb1d7de1ebb8b3a)
1What:		/sys/kernel/debug/ec/*/{gpe,use_global_lock,io}
2Date:		July 2010
3Contact:	Thomas Renninger <trenn@suse.de>
4Description:
5
6General information like which GPE is assigned to the EC and whether
7the global lock should get used.
8Knowing the EC GPE one can watch the amount of HW events related to
9the EC here (XY -> GPE number from `/sys/kernel/debug/ec/*/gpe`):
10/sys/firmware/acpi/interrupts/gpeXY
11
12The io file is binary and a userspace tool located here:
13ftp://ftp.suse.com/pub/people/trenn/sources/ec/
14should get used to read out the 256 Embedded Controller registers
15or writing to them.
16
17CAUTION:
18  Do not write to the Embedded Controller if you don't know
19  what you are doing! Rebooting afterwards also is a good idea.
20  This can influence the way your machine is cooled and fans may
21  not get switched on again after you did a wrong write.
22