]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, olpc: add debugfs interface for EC commands
authorDaniel Drake <dsd@laptop.org>
Fri, 16 Dec 2011 04:49:29 +0000 (15:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:15 +0000 (18:19 +1100)
commitee88fc64e32ef3815aaa4d7daaf27766d20ad824
treeb791ffdbb3715c74616e05bbfdd5d30c1bb12831
parent88fa7830a0dd36a0082bc0b65823507649a670a7
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