]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, olpc: add debugfs interface for EC commands
authorDaniel Drake <dsd@laptop.org>
Thu, 8 Dec 2011 04:32:10 +0000 (15:32 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:47:54 +0000 (16:47 +1100)
commit8fa01a2cc2d3d3ad850a5cd40dfcc8ca387968c8
tree23c502853ed64e6de9d732e234799b77437402b5
parentc00607f88e1b59591d1d7a4d2f410d71e508b2e6
x86, olpc: add debugfs interface for EC commands

Add a debugfs interface for sending commands to the OLPC Embedded
Controller (EC) and reading the responses.  The EC provides functionality
for machine identification, battery and AC control, wakeup control, etc.

Having a debugfs interface available is useful for EC development and
debugging.

Based on code by Paul Fox.

Signed-off-by: Paul Fox <pgf@laptop.org>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andres Salomon <dilinger@queued.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/ABI/testing/debugfs-olpc [new file with mode: 0644]
arch/x86/platform/olpc/olpc.c