162306a36Sopenharmony_ciWhat:		/sys/kernel/debug/ec/*/{gpe,use_global_lock,io}
262306a36Sopenharmony_ciDate:		July 2010
362306a36Sopenharmony_ciContact:	Thomas Renninger <trenn@suse.de>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciGeneral information like which GPE is assigned to the EC and whether
762306a36Sopenharmony_cithe global lock should get used.
862306a36Sopenharmony_ciKnowing the EC GPE one can watch the amount of HW events related to
962306a36Sopenharmony_cithe EC here (XY -> GPE number from `/sys/kernel/debug/ec/*/gpe`):
1062306a36Sopenharmony_ci/sys/firmware/acpi/interrupts/gpeXY
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciThe io file is binary and a userspace tool located here:
1362306a36Sopenharmony_ciftp://ftp.suse.com/pub/people/trenn/sources/ec/
1462306a36Sopenharmony_cishould get used to read out the 256 Embedded Controller registers
1562306a36Sopenharmony_cior writing to them.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciCAUTION:
1862306a36Sopenharmony_ci  Do not write to the Embedded Controller if you don't know
1962306a36Sopenharmony_ci  what you are doing! Rebooting afterwards also is a good idea.
2062306a36Sopenharmony_ci  This can influence the way your machine is cooled and fans may
2162306a36Sopenharmony_ci  not get switched on again after you did a wrong write.
22