]> 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>
Fri, 9 Dec 2011 04:52:23 +0000 (15:52 +1100)
commitc4af37a1b127ff3d980cb298583e7a0f566d15f2
tree59a0c811487d8f8dd78066dd747849a1daddb5ca
parent8c9ac90fcb68e9ed9543e1077ba8d0f19a8ecc49
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