]> 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>
Tue, 13 Dec 2011 06:43:00 +0000 (17:43 +1100)
commit25e21722d691ebc850d64656527ae02264a42e87
treea68f73b8f3718f73abfb11cc0715fa7b612a1aea
parentc4c687f8b48e398553db0166c34ca63fced6e75d
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